]> arthur.barton.de Git - netdata.git/blob - conf.d/health.d/disks.conf
updated disk alarms
[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) < 95
13
14
15 # -----------------------------------------------------------------------------
16 # disk fill rate
17
18 # calculate the rate the disk fills
19 # use as base, the available space change
20 # during the last 10 minutes
21
22 # this is just a calculation - it has no alarm
23 # we will use it in the next template to find
24 # the hours remaining
25
26 template: disk_fill_rate
27       on: disk.space
28   lookup: max -1s at -10m unaligned of avail
29     calc: ($this - $avail) / (10 * 60)
30    every: 30s
31
32
33 # calculate the hours remaininig
34 # if the disk continues to fill
35 # in this rate
36
37 template: disk_will_fill_in_hours
38       on: disk.space
39     calc: $avail / $disk_fill_rate / 3600
40    every: 10s
41     warn: $this > 0 and $this < 48
42     crit: $this > 0 and $this < 24
43
44
45 # -----------------------------------------------------------------------------
46 # disk congestion
47
48 # raise an alarm if the disk is congested
49 # by calculating the average disk utilization
50 # for the last minute
51
52 template: disk_congested
53       on: disk.util
54   lookup: average -1m every 1m unaligned
55    green: 70
56      red: 95
57     warn: $this > $green
58     crit: $this > $red
59
60 # raise an alarm if the disk backlog
61 # is above 1000ms (1s) per second
62 # for 1 minute
63 # (i.e. the disk cannot catch up)
64
65 template: disk_not_catching_up
66       on: disk.backlog
67   lookup: average -1m every 1m unaligned
68    green: 1000
69      red: 2000
70     warn: $this > $green
71     crit: $this > $red
72