Skip to content

Commit

Permalink
Merge pull request #182 from vaibhavkhurana2018/adds_health_check
Browse files Browse the repository at this point in the history
Adds healthcheck for checking the status of the container
  • Loading branch information
Matthias Rampke authored Mar 13, 2019
2 parents eeab36e + 88af8dc commit 680afe2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit 680afe2

Please sign in to comment.