mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Reduce number of categories
This commit is contained in:
parent
f5b816df9e
commit
99542938b1
20 changed files with 30 additions and 30 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue