Merge pull request #182 from vaibhavkhurana2018/adds_health_check

Adds healthcheck for checking the status of the container
This commit is contained in:
Matthias Rampke 2019-03-13 13:07:38 +00:00 committed by GitHub
commit 680afe25f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,4 +4,5 @@ LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com
COPY statsd_exporter /bin/statsd_exporter
EXPOSE 9102 9125 9125/udp
HEALTHCHECK CMD wget --spider -S "http://localhost:9102/metrics" -T 60 2>&1 || exit 1
ENTRYPOINT [ "/bin/statsd_exporter" ]