How to Record Default Prometheus Metrics with Custom Names in RHOCP4

Updated -
  • To define custom-named metrics based on existing default Prometheus metrics, you can create a Prometheus recording rule using a PrometheusRule custom resource. This is useful for simplifying complex expressions, renaming metrics for clarity, or optimizing dashboard queries.

    apiVersion: monitoring.coreos.com/v1
    kind: PrometheusRule
    metadata:
     name: custom-metrics-rules
    ...

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