p99 latency per route from a histogram?
IntermediateProductionRapid-Fire PromQL & LogQL
Answer
histogram_quantile(0.99,
sum by (le, route) (rate(http_request_duration_seconds_bucket[5m])))
Keep le in the by clause. For native histograms drop _bucket and le: histogram_quantile(0.99, sum by (route) (rate(http_request_duration_seconds[5m]))).
More on Rapid-Fire PromQL & LogQL
Requests per second per service over the last 5 minutes?BeginnerPercentage of 5xx responses per service?BeginnerTop 5 pods by CPU usage in a namespace?BeginnerMemory working set as a percentage of the container limit?IntermediateWhich scrape targets are down right now?BeginnerWhich filesystems will fill up within 4 hours?Intermediate