Repository for a Prometheus exporter that exposes information about docker containers and their CPU and memory usage.
docker pull ghcr.io/millim-no/docker-exporter
docker run -v /var/run/docker.sock:/var/run/docker.sock
The exporter written in F# send HTTP requests to the Docker Engine API, through Docker's Unix socket. It uses two endpoints:
v1.41/containers/json
v1.41/containers/{container_id}/stats?stream=false
If running MacOS, go to Docker Desktop > Settings > Advanced and check Allow the default Docker socket to be used (requires password).
Prometheus configuration from Mirco.