Skip to content

Commit 30295d6

Browse files
Clee2691openshift-merge-bot[bot]
authored andcommitted
LOG-9384: Operator metrics ServiceMonitor missing bearerTokenFile, causing 401 on Prometheus scrape
1 parent a77f14f commit 30295d6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

bundle/manifests/cluster-logging-operator-metrics-monitor_monitoring.coreos.com_v1_servicemonitor.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ metadata:
66
name: cluster-logging-operator-metrics-monitor
77
spec:
88
endpoints:
9-
- port: https-metrics
9+
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
10+
port: https-metrics
1011
scheme: https
1112
tlsConfig:
1213
caFile: /etc/prometheus/configmaps/serving-certs-ca-bundle/service-ca.crt

config/prometheus/servicemonitor.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ spec:
88
endpoints:
99
- port: https-metrics
1010
scheme: https
11+
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
1112
tlsConfig:
1213
# Service serving certificates are signed by the service-ca which is not a CA in the
1314
# kube-root-ca.crt bundle. Use the service-ca.crt from the ConfigMap created by the

0 commit comments

Comments
 (0)