How do you show latency correctly on a dashboard?
IntermediateProductionDashboard Design Standards
Answer
Show percentiles computed from histograms across the fleet, not averages:
histogram_quantile(0.99, sum by (le, route) (rate(http_request_duration_seconds_bucket{service="$service"}[$__rate_interval])))
Plot p50, p90 and p99 together, with a horizontal threshold line at the SLO target. A heatmap panel of the buckets shows bimodal distributions that percentiles hide. Always set the unit to seconds.
More on Dashboard Design Standards
What is the standard layout for a service dashboard?BeginnerWhat is the difference between RED and USE, and where do you apply each?BeginnerWhat anti-patterns do you see most in Grafana dashboards?BeginnerHow do you structure dashboards so engineers can drill down quickly?IntermediateHow do you use template variables safely on large environments?IntermediateWhat is `$__rate_interval` and why should dashboards use it?Intermediate