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