Nginx high HTTP 4xx error rate
critical

Description Too many HTTP requests with status 4xx (> 5%)
Query for 1m
>>>
	
				
					
					
						sum
					
				
			
				
					(
				
			
				
					
					
						rate
					
				
			
				
					(
				
			
				
					
				
			
				
					{status=~"^4.."}[1m])) / 
				
			
				
					
					
						sum
					
				
			
				
					(
				
			
				
					
					
						rate
					
				
			
				
					(
				
			
				
					
				
			
				
					[1m])) * 100 > 5
				
			
    
Query Explanation

Calculates the percentage of all Nginx requests that returned a 4xx status over the past minute using rate(nginx_http_requests_total{status=~"^4.."}[1m]) divided by the total request rate, and triggers when this percentage exceeds 5 %.

Get Alert
Download
Copy to Clipboard