Skip to content

Commit

Permalink
Add metrics port for docker registry
Browse files Browse the repository at this point in the history
  • Loading branch information
REBELinBLUE committed Feb 1, 2020
1 parent 2b5f536 commit 231c0fa
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion deployments/registry/docker-registry/docker-registry.yaml
Expand Up @@ -19,6 +19,7 @@ data:
http:
addr: :5000
debug:
addr: :5001
prometheus:
enabled: true
headers:
Expand Down Expand Up @@ -74,6 +75,9 @@ spec:
- name: http
containerPort: 5000
protocol: TCP
- name: metrics
containerPort: 5001
protocol: TCP
volumeMounts:
- name: config
mountPath: /etc/docker/registry
Expand Down Expand Up @@ -110,11 +114,17 @@ metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/metrics"
prometheus.io/port: "5001"
spec:
ports:
- protocol: TCP
- name: http
protocol: TCP
port: 5000
targetPort: 5000
- name: metrics
protocol: TCP
port: 5001
targetPort: 5001
selector:
app: docker-registry
---
Expand Down

0 comments on commit 231c0fa

Please sign in to comment.