No description
- Go 90.8%
- Dockerfile 9.2%
|
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
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .forgejo/workflows | ||
| dockerhub | ||
| log | ||
| metrics | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| Readme.md | ||
| renovate.json | ||
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 |