No description
  • Go 90.8%
  • Dockerfile 9.2%
Find a file
jonasled ed3c25b815
All checks were successful
/ sbom (push) Has been skipped
/ build (darwin/arm64) (push) Successful in 1m24s
/ build (linux/amd64) (push) Successful in 1m38s
/ build (linux/arm64) (push) Successful in 1m31s
/ build (windows/amd64) (push) Successful in 1m35s
/ build (windows/arm64) (push) Successful in 1m42s
/ build (darwin/amd64) (push) Successful in 3m28s
/ build (push) Successful in 4m6s
/ docker (push) Successful in 0s
/ upload (push) Has been skipped
/ binaries (push) Successful in 0s
Port CI to Forgejo Actions
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 10:56:09 +01:00
.forgejo/workflows Port CI to Forgejo Actions 2026-11-18 10:56:09 +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
Dockerfile Update jonasled.dev/infra/images/scratch-rootless Docker digest to 9e291c8 2026-11-12 20:20:42 +00:00
go.mod Update module github.com/prometheus/client_golang to v1.25.0 2026-10-08 22:21:37 +00:00
go.sum Update module github.com/prometheus/client_golang to v1.25.0 2026-10-08 22:21:37 +00: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 |