Thanos Query Range Latency High
critical

Description Thanos Query {{$labels.job}} has a 99th percentile latency of {{$value}} seconds for range queries.
Query for 10m
>>>
	
				
					(
				
			
				
					
					
						histogram_quantile
					
				
			
				
					(0.99, sum by (job, le) (
				
			
				
					
					
						rate
					
				
			
				
					(
				
			
				
					
				
			
				
					{job=~".*thanos-query.*", handler="query_range"}[5m]))) > 90 and sum by (job) (
				
			
				
					
					
						rate
					
				
			
				
					(
				
			
				
					
				
			
				
					{job=~".*thanos-query.*", handler="query_range"}[5m])) > 0)
				
			
    
Query Explanation

The rule computes the 99th‑percentile latency of Thanos query_range HTTP requests over the last 5 minutes using histogram_quantile. It fires when that latency exceeds 90 seconds and at least one query_range request was observed in the same window.

Get Alert
Download
Copy to Clipboard