Skip to content

Loading…

Memcached python module updates #82

Merged
merged 3 commits into from

2 participants

@graphaelli

No description provided.

@jbuchbinder jbuchbinder merged commit ab854f8 into ganglia:master

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 5, 2013
  1. @graphaelli

    add delete metrics

    graphaelli committed
  2. @graphaelli

    ignore shutdown errors

    graphaelli committed
  3. @graphaelli

    add decr and incr metrics

    graphaelli committed
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",
Something went wrong with that request. Please try again.