LogQL: top 10 pods by log volume in the last hour?
IntermediateProductionRapid-Fire PromQL & LogQL
Answer
topk(10, sum by (namespace, pod) (bytes_over_time({namespace=~".+"}[1h])))
This is the query we run before a log-cost review; one debug-logging pod often turns out to be half the bill.
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