1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 10:39:53 +00:00

Reduce number of categories

This commit is contained in:
dipohl 2017-02-23 20:45:01 +01:00
parent f5b816df9e
commit 99542938b1
20 changed files with 30 additions and 30 deletions

View file

@ -31,7 +31,7 @@ def doConfig():
print "graph_title MongoDB btree stats"
print "graph_args --base 1000 -l 0"
print "graph_vlabel mb ${graph_period}"
print "graph_category MongoDB"
print "graph_category db"
for k in get():
print k + ".label " + k

View file

@ -52,7 +52,7 @@ typeIndex['collcount']['title'] = 'per collection document count'
typeIndex['collcount']['yaxis'] = 'documents'
typeIndex['collcount']['base'] = '1000'
typeIndex['collcount']['scale'] = '--logarithmic -l1'
typeIndex['collcount']['category'] = 'MongoDB'
typeIndex['collcount']['category'] = 'db'
typeIndex['collsize'] = {}
typeIndex['collsize']['index'] = 'size'
@ -60,7 +60,7 @@ typeIndex['collsize']['title'] = 'per collection data size'
typeIndex['collsize']['yaxis'] = 'Byte'
typeIndex['collsize']['base'] = '1024'
typeIndex['collsize']['scale'] = '--logarithmic -l1 --units=si'
typeIndex['collsize']['category'] = 'MongoDB'
typeIndex['collsize']['category'] = 'db'
typeIndex['avgsize'] = {}
typeIndex['avgsize']['index'] = 'avgObjSize'
@ -68,7 +68,7 @@ typeIndex['avgsize']['title'] = 'average object size'
typeIndex['avgsize']['yaxis'] = 'Byte'
typeIndex['avgsize']['base'] = '1024'
typeIndex['avgsize']['scale'] = '--logarithmic --units=si'
typeIndex['avgsize']['category'] = 'MongoDB'
typeIndex['avgsize']['category'] = 'db'
typeIndex['storage'] = {}
typeIndex['storage']['index'] = 'storageSize'
@ -76,7 +76,7 @@ typeIndex['storage']['title'] = 'per collection storage size'
typeIndex['storage']['yaxis'] = 'Byte'
typeIndex['storage']['base'] = '1024'
typeIndex['storage']['scale'] = '--logarithmic -l1 --units=si'
typeIndex['storage']['category'] = 'MongoDB'
typeIndex['storage']['category'] = 'db'
typeIndex['indexsize'] = {}
typeIndex['indexsize']['index'] = 'totalIndexSize'
@ -84,7 +84,7 @@ typeIndex['indexsize']['title'] = 'per collection index size'
typeIndex['indexsize']['yaxis'] = 'Byte'
typeIndex['indexsize']['base'] = '1024'
typeIndex['indexsize']['scale'] = '--logarithmic -l 1 --units=si'
typeIndex['indexsize']['category'] = 'MongoDB'
typeIndex['indexsize']['category'] = 'db'
def getCollstats(graphtype):
@ -141,7 +141,7 @@ def doConfig(base,graphtype):
print "graph_title MongoDB " + typeIndex[graphtype]['title'] + " for database " + d
print "graph_args --base " + typeIndex[graphtype]['base'] + " " + typeIndex[graphtype]['scale']
print "graph_vlabel " + typeIndex[graphtype]['yaxis']
print "graph_category MongoDB"
print "graph_category db"
print "%s_%s.label %s" % (graphtype, k, k)
print "%s_%s.min 0" % (graphtype, k)
print "%s_%s.draw LINE1" % (graphtype, k)

View file

@ -26,7 +26,7 @@ def doConfig():
print "graph_title MongoDB current connections"
print "graph_args --base 1000 -l 0"
print "graph_vlabel connections"
print "graph_category MongoDB"
print "graph_category db"
print name + ".label " + name

View file

@ -49,7 +49,7 @@ def config():
print """graph_title MongoDB replication lag
graph_args --base 1000
graph_vlabel Replication lag (seconds)
graph_category MongoDB
graph_category db
"""
for member in _get_members():

View file

@ -33,7 +33,7 @@ def doConfig():
print "graph_title MongoDB write lock percentage"
print "graph_args --base 1000 -l 0 "
print "graph_vlabel percentage"
print "graph_category MongoDB"
print "graph_category db"
print name + ".label " + name

View file

@ -27,7 +27,7 @@ def doConfig():
print "graph_title MongoDB memory usage"
print "graph_args --base 1024 -l 0 --vertical-label Bytes"
print "graph_category MongoDB"
print "graph_category db"
for k in getServerStatus()["mem"]:
if ok( k ):

View file

@ -26,7 +26,7 @@ def doConfig():
print "graph_title MongoDB ops"
print "graph_args --base 1000 -l 0"
print "graph_vlabel ops / ${graph_period}"
print "graph_category MongoDB"
print "graph_category db"
print "graph_total total"
for k in getServerStatus()["opcounters"]: