Permalink
Browse files

Merge pull request #82 from graphaelli/master

Memcached python module updates
  • Loading branch information...
jbuchbinder committed Feb 5, 2013
2 parents 213e9c1 + b133167 commit ab854f8cfbf825087265fb2c6e8fc09a8ce4d865
Showing with 40 additions and 1 deletion.
  1. +40 −1 gmond/python_modules/memcached/memcached.py
@@ -52,7 +52,10 @@ def shutdown(self):
self.shuttingdown = True
if not self.running:
return
- self.join()
+ try:
+ self.join()
+ except:
+ pass
def run(self):
self.running = True
@@ -208,6 +211,30 @@ def metric_init(params):
"slope" : "both",
"description": "Number of open connections",
}))
+ descriptors.append(create_desc(Desc_Skel, {
+ "name" : mp+"_decr_hits",
+ "units" : "items",
+ "slope" : "positive",
+ "description": "Number of keys that have been decremented and found present ",
+ }))
+ descriptors.append(create_desc(Desc_Skel, {
+ "name" : mp+"_decr_misses",
+ "units" : "items",
+ "slope" : "positive",
+ "description": "Number of items that have been decremented and not found",
+ }))
+ descriptors.append(create_desc(Desc_Skel, {
+ "name" : mp+"_delete_hits",
+ "units" : "items",
+ "slope" : "positive",
+ "description": "Number of keys that have been deleted and found present ",
+ }))
+ descriptors.append(create_desc(Desc_Skel, {
+ "name" : mp+"_delete_misses",
+ "units" : "items",
+ "slope" : "positive",
+ "description": "Number of items that have been deleted and not found",
+ }))
descriptors.append(create_desc(Desc_Skel, {
"name" : mp+"_evictions",
"units" : "items",
@@ -238,6 +265,18 @@ def metric_init(params):
"slope" : "both",
"description": "Misses per second",
}))
+ descriptors.append(create_desc(Desc_Skel, {
+ "name" : mp+"_incr_hits",
+ "units" : "items",
+ "slope" : "positive",
+ "description": "Number of keys that have been incremented and found present ",
+ }))
+ descriptors.append(create_desc(Desc_Skel, {
+ "name" : mp+"_incr_misses",
+ "units" : "items",
+ "slope" : "positive",
+ "description": "Number of items that have been incremented and not found",
+ }))
descriptors.append(create_desc(Desc_Skel, {
"name" : mp+"_cmd_get_rate",
"units" : "commands",

0 comments on commit ab854f8

Please sign in to comment.