Caddy high HTTP 4xx error rate service
critical

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

The query calculates, per Caddy instance, the percentage of HTTP requests that returned a 4xx status code over the last 3 minutes (sum(rate(...[3m])) by (instance) for 4xx codes divided by the total request rate) and multiplies by 100; the alert fires when this error‑rate percentage exceeds 5 % for an instance.

Get Alert
Download
Copy to Clipboard