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 run \
--rm \
-p 9100:9100 \
-v /var/run/docker.sock:/var/run/docker.sock \
alexrudd/docker_watchcurl localhost:9100/metricsIncluded a small build script which statically compiles the Go binary and runs the Docker build command
./build.sh