@cryptotaxi247 / infra-1 / commits / 1c46bbda

prometheus: alert on unhealthy zfs pool

Martin Weinelt committed Feb 20, 2026 at 00:02 UTC 1c46bbda28fe056dd4a4b9a0c95e5602fdf5f738
1 file changed +9
build/pluto/prometheus/exporters/zfs.nix
+9
@@ -26,6 +26,15 @@
26 {
27 name = "zfs";
28 rules = [
29 + {
30 + alert = "ZfsPoolHealth";
31 + expr = ''
32 + zfs_pool_health > 0
33 + '';
34 + for = "5m";
35 + labels.severity = "WARNING";
36 + annotations.summary = "ZFS pool {{ $labels.pool }} on {{ $labels.instance }} is unhealthy.";
37 + }
38 {
39 alert = "ZfsPoolFull";
40 expr = ''