HAProxy backend max active session > 80%
warning

Description Session limit from backend {{ $labels.proxy }} reached 80% of limit - {{ $value | printf "%.2f"}}%
Query for 2m
>>>
	
				
					((
				
			
				
					
				
			
				
					 >0) * 100) / (
				
			
				
					
				
			
				
					 > 0) > 80
				
			
    
Query Explanation

The rule computes the percentage of active sessions for each HAProxy backend by dividing haproxy_backend_current_sessions by haproxy_backend_limit_sessions (only when both are > 0) and multiplying by 100; it fires when this percentage exceeds 80 %. In other words, any backend whose active sessions are more than 80 % of its configured session limit will trigger the alert.

Get Alert
Download
Copy to Clipboard