OCP4 - Prometheus can't scrape metrics from openshift-network-diagnostics namespace.

Solution In Progress - Updated -

Issue

Prometheus logs return an error for openshift-network-diagnostics namespace:

level=warn ts=2021-11-04T08:05:44.022232114Z caller=operator.go:1697 component=prometheusoperator msg="skipping servicemonitor" error="it accesses file system via bearer token file which Prometheus specification prohibits" servicemonitor=openshift-network-diagnostics/network-check-source namespace=openshift-user-workload-monitoring prometheus=user-workload

Environment

  • Red Hat Openshift Container Platform [OCP] 4.6+

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