Map Prometheus metrics to RED KPIs
Prometheus provides a variety of metric types that can be used to track different aspects of your service’s performance. You can map custom or non-standard Prometheus metrics to RED KPIs to leverage the features of Asserts. These KPIs include request rate, error rate, latency average, and latency quantile.
Prerequisite
Asserts doesn’t consider all metrics by default. To ensure that Asserts includes your metrics of interest, contact Support with the list of metrics that you want to map, so that they can be enabled.
Common inputs required for all KPI mappings
When you add a new mapping, you must provide the following information:
Note
When defining the KPIs individually, maintain consistency in the Request context labels and Request type field definitions. After you have provided all the required inputs, the mapped KPI displays as a metric chart. You can review the KPI metric for any selected service, request, and time window. This enables a feedback loop to validate if the KPI is providing expected results.
KPI-specific inputs
The following sections provide an overview of specific inputs that you enter depending on the KPI you are mapping.
Request rate
Error rate
Latency average
Latency Quantile
Map all KPIs using a histogram
Instead of mapping each KPI individually, you can derive the request rate, latency average, latency quantile, and error rate from a single histogram.
Before you begin
Before you begin, ensure that you are familiar with Prometheus metrics and RED KPIs.
Steps
- Sign in to Grafana Cloud and click Observability > Asserts > Configuration.
- Click RED mapping.
- Determine which KPI you want to map and click Add new mapping.
- Define the mapping as described in the above sections.
- Click Submit.