Outdated Snapshots
warning

Description Outdated snapshots on {{ $labels.instance }}: {{ $value | printf "%.0f"}} days
Query for 5m
>>>
	
				
					(
				
			
				
					
					
						time
					
				
			
				
					() - 
				
			
				
					
				
			
				
					) / (60 * 60 * 24) >= 3
				
			
    
Query Explanation

The rule computes the age of each VM snapshot in days by taking the current time, subtracting the snapshot timestamp, converting the result from seconds to days, and then checks if that value is ≥ 3. It triggers the "Outdated Snapshots" alert for any instance where a snapshot is three days old or older.

Get Alert
Download
Copy to Clipboard