Alerts from custom applications cannot be seen in developer perspective in OCP 4

Solution Verified - Updated -

Issue

  • Alerts defined in custom applications cannot be seen from a developer perspective, and they are seen in the Administrator console.
  • User-workloads are getting scraped in the platform's prometheus-k8s pods available in openshift-monitoring project:
$ oc get secrets/prometheus-k8s -o yaml -n openshift-monitoring | grep yaml | awk '{print $2}' | base64 -d | gunzip | grep job_name | grep -v target_label | grep ns1
- job_name: serviceMonitor/ns1/prometheus-example-monitor/0    <<== Job from ns1 project available in prometheus-k8s config

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4

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