Skip to content

Commit

Permalink
rename srv-lookup -> srv2file_sd
Browse files Browse the repository at this point in the history
  • Loading branch information
lloesche committed Sep 6, 2016
1 parent 1b76397 commit 2620461
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ADD prometheus.yml /etc/prometheus/
ADD prometheus.rules /etc/prometheus/
ADD run /
ADD https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64 /bin/dumb-init
ADD https://github.com/lloesche/prometheus-dcos/releases/download/0.1/srv-lookup /bin/srv-lookup
ADD https://github.com/lloesche/prometheus-dcos/releases/download/0.1/srv2file_sd /bin/srv2file_sd
RUN chmod +x /run /bin/dumb-init /bin/srv-lookup

ENTRYPOINT [ "/bin/dumb-init", "--" ]
Expand Down
2 changes: 1 addition & 1 deletion run
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ STORAGE_LOCAL_PATH=/prometheus
if [ -d /mnt/mesos/sandbox/prometheus ]; then
STORAGE_LOCAL_PATH=/mnt/mesos/sandbox/prometheus
fi
/bin/srv-lookup -srv "$NODE_EXPORTER_SRV" -out "/etc/prometheus/node_exporter.json" -loop -time ${SRV_REFRESH_INTERVAL:-60} &
/bin/srv2file_sd -srv "$NODE_EXPORTER_SRV" -out "/etc/prometheus/node_exporter.json" -loop -time ${SRV_REFRESH_INTERVAL:-60} &
/bin/prometheus \
-config.file=/etc/prometheus/prometheus.yml \
-storage.local.path=$STORAGE_LOCAL_PATH \
Expand Down

0 comments on commit 2620461

Please sign in to comment.