Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #82 from graphaelli/master

Memcached python module updates
  • Loading branch information...
commit ab854f8cfbf825087265fb2c6e8fc09a8ce4d865 2 parents 213e9c1 + b133167
@jbuchbinder jbuchbinder authored
Showing with 40 additions and 1 deletion.
  1. +40 −1 gmond/python_modules/memcached/memcached.py
View
41 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
@@ -209,6 +212,30 @@ def metric_init(params):
"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",
"slope" : "both",
@@ -239,6 +266,18 @@ def metric_init(params):
"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",
"slope" : "both",
Please sign in to comment.
Something went wrong with that request. Please try again.