Prometheus exporter of docker container's health checks with the option to restart unhealthy containers.
version: '3'
services:
docker-health-monitor:
image: ghcr.io/mkroli/docker-health-monitor
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 9092:9092
Prometheus exporter of docker container's health checks with the option to restart unhealthy containers.
Usage: docker-health-monitor [OPTIONS]
Options:
--prometheus <ADDRESS> [env: DHM_PROMETHEUS_ADDRESS=] [default: 0.0.0.0:9092]
--restart-interval <MILLISECONDS> [env: DHM_RESTART_INTERVAL=]
-h, --help Print help
-V, --version Print version
Docker connection:
--unix-socket <PATH> [env: DHM_DOCKER_UNIX_SOCKET=]
--http <URL> [env: DHM_DOCKER_HTTP_URL=]