Prometheus exporter for the opensource Docker registry's file storage system.
It is intended to run as a sidecar in Kubernetes mounting the same persistent volume as the Docker registry.
If running in Kubernetes, you can run the exporter as a sidecar container to your regular registry image:
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/registry
volumes:
- name: storage
persistentVolumeClaim:
claimName: registry
The exporter produces four metrics:
repository_tags_total
- a Gauge representing the number of tags for each repository in the registry- Labels:
repository
- Labels:
repository_revisions_total
- a Gauge representing the number of revisions for each repository in the registry- Labels:
repository
- Labels:
repository_tag_layers_total
- a Gauge representing the number of layers for each tag for each repository in the registry- Labels:
repository
,tag
- Labels:
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
- Labels:
Please see our Contributing guidelines for more information.
See instructions in eponymous section in CONTRIBUTING.md