Projet

Général

Profil

Révision 99542938

ID99542938b14ccc390a8002c57da725e1d3ee39f8
Parent f5b816df
Enfant c0568802

Ajouté par dipohl il y a presque 9 ans

Reduce number of categories

Voir les différences:

plugins/mongodb/mongo_collection_
52 52
typeIndex['collcount']['yaxis'] = 'documents'
53 53
typeIndex['collcount']['base'] = '1000'
54 54
typeIndex['collcount']['scale'] = '--logarithmic -l1'
55
typeIndex['collcount']['category'] = 'MongoDB'
55
typeIndex['collcount']['category'] = 'db'
56 56

  
57 57
typeIndex['collsize'] = {}
58 58
typeIndex['collsize']['index'] = 'size'
......
60 60
typeIndex['collsize']['yaxis'] = 'Byte'
61 61
typeIndex['collsize']['base'] = '1024'
62 62
typeIndex['collsize']['scale'] = '--logarithmic -l1 --units=si'
63
typeIndex['collsize']['category'] = 'MongoDB'
63
typeIndex['collsize']['category'] = 'db'
64 64

  
65 65
typeIndex['avgsize'] = {}
66 66
typeIndex['avgsize']['index'] = 'avgObjSize'
......
68 68
typeIndex['avgsize']['yaxis'] = 'Byte'
69 69
typeIndex['avgsize']['base'] = '1024'
70 70
typeIndex['avgsize']['scale'] = '--logarithmic --units=si'
71
typeIndex['avgsize']['category'] = 'MongoDB'
71
typeIndex['avgsize']['category'] = 'db'
72 72

  
73 73
typeIndex['storage'] = {}
74 74
typeIndex['storage']['index'] = 'storageSize'
......
76 76
typeIndex['storage']['yaxis'] = 'Byte'
77 77
typeIndex['storage']['base'] = '1024'
78 78
typeIndex['storage']['scale'] = '--logarithmic -l1 --units=si'
79
typeIndex['storage']['category'] = 'MongoDB'
79
typeIndex['storage']['category'] = 'db'
80 80

  
81 81
typeIndex['indexsize'] = {}
82 82
typeIndex['indexsize']['index'] = 'totalIndexSize'
......
84 84
typeIndex['indexsize']['yaxis'] = 'Byte'
85 85
typeIndex['indexsize']['base'] = '1024'
86 86
typeIndex['indexsize']['scale'] = '--logarithmic -l 1 --units=si'
87
typeIndex['indexsize']['category'] = 'MongoDB'
87
typeIndex['indexsize']['category'] = 'db'
88 88

  
89 89

  
90 90
def getCollstats(graphtype):
......
141 141
            print "graph_title MongoDB " + typeIndex[graphtype]['title'] + " for database " + d
142 142
            print "graph_args --base " + typeIndex[graphtype]['base'] + " " + typeIndex[graphtype]['scale']
143 143
            print "graph_vlabel " + typeIndex[graphtype]['yaxis']
144
            print "graph_category MongoDB"
144
            print "graph_category db"
145 145
        print "%s_%s.label %s" % (graphtype, k, k)
146 146
        print "%s_%s.min 0" % (graphtype, k)
147 147
        print "%s_%s.draw LINE1" % (graphtype, k)

Formats disponibles : Unified diff