global-load-balancer-operator icon indicating copy to clipboard operation
global-load-balancer-operator copied to clipboard

ServiceMonitor rejected on OCP 4.14

Open vrutkovs opened this issue 2 years ago • 2 comments

Installed global-load-balancer on OCP 4.14 and it appears user level monitoring is rejecting the servicemonitor for global-load-balancer. PrometheusOperatorRejectedResources alert appears and user level monitor has:

2023-09-26T08:29:50.229341706Z level=warn ts=2023-09-26T08:29:50.229243216Z caller=resource_selector.go:174 component=prometheusoperator msg="skipping servicemonitor" error="it accesses file system via bearer token file which Prometheus specification prohibits" servicemonitor=global-load-balancer-operator/global-load-balancer-operator-controller-manager-metrics-monitor namespace=openshift-user-workload-monitoring prometheus=user-workload

Not sure if its user monitoring issue or this operator's ServiceMonitor needs additional changes

vrutkovs avatar Sep 26 '23 10:09 vrutkovs

@vrutkovs can you share which version of 4.14 you are seeing this on. I deployed rc2 and did not experience this situation, but did observe that a service account token was present in the pod

sabre1041 avatar Sep 27 '23 15:09 sabre1041

It was rc1 and rc2 on GCP, most likely the trigger was user-level monitoring. I'll play with this a few more times to see what's causing it

vrutkovs avatar Sep 27 '23 18:09 vrutkovs