Which containers restarted in the last hour?
BeginnerProductionRapid-Fire PromQL & LogQL
Answer
increase(kube_pod_container_status_restarts_total[1h]) > 0
Add kube_pod_container_status_last_terminated_reason{reason="OOMKilled"} == 1 to see which restarts were OOM kills.
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