From c64cdf82f3d7f6cc5738e64e73d07038dcf6f00b Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Tue, 30 Aug 2016 00:07:00 +0300 Subject: [PATCH] calculate disk_fill_rate in GB/min --- conf.d/health.d/disks.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf.d/health.d/disks.conf b/conf.d/health.d/disks.conf index c38f1a0a..7053aa5a 100644 --- a/conf.d/health.d/disks.conf +++ b/conf.d/health.d/disks.conf @@ -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 -- 2.39.2