out of space estimations use min -5m insteam of max -5m, to avoid short spikes being used as an alert
Costa Tsaousis (ktsaou) committed
Sep 7, 2016 at 11:46 UTC
8e6cf62d7db7f694f14a42273c9334b488cb9605
2 files changed
+4
-4
conf.d/health.d/disks.conf
+2
-2
@@ -29,7 +29,7 @@ template: disk_space_usage
29
30
template: disk_fill_rate
31
on: disk.space
32
- lookup: max -5m at -30m unaligned of avail
32
+ lookup: min -5m at -30m unaligned of avail
33
calc: ($this - $avail) / (($now - $after) / 60)
34
every: 1m
35
units: GB/min
@@ -40,7 +40,7 @@ template: disk_fill_rate
40
# if the disk continues to fill
41
# in this rate
42
43
-template: out_of_disk_space_in
43
+template: out_of_disk_space
44
on: disk.space
45
calc: $avail / ($disk_fill_rate * 60)
46
every: 10s
conf.d/health.d/memcached.conf
+2
-2
@@ -29,7 +29,7 @@ template: memcached_cache_memory_usage
29
30
template: memcached_cache_fill_rate
31
on: memcached.cache
32
- lookup: max -5m at -30m unaligned of available
32
+ lookup: min -5m at -30m unaligned of available
33
calc: ($this - $available) / (($now - $after) / 60)
34
every: 1m
35
units: KB/min
@@ -38,7 +38,7 @@ template: memcached_cache_fill_rate
38
39
# find the hours remaining until memcached cache is full
40
41
-template: memcached_out_of_cache_in
41
+template: memcached_out_of_cache_space
42
on: memcached.cache
43
calc: $available / ($memcached_cache_fill_rate * 60)
44
every: 10s