docker-health-monitor

Prometheus exporter of docker container's health checks with the option to restart unhealthy containers.

APACHE-2.0 License

Stars
0
Committers
1

Docker-Health-Monitor

Prometheus exporter of docker container's health checks with the option to restart unhealthy containers.

Installation

Binaries

Latest Release

docker-compose

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

Usage

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=]