Skip to content

Commit fb9bf79

Browse files
committed
Fix ServiceMonitor RBAC for authenticated metrics endpoints
Add /metrics nonResourceURL permission to allow Prometheus in OCP to access authenticated metrics without HTTP 500 errors.
1 parent 971d680 commit fb9bf79

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deploy/chart/templates/0000_90_olm_00-service-monitor.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,8 @@ rules:
8787
- get
8888
- list
8989
- watch
90+
- nonResourceURLs:
91+
- "/metrics"
92+
verbs:
93+
- get
9094
{{ end }}

0 commit comments

Comments
 (0)