Interview › Istio & Service Mesh
How does Istio integrate with Prometheus for metrics?
Istio & Service Mesh · Intermediate level
Answer
Istio integrates with Prometheus by exposing proxy and control-plane metrics that Prometheus can scrape. The data plane emits request metrics such as istio_requests_total and duration histograms, while Istio components expose health and operational metrics.
Technical explanation
In production, Prometheus scraping is usually managed by Prometheus Operator ServiceMonitor or PodMonitor resources, or equivalent platform configuration.
Metric cardinality must be controlled; excessive labels can overload Prometheus.
Dashboards and alerts should distinguish workload traffic metrics from mesh control-plane and gateway metrics.
Hands-on example
Prometheus query examples:
Error rate:
sum(rate(istio_requests_total{response_code=~'5..'}[5m])) by (destination_workload)
/
sum(rate(istio_requests_total[5m])) by (destination_workload)
Control plane scrape check:
$ kubectl -n istio-system get svc istiod -o yaml | grep prometheus -A5Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Istio & Service Mesh interview questions
- What telemetry does Istio provide out of the box (metrics, logs, traces)?
- How does Istio issue and rotate workload certificates (SPIFFE/SPIRE concepts)?
- How does Istio enable distributed tracing, and what is required from the application?
- How does Istio enable a Zero Trust posture inside the cluster?
- What is the typical latency and resource overhead of the sidecar, and how do you minimise it?
- How do you use istioctl proxy-config and proxy-status to debug Envoy?
- What does istioctl analyze do?
- How do you debug mTLS handshake failures between two services?