Fixing healthcheck

Signed-off-by: Vaibhav Khurana <vaibhav.khurana@razorpay.com>
This commit is contained in:
Vaibhav Khurana 2019-03-13 14:57:02 +05:30
parent 7830fea9ae
commit 88af8dcd24

View file

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