]> arthur.barton.de Git - netdata.git/commitdiff
calculate disk_fill_rate in GB/min
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 29 Aug 2016 21:07:00 +0000 (00:07 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 29 Aug 2016 21:07:00 +0000 (00:07 +0300)
conf.d/health.d/disks.conf

index c38f1a0a03588fc10f142b9c3ac89a70f3ae9647..7053aa5a4df1952c814765829e304f0100a1b5e9 100644 (file)
@@ -29,9 +29,9 @@ template: disk_full_percent
 template: disk_fill_rate
       on: disk.space
   lookup: max -1s at -30m unaligned of avail
-    calc: ($this - $avail) / ($now - $after)
+    calc: ($this - $avail) / (($now - $after) / 60)
    every: 15s
-   units: MB/s
+   units: GB/min
     info: average rate the disk fills up (positive), or frees up (negative) space, for the last 30 minutes
 
 
@@ -41,7 +41,7 @@ template: disk_fill_rate
 
 template: disk_full_after_hours
       on: disk.space
-    calc: $avail / $disk_fill_rate / 3600
+    calc: $avail / ($disk_fill_rate * 60)
    every: 10s
     warn: $this > 0 and $this < 48
     crit: $this > 0 and $this < 24