MySQL too many connections (> 80%)
warning

Description More than 80% of MySQL connections are in use on {{ $labels.instance }}
Query for 2m
>>>
	
				
					
					
						max_over_time
					
				
			
				
					(
				
			
				
					
				
			
				
					[1m]) / 
				
			
				
					
				
			
				
					 * 100 > 80
				
			
    
Query Explanation

The rule computes the peak number of MySQL threads connected over the past minute, divides it by the configured max_connections, multiplies by 100 to get a usage percentage, and fires when this exceeds 80 %. In other words, the alert triggers for an instance whenever more than 80% of its allowed MySQL connections are in use.

Get Alert
Download
Copy to Clipboard