Menu
Grafana Cloud

Configure Istio to generate Prometheus metrics

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

  1. Refer to 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

MetricKPI

Request Counter

istio_requests_total

Request Rate

rate(istio_requests_total{reporter=“destination”}[5m])

Error Counter

istio_requests_total

Error Ratio (server errors)

rate(istio_requests_total{reporter=“destination”, response_code=~“5..”}[5m])/ rate(istio_requests_total[5m])

Error Ratio (client errors)

rate(istio_requests_total{reporter=“destination”, response_code=~“4..”}[5m])/ rate(istio_requests_total[5m])

Latency Histogram

istio_request_duration_milliseconds

Latency Average

rate(istio_request_duration_milliseconds_sum[5m])/ rate(istio_request_duration_milliseconds_count[5m])

Latency P99

histogram_quantile (
0.99,
sum(rate(istio_request_duration_milliseconds_bucket[5m]) > 0)
by (le)
)

Resource metrics

MetricKPI

Network Bytes Received

istio_request_bytes_sum

Network Bytes Transmitted

istio_response_bytes_sum

Data transfer rate

rate(istio_request_bytes_sum[5m)

rate(istio_response_bytes_sum[5m)

Alerts

KPIAlert
Request RateRequestRateAnomaly
Error Rate

ErrorRatioBreach

ErrorBuildup based on a 99.9 SLO

Latency Average

Latency P99

LatencyAverageBreach

LatencyAverageAnomaly

LatencyP99ErrorBuildup

Network BytesResourceRateAnomaly

KPI Dashboard

The following dashboard shows Istio KPIs.

Istio KPI dashboard