Traefik high HTTP 4xx error rate service
critical

Description Traefik service 4xx error rate is above 5%
Query for 1m
>>>
	
				
					
					
						sum
					
				
			
				
					(
				
			
				
					
					
						rate
					
				
			
				
					(
				
			
				
					
				
			
				
					{code=~"4.*"}[3m])) by (service) / 
				
			
				
					
					
						sum
					
				
			
				
					(
				
			
				
					
					
						rate
					
				
			
				
					(
				
			
				
					
				
			
				
					[3m])) by (service) * 100 > 5
				
			
    
Query Explanation

The query calculates, for each service, the percentage of requests that returned a 4xx status over the past 3 minutes (sum(rate(...[3m]))), and the alert fires when this error‑rate exceeds 5 %. In other words, if more than five percent of a service's recent requests are client errors, the alert triggers.

Get Alert
Download
Copy to Clipboard