[OCP4] Prometheus operator in openshift-user-workload-monitoring namespace rejected 2 prometheus/ServiceMonitor resources

Solution Unverified - Updated -

Issue

"Prometheus operator in openshift-user-workload-monitoring namespace rejected 2 prometheus/ServiceMonitor resources" alert firing

2023-03-24T13:54:48.926495625Z level=warn ts=2023-03-24T13:54:48.926343784Z caller=operator.go:1832 component=prometheusoperator msg="skipping servicemonitor" error="it accesses file system via bearer token file which Prometheus specification prohibits" servicemonitor=elastic-local-storage/local-storage-diskmaker-metrics namespace=openshift-user-workload-monitoring prometheus=user-workload

2023-03-24T13:54:48.926651409Z level=warn ts=2023-03-24T13:54:48.926609761Z caller=operator.go:1832 component=prometheusoperator msg="skipping servicemonitor" error="it accesses file system via bearer token file which Prometheus specification prohibits" servicemonitor=local-storage/local-storage-diskmaker-metrics namespace=openshift-user-workload-monitoring prometheus=user-workload

Environment

  • Red Hat OpenShift Container Platform
    • 4.10+
  • Local Storage Operator

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content