Skip to content

Commit

Permalink
[mongo] add tcmalloc metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben McCann committed Sep 14, 2015
1 parent 6b2e6f9 commit 32619e6
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions checks.d/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ class MongoDb(AgentCheck):
SOURCE_TYPE_NAME = 'mongodb'

GAUGES = [
# L21-23,25,68-74 Deprecated as if V 3.0.0
# L21-24 removed as of V 3.0.0
"indexCounters.btree.missRatio",
"indexCounters.missRatio",
"globalLock.ratio",
"globalLock.totalTime",
"globalLock.lockTime",
"globalLock.totalTime",
"globalLock.currentQueue.total",
"globalLock.currentQueue.readers",
"globalLock.currentQueue.writers",
Expand All @@ -41,7 +41,6 @@ class MongoDb(AgentCheck):
"cursors.timedOut",
"uptime",


"stats.collections",
"stats.objects",
"stats.avgObjSize",
Expand All @@ -53,18 +52,28 @@ class MongoDb(AgentCheck):
"stats.fileSize",
"stats.nsSizeMB",



"replSet.health",
"replSet.state",
"replSet.replicationLag",

"metrics.repl.buffer.count",
"metrics.repl.buffer.maxSizeBytes",
"metrics.repl.buffer.sizeBytes",

"tcmalloc.generic.current_allocated_bytes",
"tcmalloc.generic.heap_size",
"tcmalloc.tcmalloc.pageheap_free_bytes",
"tcmalloc.tcmalloc.pageheap_unmapped_bytes",
"tcmalloc.tcmalloc.max_total_thread_cache_bytes",
"tcmalloc.tcmalloc.current_total_thread_cache_bytes",
"tcmalloc.tcmalloc.central_cache_free_bytes",
"tcmalloc.tcmalloc.transfer_cache_free_bytes",
"tcmalloc.tcmalloc.thread_cache_free_bytes",
"tcmalloc.tcmalloc.aggressive_memory_decommit",
]

RATES = [
# indexCounters removed as of V 3.0.0
"indexCounters.btree.accesses",
"indexCounters.btree.hits",
"indexCounters.btree.misses",
Expand Down

0 comments on commit 32619e6

Please sign in to comment.