Thanos Compactor High Compaction Failures
warning

Description Thanos Compact {{$labels.job}} is failing to execute {{$value | humanize}}% of compactions.
Query for 15m
>>>
	
				
					(sum by (job) (
				
			
				
					
					
						rate
					
				
			
				
					(
				
			
				
					
				
			
				
					{job=~".*thanos-compact.*"}[5m])) / sum by (job) (
				
			
				
					
					
						rate
					
				
			
				
					(
				
			
				
					
				
			
				
					{job=~".*thanos-compact.*"}[5m])) * 100 > 5)
				
			
    
Query Explanation

The query computes, per Thanos compact job, the percentage of compaction failures over the last 5 minutes by dividing the failure rate (thanos_compact_group_compactions_failures_total) by the total compaction rate (thanos_compact_group_compactions_total) and multiplying by 100, and the alert fires when this percentage exceeds 5 %.

Get Alert
Download
Copy to Clipboard