Promhub Logo promhub_

Kubernetes HPA scale inability
warning

Description HPA {{ $labels.namespace }}/{{ $labels.horizontalpodautoscaler }} is unable to scale
Query for 2m
>>>
	
				
					(
				
			
				
					kube_horizontalpodautoscaler_spec_max_replicas
				
			
				
					 - 
				
			
				
					kube_horizontalpodautoscaler_status_desired_replicas
				
			
				
					) * on (horizontalpodautoscaler,namespace) (
				
			
				
					kube_horizontalpodautoscaler_status_condition
				
			
				
					{condition="ScalingLimited", status="true"} == 1) == 0
				
			
    
Query Explanation

The query selects HPAs where the ScalingLimited condition is true and checks if the remaining capacity (maxReplicas - desiredReplicas) is zero; when this is the case, the HPA cannot scale further. The alert fires when an HPA has reached its maximum replica limit while scaling is limited.

Exporters Used

Related Alerts

Get Alert✕
Download
Copy to Clipboard