Highest 5-minute request rate in the last 24 hours?
AdvancedProductionRapid-Fire PromQL & LogQL
Answer
max_over_time(sum(rate(http_requests_total{job="checkout"}[5m]))[1d:5m])
A subquery: evaluate the inner expression every 5 minutes over 1 day, then take the max. Expensive, so put the inner expression in a recording rule if it runs on a dashboard.
More on Rapid-Fire PromQL & LogQL
Requests per second per service over the last 5 minutes?BeginnerPercentage of 5xx responses per service?Beginnerp99 latency per route from a histogram?IntermediateTop 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?Beginner