Container Low CPU utilization
info

Description Container CPU utilization is under 20% for 1 week. Consider reducing the allocated CPU.
Query for 7d
>>>
	
				
					(
				
			
				
					
					
						sum
					
				
			
				
					(
				
			
				
					
					
						rate
					
				
			
				
					(
				
			
				
					
				
			
				
					{container!=""}[5m])) by (pod, container) / 
				
			
				
					
					
						sum
					
				
			
				
					(
				
			
				
					
				
			
				
					{container!=""}/
				
			
				
					
				
			
				
					{container!=""}) by (pod, container) * 100) < 20
				
			
    
Query Explanation

The query computes the average CPU usage percentage for each pod‑container by dividing the 5‑minute rate of container_cpu_usage_seconds_total by the container’s CPU limit (container_spec_cpu_quota/container_spec_cpu_period) and multiplying by 100, and the alert triggers when this percentage remains below 20 % continuously for one week, suggesting the container is over‑provisioned.

Get Alert
Download
Copy to Clipboard