---
title: "Configure Istio to generate Prometheus metrics | Grafana Cloud documentation"
description: "Configure Istio to send metrics"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Configure Istio to generate Prometheus metrics

To configure Istio to generate Prometheus metrics, complete the following steps:

1. Refer to [Prometheus](https://istio.io/latest/docs/ops/integrations/prometheus/) and complete the setup instructions.
2. To confirm you configured Istio correctly, ensure the following metrics are available in Prometheus.
   
   - istio\_build

## Request, error, and latency metrics

Expand table

| **Metric**                                                                      | **KPI**                                                                                                                                                                                                                                                                                                                                                            |
|---------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Request Counter<br /><br /><br /><br />istio\_requests\_total                   | Request Rate<br /><br /><br /><br />rate(istio\_requests\_total{reporter=“destination”}\[5m])                                                                                                                                                                                                                                                                      |
| Error Counter<br /><br /><br /><br />istio\_requests\_total                     | Error Ratio (server errors)<br /><br /><br /><br />rate(istio\_requests\_total{reporter=“destination”, response\_code=“5..”}\[5m])/ rate(istio\_requests\_total\[5m])<br /><br /><br /><br />Error Ratio (client errors)<br /><br /><br /><br />rate(istio\_requests\_total{reporter=“destination”, response\_code=“4..”}\[5m])/ rate(istio\_requests\_total\[5m]) |
| Latency Histogram<br /><br /><br /><br />istio\_request\_duration\_milliseconds | Latency Average<br /><br /><br /><br />rate(istio\_request\_duration\_milliseconds\_sum\[5m])/ rate(istio\_request\_duration\_milliseconds\_count\[5m])<br /><br /><br /><br />Latency P99<br /><br /><br /><br />histogram\_quantile (  <br />0.99,  <br />sum(rate(istio\_request\_duration\_milliseconds\_bucket\[5m]) &gt; 0)  <br />by (le)  <br />)          |

## Resource metrics

Expand table

| **Metric**                                                                                                                                                                   | **KPI**                                                                                                                                   |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
| Network Bytes Received<br /><br /><br /><br />istio\_request\_bytes\_sum<br /><br /><br /><br />Network Bytes Transmitted<br /><br /><br /><br />istio\_response\_bytes\_sum | Data transfer rate<br /><br /><br /><br />rate(istio\_request\_bytes\_sum[5m)<br /><br /><br /><br />rate(istio\_response\_bytes\_sum[5m) |

## Alerts

Expand table

| **KPI**                                            | **Alert**                                                                                                                   |
|----------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
| Request Rate                                       | **RequestRateAnomaly**                                                                                                      |
| Error Rate                                         | **ErrorRatioBreach**<br /><br /><br /><br />**ErrorBuildup** based on a 99.9 SLO                                            |
| Latency Average<br /><br /><br /><br />Latency P99 | **LatencyAverageBreach**<br /><br /><br /><br />**LatencyAverageAnomaly**<br /><br /><br /><br />**LatencyP99ErrorBuildup** |
| Network Bytes                                      | **ResourceRateAnomaly**                                                                                                     |
