Outdated Snapshots warning
Outdated snapshots on {{ $labels.instance }}: {{ $value | printf "%.0f"}} days
>>>
(
time
() -
) / (60 * 60 * 24) >= 3
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