summaryrefslogtreecommitdiffstats
path: root/src/health
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2024-04-10 20:18:05 +0300
committerGitHub <noreply@github.com>2024-04-10 20:18:05 +0300
commit7b4b258879ba4a83817981033dd6342a70cf80af (patch)
tree9c028b0aac49b5e440c8e7ec66de91d162dd5ebb /src/health
parent30d5acdaef786228112ac1b9d9673b1cec6b887b (diff)
add collector to monitor ZFS pools space usage (#17367)
Diffstat (limited to 'src/health')
-rw-r--r--src/health/health.d/zfs.conf46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/health/health.d/zfs.conf b/src/health/health.d/zfs.conf
index d2a561000b..9c1f0018bd 100644
--- a/src/health/health.d/zfs.conf
+++ b/src/health/health.d/zfs.conf
@@ -42,3 +42,49 @@ component: File system
summary: Critical ZFS pool ${label:pool} state
info: ZFS pool ${label:pool} state is faulted or unavail
to: sysadmin
+
+
+## go.d/zfspool
+
+ template: zfs_pool_space_utilization
+ on: zfspool.pool_space_utilization
+ class: Utilization
+ type: System
+component: File system
+ calc: $utilization
+ units: %
+ every: 1m
+ warn: $this > (($status >= $WARNING ) ? (85) : (90))
+ crit: $this > (($status >= $WARNING ) ? (90) : (98))
+ delay: down 1m multiplier 1.5 max 1h
+ summary: ZFS pool ${label:pool} space utilization
+ info: ZFS pool ${label:pool} is nearing capacity. Current space usage is above the threshold.
+ to: sysadmin
+
+ template: zfs_pool_health_state_warn
+ on: zfspool.pool_health_state
+ class: Errors
+ type: System
+component: File system
+ calc: $degraded
+ units: boolean
+ every: 10s
+ warn: $this > 0
+ delay: down 1m multiplier 1.5 max 1h
+ summary: ZFS pool ${label:pool} state
+ info: ZFS pool ${label:pool} state is degraded
+ to: sysadmin
+
+ template: zfs_pool_health_state_crit
+ on: zfspool.pool_health_state
+ class: Errors
+ type: System
+component: File system
+ calc: $faulted + $unavail
+ units: boolean
+ every: 10s
+ crit: $this > 0
+ delay: down 1m multiplier 1.5 max 1h
+ summary: Critical ZFS pool ${label:pool} state
+ info: ZFS pool ${label:pool} state is faulted or unavail
+ to: sysadmin