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.