]> arthur.barton.de Git - netdata.git/blob - conf.d/health.d/disks.conf
allow health configuration to be expressed in a way that will allow us to have additi...
[netdata.git] / conf.d / health.d / disks.conf
1 # -----------------------------------------------------------------------------
2 # low disk space
3
4 # checking the latest collected values
5 # raise an alarm if the disk is low on
6 # available disk space
7
8 template: low_disk_space
9       on: disk.space
10    every: 1m
11     warn: $avail * 100 / ($avail + $used) > 80
12     crit: $avail * 100 / ($avail + $used) > 90
13
14 # -----------------------------------------------------------------------------
15 # disk fill rate
16
17 # calculate the rate the disk fills
18 # use as base, the available space change
19 # during the last minute
20
21 template: disk_fill_rate_1m
22       on: disk.space
23   lookup: max -1s at -1m unaligned
24     calc: ($this - $avail) / (1 * 60)
25    every: 1m
26     warn: $this * 2 * 86400 > $avail
27     crit: $this * 1 * 86400 > $avail
28
29 # calculate the rate the disk fills
30 # use as base, the available space change
31 # during the last hour
32 template: disk_fill_rate_59m
33       on: disk.space
34   lookup: max -1s at -59m unaligned
35    every: 1m
36     calc: ($this - $avail) / (59 * 60)
37     warn: $this * 2 * 86400 > $avail
38     crit: $this * 1 * 86400 > $avail
39
40 # -----------------------------------------------------------------------------
41 # disk congestion
42
43 # raise an alarm if the disk is congested
44 # by calculating the average disk utilization
45 # for the last minute
46
47 template: disk_congested
48       on: disk.util
49   lookup: average -1m every 1m unaligned
50    green: 70
51      red: 95
52     warn: $this > $green
53     crit: $this > $red
54
55 # raise an alarm if the disk backlog
56 # is above 1000ms (1s) per second
57 # for 1 minute
58 # (i.e. the disk cannot catch up)
59
60 template: disk_not_catching_up
61       on: disk.backlog
62   lookup: average -1m every 1m unaligned
63    green: 500
64      red: 1000
65     warn: $this > $green
66     crit: $this > $red
67