KubeStateMetricsShardingMismatch
critical

Description kube-state-metrics pods are running with different --total-shards configuration, some Kubernetes objects may be exposed multiple times or not exposed at all.
Query for 15m
>>>
	
				
					
				
			
				
					 (
				
			
				
					
				
			
				
					{job="kube-state-metrics"}) by (cluster) != 0

				
			
    
Query Explanation

The query computes the variance of the kube_state_metrics_total_shards metric across all kube-state-metrics pods per cluster; a non‑zero variance indicates that the pods are using different --total‑shards settings, which triggers the alert.

Get Alert
Download
Copy to Clipboard