Prometheus timeseries cardinality
warning

Description The "{{ $labels.name }}" timeseries cardinality is getting very high: {{ $value }}
Query
>>>
	
				
					
					
						label_replace
					
				
			
				
					(count by(__
				
			
				
					
				
			
				
					__) ({__
				
			
				
					
				
			
				
					__=~".+"}), "
				
			
				
					
				
			
				
					", "$1", "__
				
			
				
					
				
			
				
					__", "(.+)") > 10000
				
			
    
Query Explanation

The rule counts the total number of distinct metric names (__name__) across all scraped series and fires when that count exceeds 10,000, indicating unusually high timeseries cardinality. It triggers whenever the total unique metric name count is greater than 10 000.

Get Alert
Download
Copy to Clipboard