Skip to content

Commit a2c6aa7

Browse files
committed
Merge pull request ganglia#117 from maplebed/memcache.add_eviction_rate
adding eviction rate in addition to absolute number of evictions.
2 parents 4ac942e + 007c26f commit a2c6aa7

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

memcached/conf.d/memcached.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ collection_group {
8585
title = "Number of valid items removed from cache to free memory for new items"
8686
value_threshold = 0
8787
}
88+
metric {
89+
name = "mc_evictions_rate"
90+
title = "Rate of valid items removed from cache to free memory for new items"
91+
value_threshold = 0
92+
}
8893
metric {
8994
name = "mc_get_hits"
9095
title = "Number of keys that have been requested and found present "

memcached/python_modules/memcached.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ def metric_init(params):
214214
"slope" : "both",
215215
"description": "Number of valid items removed from cache to free memory for new items",
216216
}))
217+
descriptors.append(create_desc(Desc_Skel, {
218+
"name" : mp+"_evictions_rate",
219+
"units" : "items",
220+
"slope" : "both",
221+
"description": "Evictions per second",
222+
}))
217223
descriptors.append(create_desc(Desc_Skel, {
218224
"name" : mp+"_get_hits",
219225
"units" : "items",

0 commit comments

Comments
 (0)