Promhub Logo promhub_

Kubernetes API client errors
critical

Description Kubernetes API client is experiencing high error rate
Query for 2m
>>>
	
				
					(
				
			
				
					
					
						sum
					
				
			
				
					(
				
			
				
					
					
						rate
					
				
			
				
					(
				
			
				
					rest_client_requests_total
				
			
				
					{code=~"(4|5).."}[1m])) by (instance, job) / 
				
			
				
					
					
						sum
					
				
			
				
					(
				
			
				
					
					
						rate
					
				
			
				
					(
				
			
				
					rest_client_requests_total
				
			
				
					[1m])) by (instance, job)) * 100 > 1
				
			
    
Query Explanation

The query computes, per instance and job, the ratio of client requests that returned 4xx or 5xx HTTP status codes to the total number of client requests over the last minute, expressed as a percentage. The alert triggers when this error rate exceeds 1 % for any instance/job.

Exporters Used

Related Alerts

Get Alert✕
Download
Copy to Clipboard