How do you visualize a Prometheus histogram as a heatmap in Grafana?

IntermediateConceptGrafana
Answer

Query the bucket rates grouped by le, set the query Format to Heatmap, and use the Heatmap panel:

sum by (le) (increase(http_request_duration_seconds_bucket{job="api"}[$__rate_interval]))

Grafana converts cumulative buckets into per-bucket counts. Each column is a time slice and color shows how many requests fell into each latency band, revealing bimodal latency that a p99 line hides.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Grafana