You need to monitor a service mesh (Istio) without overwhelming Prometheus. What do you do?
AdvancedScenarioGrafana, Dashboards and Kubernetes Monitoring
Answer
Situation read → Istio sidecars expose many high-cardinality metrics per workload pair.
What I'd do →
- Use Istio standard metrics (
istio_requests_total,istio_request_duration_milliseconds_bucket) and drop unused ones with relabelling. - Remove high-cardinality labels via the Telemetry API (
tagOverrides) ormetric_relabel_configs. - Pre-aggregate workload-level series with recording rules and use federation or remote_write for only the aggregates.
- Use mesh-wide dashboards (Kiali, Grafana Istio dashboards).
Why → Sidecar metrics can be the largest series source in the cluster.
Interview tip → Mention Istio's recommendation to aggregate at workload level for production.
More on Grafana, Dashboards and Kubernetes Monitoring
Grafana has 900 dashboards and nobody can find anything. How do you clean it up?IntermediateHow do you manage Grafana dashboards as code?IntermediateDesign a service overview dashboard that an on-call engineer can read in 10 seconds.BeginnerYou need to show deploy events on every Grafana graph. How?BeginnerPods are being OOMKilled but the memory graph never reaches the limit. Why?IntermediateHow do you detect CPU throttling hurting latency in Kubernetes?Intermediate