4.05 Heatmap Panel - MartinWong06/grafana GitHub Wiki

PromQL

histogram_quantile(0.95, sum(rate(prometheus_http_request_duration_seconds_bucket[$__rate_interval])) by (le))
histogram_quantile(0.95, sum(rate(prometheus_http_response_size_bytes_bucket[$__rate_interval])) by (le))
prometheus_rule_evaluation_duration_seconds{quantile="0.9",job="prometheus-docker"}

To calculate the average request duration during the last 5 minutes from a summary called http_request_duration_seconds


  rate(prometheus_http_request_duration_seconds_sum[5m])
/
  rate(prometheus_http_request_duration_seconds_count[5m])

image

image

Reference
Play Grafana Heatmap Sample

https://prometheus.io/docs/practices/histograms/#quantiles

https://grafana.com/docs/grafana/latest/fundamentals/intro-histograms/

⚠️ **GitHub.com Fallback** ⚠️