HUB
Sign inSign up
docker-hits logo

gounix/docker-hits

By gounix

•Updated 6 months ago

Make Docker pull statistics available to Prometheus

Image
Developer tools
Monitoring & observability
0

1.1K

gounix/docker-hits repository overview

⁠Overview

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.

⁠Screenshot

Grafana

⁠Environment variables

The following enviroment variables are supported:

VariableDescription
INTERVALThe amount of seconds between successive polls of docker.io
PORTThe port that is used for publishing the metrics
NAMESPACEThe docker namespace to query, all images will be reported
IMAGEThe docker image to query
only one of NAMESPACE or IMAGE can be specified.

⁠Available metrics

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.

⁠Helm chart

github⁠

⁠Sources

github⁠

⁠Container

docker hub⁠

Tag summary
Recent tags
Content type
Image
Digest
sha256:f6444ad4b…
Size
73.2 MB
Last updated
6 months ago
docker pull gounix/docker-hits:1.2.2