]> arthur.barton.de Git - netdata.git/blob - conf.d/health.d/memcached.conf
Merge remote-tracking branch 'lucadev/master'
[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.cache
6     calc: $now - $last_collected_t
7    every: 10s
8     warn: $this > ( 5 * $update_every)
9     crit: $this > (60 * $update_every)
10    units: seconds ago
11     info: number of seconds since the last successful data collection
12       to: dba
13
14
15 # detect if memcached cache is full
16
17 template: cache_full_pcent
18       on: memcached.cache
19     calc: $used * 100 / ($used + $available)
20    every: 10s
21     warn: $this > 80
22     crit: $this > 90
23    units: %
24     info: current cache memory usage
25       to: dba
26
27
28 # find the rate memcached cache is filling
29
30 template: cache_fill_rate
31       on: memcached.cache
32   lookup: max -1s at -30m unaligned of available
33     calc: ($this - $available) / ($now - $after)
34    every: 15s
35    units: KB/s
36     info: average rate the cache fills up (positive), or frees up (negative) space, for the last 30 minutes
37
38
39 # find the hours remaining until memcached cache is full
40
41 template: cache_full_after_hours
42       on: memcached.cache
43     calc: $available / $cache_fill_rate / 3600
44    every: 10s
45     warn: $this > 0 and $this < 48
46     crit: $this > 0 and $this < 24
47    units: hours
48     info: estimated time the cache will run out of space, if the system continues to add data with the rate of the last 30 minutes
49       to: dba