forked from mirrors/statsd_exporter
Merge pull request #182 from vaibhavkhurana2018/adds_health_check
Adds healthcheck for checking the status of the container
This commit is contained in:
commit
680afe25f1
1 changed files with 1 additions and 0 deletions
|
@ -4,4 +4,5 @@ LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com
|
||||||
COPY statsd_exporter /bin/statsd_exporter
|
COPY statsd_exporter /bin/statsd_exporter
|
||||||
|
|
||||||
EXPOSE 9102 9125 9125/udp
|
EXPOSE 9102 9125 9125/udp
|
||||||
|
HEALTHCHECK CMD wget --spider -S "http://localhost:9102/metrics" -T 60 2>&1 || exit 1
|
||||||
ENTRYPOINT [ "/bin/statsd_exporter" ]
|
ENTRYPOINT [ "/bin/statsd_exporter" ]
|
||||||
|
|
Loading…
Reference in a new issue