Sign inSign up

gounix/docker-hits

By gounix

•Updated 3 months ago

Make Docker pull statistics available to Prometheus

Image
Developer tools
Monitoring & observability
0

788

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

Content type

Image

Digest

sha256:f6444ad4b…

Size

73.2 MB

Last updated

3 months ago

docker pull gounix/docker-hits:1.2.2