diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-12-19 00:46:10 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-12-19 00:46:10 +0200 |
commit | acdde1365fefbf4edc88447818131070cfdcab78 (patch) | |
tree | ec82f8161d8e80aa2d4bc3128ef56880f1ffa43d /conf.d/health.d | |
parent | 56f716fc59208faa5176b14fa42a0124f8c6a164 (diff) |
added btrfs alarms and dashboard info
Diffstat (limited to 'conf.d/health.d')
-rw-r--r-- | conf.d/health.d/btrfs.conf | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/conf.d/health.d/btrfs.conf b/conf.d/health.d/btrfs.conf new file mode 100644 index 0000000000..e55721c9c1 --- /dev/null +++ b/conf.d/health.d/btrfs.conf @@ -0,0 +1,57 @@ + +template: btrfs_unallocated + on: btrfs.disk + os: * + hosts: * +families: * + calc: $unallocated * 100 / ($unallocated + $data_used + $data_free + $meta_used + $meta_free + $sys_used + $sys_free) + units: % + every: 10s + warn: $this < (($status >= $WARNING) ? (10) : (5)) + crit: $this < (($status == $CRITICAL) ? ( 5) : (1)) + delay: up 1m down 15m multiplier 1.5 max 1h + info: the percentage of unallocated BTRFS physical disk space + to: sysadmin + +template: btrfs_data + on: btrfs.data + os: * + hosts: * +families: * + calc: $free * 100 / ($used + $free) + units: % + every: 10s + warn: $this < (($status >= $WARNING) ? (10) : (5)) && $btrfs_unallocated < 1 + crit: $this < (($status == $CRITICAL) ? ( 5) : (1)) && $btrfs_unallocated < 1 + delay: up 1m down 15m multiplier 1.5 max 1h + info: the percentage of free BTRFS data space + to: sysadmin + +template: btrfs_metadata + on: btrfs.metadata + os: * + hosts: * +families: * + calc: $free * 100 / ($used + $free + $reserved) + units: % + every: 10s + warn: $this < (($status >= $WARNING) ? (10) : (5)) && $btrfs_unallocated < 1 + crit: $this < (($status == $CRITICAL) ? ( 5) : (1)) && $btrfs_unallocated < 1 + delay: up 1m down 15m multiplier 1.5 max 1h + info: the percentage of free BTRFS metadata space + to: sysadmin + +template: btrfs_system + on: btrfs.system + os: * + hosts: * +families: * + calc: $free * 100 / ($used + $free) + units: % + every: 10s + warn: $this < (($status >= $WARNING) ? (10) : (5)) && $btrfs_unallocated < 1 + crit: $this < (($status == $CRITICAL) ? ( 5) : (1)) && $btrfs_unallocated < 1 + delay: up 1m down 15m multiplier 1.5 max 1h + info: the percentage of free BTRFS system space + to: sysadmin + |