{"id":13585804,"url":"https://github.com/sky-uk/docker-registry-exporter","last_synced_at":"2025-08-21T18:14:29.082Z","repository":{"id":33974731,"uuid":"159557662","full_name":"sky-uk/docker-registry-exporter","owner":"sky-uk","description":"Prometheus exporter for docker registry","archived":false,"fork":false,"pushed_at":"2023-07-20T07:36:33.000Z","size":23,"stargazers_count":16,"open_issues_count":4,"forks_count":4,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-02-14T21:16:26.331Z","etag":null,"topics":["docker-registry","prometheus-exporter","sidecar"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sky-uk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-28T20:00:21.000Z","updated_at":"2024-08-01T16:31:48.585Z","dependencies_parsed_at":"2024-08-01T16:41:51.108Z","dependency_job_id":null,"html_url":"https://github.com/sky-uk/docker-registry-exporter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky-uk%2Fdocker-registry-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky-uk%2Fdocker-registry-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky-uk%2Fdocker-registry-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky-uk%2Fdocker-registry-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sky-uk","download_url":"https://codeload.github.com/sky-uk/docker-registry-exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228204606,"owners_count":17884711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-registry","prometheus-exporter","sidecar"],"created_at":"2024-08-01T15:05:09.314Z","updated_at":"2024-12-04T23:09:05.622Z","avatar_url":"https://github.com/sky-uk.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# docker-registry-exporter\n\nPrometheus exporter for the opensource [Docker registry](https://github.com/docker/distribution)'s file storage system.\n\nIt is intended to run as a sidecar in Kubernetes mounting the same persistent volume as the Docker registry.\n\n## Running the exporter\n\nIf running in Kubernetes, you can run the exporter as a sidecar container to your regular registry image:\n\n```yaml\ncontainers:\n- image: registry:2\n  name: registry\n  ports:\n  - containerPort: 5000\n    name: http\n    protocol: TCP\n  readinessProbe:\n    httpGet:\n      path: /\n      port: 5000\n    initialDelaySeconds: 1\n    timeoutSeconds: 1\n  livenessProbe:\n    httpGet:\n      path: /\n      port: 5000\n    initialDelaySeconds: 1\n    timeoutSeconds: 1\n  volumeMounts:\n  - name: storage\n    mountPath: /var/lib/registry\n\n- image: skyuk/docker-registry-exporter:v1.0.0\n  name: registry-exporter\n  args:\n    - /var/lib/registry/docker/registry/v2\n  ports:\n  - containerPort: 8080\n    name: http\n    protocol: TCP\n  volumeMounts:\n  - name: storage\n    mountPath: /var/lib/registry\n\nvolumes:\n- name: storage\n  persistentVolumeClaim:\n    claimName: registry\n```\n\n## Metrics produced\n\nThe exporter produces four metrics:\n\n * `repository_tags_total` - a Gauge representing the number of tags for each repository in the registry\n   * Labels: `repository`\n * `repository_revisions_total` - a Gauge representing the number of revisions for each repository in the registry\n   * Labels: `repository`\n * `repository_tag_layers_total` - a Gauge representing the number of layers for each tag for each repository in the registry\n   * Labels: `repository`, `tag`\n * `repository_tag_size_bytes` - a Gauge representing the sum of the size of each layer for each tag for each repository in the resitry\n   * Labels: `repository`, `tag`\n\n## Development\n\nPlease see our [Contributing guidelines](/CONTRIBUTING.md) for more information.\n\n## Releasing\n\nSee instructions in eponymous section in `CONTRIBUTING.md`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky-uk%2Fdocker-registry-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsky-uk%2Fdocker-registry-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky-uk%2Fdocker-registry-exporter/lists"}