Caddy high HTTP 5xx error rate service
critical

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

The rule computes, per Caddy instance, the percentage of requests that returned a 5xx status code over the last 3 minutes (sum of rate(...{code=~"5.."}[3m]) divided by the total request rate) and triggers the alert whenever that percentage exceeds 5 %.

Get Alert
Download
Copy to Clipboard