Adds healthcheck for checking the status of the container

Signed-off-by: Vaibhav Khurana <vaibhav.khurana@razorpay.com>
This commit is contained in:
Vaibhav Khurana 2019-01-29 13:06:32 +05:30
parent d5b22a2993
commit 7830fea9ae

View file

@ -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 curl --fail http://localhost:9102/metrics || exit 1
ENTRYPOINT [ "/bin/statsd_exporter" ] ENTRYPOINT [ "/bin/statsd_exporter" ]