alexrudd / docker_watch

Exposes Docker metrics over a Prometheus endpoint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Watch

Uses Prometheus Node Exporter as a base. Removed all node_exporter collectors and added two for docker.

These collectors hit the Stats and Inspect API's. I've only picked out the few metrics which are interesting to me, adding more should be trivial.

This is all pretty hacky, so pull requests welcome.

Docker

docker run \
  --rm \
  -p 9100:9100 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  alexrudd/docker_watch
curl localhost:9100/metrics

Building

Included a small build script which statically compiles the Go binary and runs the Docker build command

./build.sh

About

Exposes Docker metrics over a Prometheus endpoint

License:MIT License


Languages

Language:Go 99.6%Language:Shell 0.4%