Loki request errors
critical

Description The {{ $labels.job }} and {{ $labels.route }} are experiencing errors
Query for 15m
>>>
	
				
					100 * 
				
			
				
					
					
						sum
					
				
			
				
					(
				
			
				
					
					
						rate
					
				
			
				
					(
				
			
				
					
				
			
				
					{status_code=~"5.."}[1m])) by (namespace, job, route) / 
				
			
				
					
					
						sum
					
				
			
				
					(
				
			
				
					
					
						rate
					
				
			
				
					(
				
			
				
					
				
			
				
					[1m])) by (namespace, job, route) > 10
				
			
    
Query Explanation

The rule computes the percentage of Loki requests that returned a 5xx status code over the past minute for each namespace, job, and route (using rate on the request count metrics) and fires the alert when this error rate exceeds 10 %.

Get Alert
Download
Copy to Clipboard