This util checks containers health status and sends it to Sensu Api
This util checks containers health status and sends it to sensu api
--sensu-api
, -s
- Sensu API host (default: “sensu-api:4567”) [env SENSU_API]--hostname
, -n
- Hostname to use for events [env HOSTNAME]--retries
, r
- Set occurrences for sensu check before triggering an alert notification. Using Docker healthcheck param --retries
(default: 3) [env RETRIES]--log-level
, -l
- Set logging level: info, warning, error, fatal, debug, panic (default: warning) [env LOG_LEVEL]Docker client initiliazing by env params DOCKER_HOST, DOCKER_TLS and other.
See cli/#environment-variables for more details.
docker pull shurshun/docker-health-bridge
docker run -d \
-h $HOSTNAME \
--name="docker-health-bridge" \
-v /var/run/docker.sock:/var/run/docker.sock \
-e SENSU_API=<...> \
shurshun/docker-health-bridge
make compile
By default Linux and Mac OS builds are made.
You will need a local docker instance running that supports mounting in your host volume path into the container. If you are on OSX, this can be achieved using docker-machine (with virtualbox or vmware fusion). If you are on linux, and running a local docker daemon this is already supported.