Closed Eldiabolo21 closed 1 month ago
The zfs_pool_health
metric has a specific meaning that maps to the status as reported by ZFS, per the HELP text on the metric:
# HELP zfs_pool_health Health status code for the pool [0: ONLINE, 1: DEGRADED, 2: FAULTED, 3: OFFLINE, 4: UNAVAIL, 5: REMOVED, 6: SUSPENDED].
It would be nice to publish detailed per-vdev status, but unfortunately zpool status
is one of the few commands that doesn't provide a machine-parseable output flag, which would make it somewhat brittle to parse.
Duplicate of #5
Hello!
First of all, thank you for your work and time, its really the best (and best maintained) zfs exporter out there!
One thing I noticed is that, the exporter doesnt pick up health warning when an unrecoverable error occured. For example:
Prometheus metrics:
Thats not exactly a problem but still something that should be caught and possible notified. Any chance to set the health value to
1
as well in these cases?Cheers!
Edit: exporter version 2.3.1