https://github.com/faust64/docker-registry-exporter
testing tekton triggers / temporary repository / don't mind me
https://github.com/faust64/docker-registry-exporter
Last synced: about 1 month ago
JSON representation
testing tekton triggers / temporary repository / don't mind me
- Host: GitHub
- URL: https://github.com/faust64/docker-registry-exporter
- Owner: faust64
- License: bsd-3-clause
- Created: 2021-01-12T08:45:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-12T09:08:43.000Z (over 4 years ago)
- Last Synced: 2025-02-17T15:51:49.185Z (4 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-registry-exporter
bloop
Prometheus exporter for the opensource [Docker registry](https://github.com/docker/distribution)'s file storage system.
It is intended to run as a sidecar in Kubernetes mounting the same persistent volume as the Docker registry.
## Running the exporter
If running in Kubernetes, you can run the exporter as a sidecar container to your regular registry image:
```yaml
containers:
- image: registry:2
name: registry
ports:
- containerPort: 5000
name: http
protocol: TCP
readinessProbe:
httpGet:
path: /
port: 5000
initialDelaySeconds: 1
timeoutSeconds: 1
livenessProbe:
httpGet:
path: /
port: 5000
initialDelaySeconds: 1
timeoutSeconds: 1
volumeMounts:
- name: storage
mountPath: /var/lib/registry- image: skyuk/docker-registry-exporter:v1.0.0
name: registry-exporter
args:
- /var/lib/registry/docker/registry/v2
ports:
- containerPort: 8080
name: http
protocol: TCP
volumeMounts:
- name: storage
mountPath: /var/lib/registryvolumes:
- name: storage
persistentVolumeClaim:
claimName: registry
```## Metrics produced
The exporter produces four metrics:
* `repository_tags_total` - a Gauge representing the number of tags for each repository in the registry
* Labels: `repository`
* `repository_revisions_total` - a Gauge representing the number of revisions for each repository in the registry
* Labels: `repository`
* `repository_tag_layers_total` - a Gauge representing the number of layers for each tag for each repository in the registry
* Labels: `repository`, `tag`
* `repository_tag_size_bytes` - a Gauge representing the sum of the size of each layer for each tag for each repository in the resitry
* Labels: `repository`, `tag`## Development
Please see our [Contributing guidelines](/CONTRIBUTING.md) for more information.
## Releasing
See instructions in eponymous section in `CONTRIBUTING.md`