]> arthur.barton.de Git - netdata.git/blob - conf.d/health.d/memcached.conf
memcached alarms #810
[netdata.git] / conf.d / health.d / memcached.conf
1
2 # make sure memcached is running
3
4 template: memcached_last_collected_secs
5       on: memcached.connections
6     calc: $now - $last_collected_t
7    every: 10s
8     warn: $this > ( 5 * $update_every)
9     crit: $this > (10 * $update_every)
10
11
12
13 # detect if memcached cache is full
14
15 template: cache_full_pcent
16       on: memcached.cache
17     calc: $used * 100 / ($used + $available)
18    every: 10s
19     warn: $this > 80
20     crit: $this > 90
21
22
23
24 # find the rate memcached cache is filling
25
26 template: cache_fill_rate
27       on: memcached.cache
28   lookup: max -1s at -30m unaligned of available
29     calc: ($this - $available) / ($now - $after)
30    every: 15s
31
32
33
34 # find the hours remaining until memcached cache is full
35
36 template: cache_full_after_hours
37       on: memcached.cache
38     calc: $available / $memcached_cache_fill_rate / 3600
39    every: 10s
40     warn: $this > 0 and $this < 48
41     crit: $this > 0 and $this < 24