]> arthur.barton.de Git - netdata.git/blob - conf.d/health.d/disks.conf
fixed typo in health.d/disks.conf
[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 10 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 -10m unaligned of avail
30     calc: ($this - $avail) / (10 * 60)
31    every: 30s
32
33
34 # calculate the hours remaininig
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 2 minutes
52
53 template: 2min_disk_utilization
54       on: disk.util
55   lookup: average -2m every 1m unaligned
56    green: 80
57      red: 95
58     warn: $this > $green
59     crit: $this > $red
60
61
62 # raise an alarm if the disk backlog
63 # is above 1000ms (1s) per second
64 # for 2 minutes
65 # (i.e. the disk cannot catch up)
66
67 template: 2min_disk_backlog
68       on: disk.backlog
69   lookup: average -2m every 1m unaligned
70    green: 1000
71      red: 2000
72     warn: $this > $green
73     crit: $this > $red