@cryptotaxi247 / netdata-1 / commits / c64cdf82f

calculate disk_fill_rate in GB/min

Costa Tsaousis (ktsaou) committed Aug 30, 2016 at 00:07 UTC c64cdf82f3d7f6cc5738e64e73d07038dcf6f00b
1 file changed +3 -3
conf.d/health.d/disks.conf
+3 -3
@@ -29,9 +29,9 @@ template: disk_full_percent
29 template: disk_fill_rate
30 on: disk.space
31 lookup: max -1s at -30m unaligned of avail
32 - calc: ($this - $avail) / ($now - $after)
32 + calc: ($this - $avail) / (($now - $after) / 60)
33 every: 15s
34 - units: MB/s
34 + units: GB/min
35 info: average rate the disk fills up (positive), or frees up (negative) space, for the last 30 minutes
36
37
@@ -41,7 +41,7 @@ template: disk_fill_rate
41
42 template: disk_full_after_hours
43 on: disk.space
44 - calc: $avail / $disk_fill_rate / 3600
44 + calc: $avail / ($disk_fill_rate * 60)
45 every: 10s
46 warn: $this > 0 and $this < 48
47 crit: $this > 0 and $this < 24