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