No description
  • Go 90.8%
  • Dockerfile 9.2%
Find a file
2026-02-15 10:54:40 +01:00
dockerhub export metrics via prometheus 2025-01-12 17:06:35 +01:00
log get auth token from docker hub 2025-01-12 16:20:53 +01:00
metrics rename metrics 2025-01-12 18:16:25 +01:00
.gitlab-ci.yml Update golang Docker tag to v1.26.0 2026-02-11 00:02:46 +01:00
Dockerfile Update golang Docker tag to v1.26.0 2026-02-11 00:02:46 +01:00
go.mod Update module github.com/go-resty/resty/v2 to v2.17.2 2026-02-15 00:02:24 +01:00
go.sum Update module github.com/go-resty/resty/v2 to v2.17.2 2026-02-15 00:02:24 +01:00
main.go hub needs initial get before data can be received 2025-04-22 21:56:04 +02:00
Readme.md add readme with docs 2025-01-12 18:20:22 +01:00
renovate.json enable recomendet renovate config 2025-01-19 18:30:21 +00:00

Docker Hub ratelimit exporter

This service exposes the current pull limit from docker hub as prometheus metric.

Metrics

Name Description
dockerhub_limit_max_requests Maximum number of pulls a user can do ( e.g. 100 for unauthorized users )
dockerhub_limit_remaining_requests Currently remaining pulls

Configuration

The configuration can be either done using a .env variable or though environment variables.

| ENV Variable | Description | | CHECK_INTERVAL | Interval in seconds to fetch the current limit | | DOCKER_USERNAME | Login to docker hub, for checking a users limit | | DOCKER_PASSWORD | Login to docker hub, for checking a users limit | | PROMETHEUS_AUTH_USERNAME | Basic auth username for prometheus | | PROMETHEUS_AUTH_PASSWORD | Basic auth password for prometheus | | TLS_CERT | TLS Certificate for Webserver | | TLS_KEY | TLS Private key for Webserver |