master
conf 50 lines 1.6 KB
Raw
1
2 # detect if memcached cache is full
3
4 template: memcached_cache_memory_usage
5 on: memcached.cache
6 class: Utilization
7 type: KV Storage
8 component: Memcached
9 calc: $used * 100 / ($used + $available)
10 units: %
11 every: 10s
12 warn: $this > (($status >= $WARNING) ? (70) : (80))
13 crit: $this > (($status == $CRITICAL) ? (80) : (90))
14 delay: up 0 down 15m multiplier 1.5 max 1h
15 summary: Memcached memory utilization
16 info: Cache memory utilization
17 to: dba
18
19
20 # find the rate memcached cache is filling
21
22 template: memcached_cache_fill_rate
23 on: memcached.cache
24 class: Utilization
25 type: KV Storage
26 component: Memcached
27 lookup: min -10m at -50m unaligned of available
28 calc: ($this - $available) / (($now - $after) / 3600)
29 units: KB/hour
30 every: 1m
31 info: Average rate the cache fills up (positive), or frees up (negative) space over the last hour
32
33
34 # find the hours remaining until memcached cache is full
35
36 template: memcached_out_of_cache_space_time
37 on: memcached.cache
38 class: Utilization
39 type: KV Storage
40 component: Memcached
41 calc: ($memcached_cache_fill_rate > 0) ? ($available / $memcached_cache_fill_rate) : (inf)
42 units: hours
43 every: 10s
44 warn: $this > 0 and $this < (($status >= $WARNING) ? (48) : (8))
45 crit: $this > 0 and $this < (($status == $CRITICAL) ? (24) : (2))
46 delay: down 15m multiplier 1.5 max 1h
47 summary: Memcached estimation of lack of cache space
48 info: Estimated time the cache will run out of space \
49 if the system continues to add data at the same rate as the past hour
50 to: dba