From e39c339c5108dca548f67db037fdc04cea0b4b0d Mon Sep 17 00:00:00 2001 From: samber Date: Sat, 23 Jul 2022 23:57:10 +0000 Subject: [PATCH] Publish --- dist/rules/zfs/node-exporter.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dist/rules/zfs/node-exporter.yml b/dist/rules/zfs/node-exporter.yml index e3b4ac2..e4c9cd6 100644 --- a/dist/rules/zfs/node-exporter.yml +++ b/dist/rules/zfs/node-exporter.yml @@ -3,3 +3,12 @@ groups: - name: NodeExporter rules: + + - alert: ZfsOfflinePool + expr: 'node_zfs_zpool_state{state!="online"} > 0' + for: 1m + labels: + severity: critical + annotations: + summary: ZFS offline pool (instance {{ $labels.instance }}) + description: "A ZFS zpool is in a unexpected state: {{ $labels.state }}.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"