fix: change health_ok to status

This commit is contained in:
2026-05-08 16:57:45 -04:00
parent 967e05ed74
commit 217bba1b76
5 changed files with 29 additions and 22 deletions
+6 -6
View File
@@ -268,9 +268,9 @@ The default threshold is equivalent to:
zfs_monitor:
pools:
'*':
health_ok:
status:
critical: 1
operator: "<"
operator: ">"
hysteresis: 0.0
display: "ZFS pool {pool_name} is {health}"
```
@@ -285,7 +285,7 @@ zfs_monitor:
pools:
# Suppress health alerts for a scratch pool (not mission-critical)
scratch:
health_ok:
status:
enabled: false
# Capacity threshold for a specific pool
@@ -297,12 +297,12 @@ zfs_monitor:
hysteresis: 0.05
```
**Alert state paths** follow the pattern `zfs_monitor.<pool_name>.health_ok`,
**Alert state paths** follow the pattern `zfs_monitor.<pool_name>.status`,
so acknowledgements and silences target individual pools:
```
zfs_monitor.tank.health_ok
zfs_monitor.backup.health_ok
zfs_monitor.tank.status
zfs_monitor.backup.status
```
### Network Monitor