| 1 | |
| 2 | alarm: zfs_memory_throttle |
| 3 | on: zfs.memory_ops |
| 4 | class: Utilization |
| 5 | type: System |
| 6 | component: File system |
| 7 | lookup: sum -10m unaligned absolute of throttled |
| 8 | units: events |
| 9 | every: 1m |
| 10 | warn: $this > 0 |
| 11 | delay: down 1h multiplier 1.5 max 2h |
| 12 | summary: ZFS ARC growth throttling |
| 13 | info: number of times ZFS had to limit the ARC growth in the last 10 minutes |
| 14 | to: silent |
| 15 | |
| 16 | # ZFS pool state |
| 17 | |
| 18 | template: zfs_pool_state_warn |
| 19 | on: zfspool.state |
| 20 | class: Errors |
| 21 | type: System |
| 22 | component: File system |
| 23 | calc: $degraded |
| 24 | units: boolean |
| 25 | every: 10s |
| 26 | warn: $this > 0 |
| 27 | delay: down 1m multiplier 1.5 max 1h |
| 28 | summary: ZFS pool ${label:pool} state |
| 29 | info: ZFS pool ${label:pool} state is degraded |
| 30 | to: sysadmin |
| 31 | |
| 32 | template: zfs_pool_state_crit |
| 33 | on: zfspool.state |
| 34 | class: Errors |
| 35 | type: System |
| 36 | component: File system |
| 37 | calc: $faulted + $unavail |
| 38 | units: boolean |
| 39 | every: 10s |
| 40 | crit: $this > 0 |
| 41 | delay: down 1m multiplier 1.5 max 1h |
| 42 | summary: Critical ZFS pool ${label:pool} state |
| 43 | info: ZFS pool ${label:pool} state is faulted or unavail |
| 44 | to: sysadmin |
| 45 | |
| 46 | |
| 47 | ## go.d/zfspool |
| 48 | |
| 49 | template: zfs_pool_space_utilization |
| 50 | on: zfspool.pool_space_utilization |
| 51 | class: Utilization |
| 52 | type: System |
| 53 | component: File system |
| 54 | calc: $utilization |
| 55 | units: % |
| 56 | every: 1m |
| 57 | warn: $this > (($status >= $WARNING ) ? (85) : (90)) |
| 58 | crit: $this > (($status >= $WARNING ) ? (90) : (98)) |
| 59 | delay: down 1m multiplier 1.5 max 1h |
| 60 | summary: ZFS pool ${label:pool} space utilization |
| 61 | info: ZFS pool ${label:pool} is nearing capacity. Current space usage is above the threshold. |
| 62 | to: sysadmin |
| 63 | |
| 64 | template: zfs_pool_health_state_warn |
| 65 | on: zfspool.pool_health_state |
| 66 | class: Errors |
| 67 | type: System |
| 68 | component: File system |
| 69 | calc: $degraded |
| 70 | units: status |
| 71 | every: 10s |
| 72 | warn: $this > 0 |
| 73 | delay: down 1m multiplier 1.5 max 1h |
| 74 | summary: ZFS pool ${label:pool} state |
| 75 | info: ZFS pool ${label:pool} state is degraded |
| 76 | to: sysadmin |
| 77 | |
| 78 | template: zfs_pool_health_state_crit |
| 79 | on: zfspool.pool_health_state |
| 80 | class: Errors |
| 81 | type: System |
| 82 | component: File system |
| 83 | calc: $faulted + $unavail |
| 84 | units: status |
| 85 | every: 10s |
| 86 | crit: $this > 0 |
| 87 | delay: down 1m multiplier 1.5 max 1h |
| 88 | summary: Critical ZFS pool ${label:pool} state |
| 89 | info: ZFS pool ${label:pool} state is faulted or unavail |
| 90 | to: sysadmin |
| 91 | |
| 92 | |
| 93 | template: zfs_vdev_health_state |
| 94 | on: zfspool.vdev_health_state |
| 95 | class: Errors |
| 96 | type: System |
| 97 | component: File system |
| 98 | calc: $degraded + $faulted |
| 99 | units: status |
| 100 | every: 10s |
| 101 | warn: $this > 0 |
| 102 | delay: down 1m multiplier 1.5 max 1h |
| 103 | summary: ZFS vdev ${label:vdev} pool ${label:pool} state |
| 104 | info: ZFS vdev ${label:vdev} state is faulted or degraded |
| 105 | to: sysadmin |