From 9bb58d3cdbef5ae3ef5b12bb2c138e69fc6f233f Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 3 Jul 2020 11:05:06 -0400 Subject: [PATCH] Add alarm for aging ZFS snapshots --- backup_rules.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backup_rules.yml b/backup_rules.yml index 6dd6f91..1ada678 100644 --- a/backup_rules.yml +++ b/backup_rules.yml @@ -9,3 +9,10 @@ groups: severity: important annotations: summary: "{{ $labels.instance }} last backup age is >48 hours" + - alert: ZFS snapshot age + expr: time() - zfs_last_snapshot > 60 * 60 * 24 + for: 2m + labels: + severity: important + annotations: + summary: "{{ $labels.instance }} last ZFS snapshot age is >24 hours"