Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Add HEALTHCHECK
  • Loading branch information
shatovilya authored Feb 5, 2025
1 parent 57d9e38 commit 6ec96d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ COPY ${BIN_DIR}/kafka_exporter /bin/kafka_exporter

EXPOSE 9308
USER nobody

HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
CMD wget -q -O /dev/null http://localhost:9308/metrics || exit 1

ENTRYPOINT [ "/bin/kafka_exporter" ]

0 comments on commit 6ec96d2

Please sign in to comment.