Make Docker pull statistics available to Prometheus
788
The docker-hits container queries the pull statistics at docker.io. If a namespace is specified all images in that namespace will be reported. If an image is specified only that image will be reported. The values are made available for scraping by prometheus. The scrape url is http://<service_address>:/metrics. If you use the prometheus-operator deployment in combination with our helm chart the scrape config is not needed. The helm chart contains a serviceMonitor definition.

The following enviroment variables are supported:
| Variable | Description |
|---|---|
| INTERVAL | The amount of seconds between successive polls of docker.io |
| PORT | The port that is used for publishing the metrics |
| NAMESPACE | The docker namespace to query, all images will be reported |
| IMAGE | The docker image to query |
| only one of NAMESPACE or IMAGE can be specified. |
There are two available metrics docker_pull_count and docker_star_count. Both have the labels docker_namespace and repo that correspond to the environment variables NAMESPACE and IMAGE.
Content type
Image
Digest
sha256:f6444ad4b…
Size
73.2 MB
Last updated
3 months ago
docker pull gounix/docker-hits:1.2.2