Promhub Logo promhub_

Kubernetes Container oom killer
warning

Description Container {{ $labels.container }} in pod {{ $labels.namespace }}/{{ $labels.pod }} has been OOMKilled {{ $value }} times in the last 10 minutes.
Query
>>>
	
				
					(
				
			
				
					kube_pod_container_status_restarts_total
				
			
				
					 - 
				
			
				
					kube_pod_container_status_restarts_total
				
			
				
					 offset 10m >= 1) and ignoring (reason) 
				
			
				
					
					
						min_over_time
					
				
			
				
					(
				
			
				
					kube_pod_container_status_last_terminated_reason
				
			
				
					{reason="OOMKilled"}[10m]) == 1
				
			
    
Query Explanation

The alert triggers when a container in a pod has been restarted at least once in the last 10 minutes and the most recent termination reason within that window is OOMKilled, indicating the container was killed due to out‑of‑memory.

Exporters Used

Related Alerts

Get Alert✕
Download
Copy to Clipboard