Thanos Compact Has Not Run
warning

Description Thanos Compact {{$labels.job}} has not uploaded anything for 24 hours.
Query for 0m
>>>
	
				
					(
				
			
				
					
					
						time
					
				
			
				
					() - max by (job) (
				
			
				
					
					
						max_over_time
					
				
			
				
					(
				
			
				
					
				
			
				
					{job=~".*thanos-compact.*"}[24h]))) / 60 / 60 > 24
				
			
    
Query Explanation

The query finds the latest thanos_objstore_bucket_last_successful_upload_time metric for each job matching *thanos-compact* over the past 24 h, computes how many hours have passed since that time ((time() - max)/3600), and fires when that value exceeds 24 h – i.e., when a Thanos Compact instance has not performed a successful upload for at least a full day.

Get Alert
Download
Copy to Clipboard