Create custom Prometheus rules for user-defined namespaces

Solution Verified - Updated -

Issue

  • How to create custom Prometheus rules with the help of default rules?
  • The rules defined in openshift-monitoring project only monitors the default cluster projects and not the user-defined projects.
  • How to create new rules that will be similar to the ones provided in prometheus-k8s-rules rule-file which would be applicable to the user-defined projects in addition to the default ones?

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.x

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