Configure Istio to generate Prometheus metrics
To configure Istio to generate Prometheus metrics, complete the following steps:
Refer to Prometheus and complete the setup instructions.
To confirm you configured Istio correctly, ensure the following metrics are available in Prometheus.
- istio_build
Request, error, and latency metrics
Metric | KPI |
---|---|
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 ( |
Resource metrics
Metric | KPI |
---|---|
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
KPI | Alert |
---|---|
Request Rate | RequestRateAnomaly |
Error Rate | ErrorRatioBreach ErrorBuildup based on a 99.9 SLO |
Latency Average Latency P99 | LatencyAverageBreach LatencyAverageAnomaly LatencyP99ErrorBuildup |
Network Bytes | ResourceRateAnomaly |
KPI Dashboard
The following dashboard shows Istio KPIs.