Skip to content

Commit 739d01a

Browse files
authored
Merge pull request kubernetes#89304 from otterley/nodelocaldnsmetrics
nodelocaldns: have Prometheus collect metrics
2 parents 4319ab2 + c6fa139 commit 739d01a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cluster/addons/dns/nodelocaldns/nodelocaldns.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,11 @@ spec:
121121
k8s-app: node-local-dns
122122
template:
123123
metadata:
124-
labels:
125-
k8s-app: node-local-dns
124+
labels:
125+
k8s-app: node-local-dns
126+
annotations:
127+
prometheus.io/port: "9253"
128+
prometheus.io/scrape: "true"
126129
spec:
127130
priorityClassName: system-node-critical
128131
serviceAccountName: node-local-dns

0 commit comments

Comments
 (0)