Skip to content

Commit 1ef820f

Browse files
authored
MON-4516: Use endpointslices for metrics (#2516)
* Add permissions on endpointslice to Prometheus Role * Use serviceDiscoveryRole: EndpointSlice in ServiceMonitors Signed-off-by: Todd Short <tshort@redhat.com>
1 parent 11f2db3 commit 1ef820f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

helm/olmv1/templates/rbac/role-olmv1-system-metrics-monitor-role.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,13 @@ rules:
2121
- get
2222
- list
2323
- watch
24+
- apiGroups:
25+
- discovery.k8s.io
26+
resources:
27+
- endpointslices
28+
verbs:
29+
- get
30+
- list
31+
- watch
2432
{{- end -}}
2533
{{- end -}}

helm/olmv1/templates/servicemonitor-olmv1-system-metrics-monitor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ spec:
2929
selector:
3030
matchLabels:
3131
app.kubernetes.io/name: {{ include "olmv1.label.name" . }}
32+
serviceDiscoveryRole: EndpointSlice
3233
{{- end -}}
3334
{{- end -}}

0 commit comments

Comments
 (0)