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/cyrus/cyrus-imapd
94 94
	echo 'graph_args --base 1000 -l 0'
95 95
	echo 'graph_vlabel connections'
96 96
	echo 'graph_scale no'
97
	echo 'graph_category cyrus'
97
	echo 'graph_category mail'
98 98
	echo 'graph_info Current connections to the imap server. <a href="http://trac.bawue.org/">bawue.net e.V. Trac repository</a>.'
99 99
	echo 'graph_order connections authenticated_users unique_users'
100 100
	echo 'connections.label Connections'
plugins/mongodb/mongo_btree
31 31
    print "graph_title MongoDB btree stats"
32 32
    print "graph_args --base 1000 -l 0"
33 33
    print "graph_vlabel mb ${graph_period}"
34
    print "graph_category MongoDB"
34
    print "graph_category db"
35 35

  
36 36
    for k in get():
37 37
        print k + ".label " + k
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)
plugins/mongodb/mongo_conn
26 26
    print "graph_title MongoDB current connections"
27 27
    print "graph_args --base 1000 -l 0"
28 28
    print "graph_vlabel connections"
29
    print "graph_category MongoDB"
29
    print "graph_category db"
30 30

  
31 31
    print name + ".label " + name
32 32

  
plugins/mongodb/mongo_lag
49 49
    print """graph_title MongoDB replication lag
50 50
graph_args --base 1000
51 51
graph_vlabel Replication lag (seconds)
52
graph_category MongoDB
52
graph_category db
53 53
"""
54 54
   
55 55
    for member in _get_members():
plugins/mongodb/mongo_lock
33 33
    print "graph_title MongoDB write lock percentage"
34 34
    print "graph_args --base 1000 -l 0 "
35 35
    print "graph_vlabel percentage"
36
    print "graph_category MongoDB"
36
    print "graph_category db"
37 37

  
38 38
    print name + ".label " + name
39 39

  
plugins/mongodb/mongo_mem
27 27

  
28 28
    print "graph_title MongoDB memory usage"
29 29
    print "graph_args --base 1024 -l 0 --vertical-label Bytes"
30
    print "graph_category MongoDB"
30
    print "graph_category db"
31 31

  
32 32
    for k in getServerStatus()["mem"]:
33 33
        if ok( k ):
plugins/mongodb/mongo_ops
26 26
    print "graph_title MongoDB ops"
27 27
    print "graph_args --base 1000 -l 0"
28 28
    print "graph_vlabel ops / ${graph_period}"
29
    print "graph_category MongoDB"
29
    print "graph_category db"
30 30
    print "graph_total total"
31 31

  
32 32
    for k in getServerStatus()["opcounters"]:
plugins/network/dartybox
21 21
then
22 22
	echo multigraph dbox_adsl_bw
23 23
	echo graph_title DartyBox Adsl Bandwidth
24
	echo graph_category DartyBox
24
	echo graph_category other
25 25
	echo up.label UpStream
26 26
	echo down.label DownStream
27 27
	echo multigraph dbox_adsl_att
28 28
	echo graph_title DartyBox Adsl Attenuation
29
	echo graph_category DartyBox
29
	echo graph_category other
30 30
	echo up.label UpStream
31 31
	echo down.label DownStream
32 32
	echo multigraph dbox_adsl_snr
33 33
	echo graph_title DartyBox Adsl SignalNoise Ratio
34
	echo graph_category DartyBox
34
	echo graph_category other
35 35
	echo up.label UpStream
36 36
	echo down.label DownStream
37 37
	echo multigraph dbox_adsl_pkt
38 38
	echo graph_title DartyBox Adsl Packets
39
	echo graph_category DartyBox
39
	echo graph_category other
40 40
	echo up.label UpStream
41 41
	echo down.label DownStream
42 42
	echo up_c.label UpStream "(Correctable)"
......
57 57
	echo down_u.min 0
58 58
	echo multigraph dbox_adsl_uptime
59 59
	echo graph_title DartyBox Adsl Uptime
60
	echo graph_category DartyBox
60
	echo graph_category other
61 61
	echo graph_vlabel days
62 62
	echo uptime.label Uptime
63 63

  
plugins/other/i2p_
26 26
    print('graph_title i2p bps')
27 27
    print('graph_vlabel bps')
28 28
    print('graph_info i2p sending and receiving bytes per second')
29
    print('graph_category i2p')
29
    print('graph_category network')
30 30
    print('receivebps.label Receive bps')
31 31
    print('sendbps.label Send bps')
32 32
  elif 'uptime' == plugin_var:
......
34 34
    print('graph_scale no')
35 35
    print('graph_args --base 1000 -l 0')
36 36
    print('graph_vlabel uptime in whole hours')
37
    print('graph_category i2p')
37
    print('graph_category network')
38 38
    print('uptime.label i2p uptime')
39 39
    print('uptime.draw AREA')
40 40
  else:
plugins/sabnzbd/sabnzbd_dataleft
44 44
    print <<EOC
45 45
graph_title Data Remaining
46 46
graph_vlabel Data Remaining (MB)
47
graph_category sabnzbd
47
graph_category other
48 48
rem.label Remaining
49 49
EOC
50 50
;
......
65 65
#get/output vals 
66 66
my $left = $xmlvals->{mbleft};
67 67
$left =~ /(\d+)\./;
68
print "rem.value ".$1."\n";
68
print "rem.value ".$1."\n";
plugins/sabnzbd/sabnzbd_speed
44 44
    print <<EOC
45 45
graph_title SABnzbd Speed
46 46
graph_vlabel Download Speed (KB/s)
47
graph_category sabnzbd
47
graph_category other
48 48
speed.label Download Speed
49 49
EOC
50 50
;
......
65 65
#get/output vals
66 66
my $speed = $xmlvals->{kbpersec};
67 67
$speed =~ /(\d+)\./;
68
print "speed.value ".$1."\n"; 
68
print "speed.value ".$1."\n"; 
plugins/thin/thin_memory
77 77
when "config"
78 78
  puts "graph_title Thin Memory"
79 79
  puts "graph_vlabel RSS"
80
  puts "graph_category Thin"
80
  puts "graph_category webserver"
81 81
  puts "graph_args --base 1024 -l 0"
82 82
  puts "graph_scale yes"
83 83
  puts "graph_info Tracks the size of individual thin processes"
plugins/thin/thin_threads
81 81
when "config"
82 82
  puts "graph_title Thin Threads"
83 83
  puts "graph_vlabel Threads"
84
  puts "graph_category Thin"
84
  puts "graph_category webserver"
85 85
  puts "graph_args -l 0"
86 86
  puts "graph_scale yes"
87 87
  puts "graph_info Tracks how many threads per thin processes"
plugins/thin/thins_peak_memory
79 79
when "config"
80 80
  puts "graph_title Thin Peak Memory (High Water Mark)"
81 81
  puts "graph_vlabel HWM"
82
  puts "graph_category Thin"
82
  puts "graph_category webserver"
83 83
  puts "graph_args -l 0"
84 84
  puts "graph_scale yes"
85 85
  puts "graph_info Tracks the peak memory of thin processes, aka High Water Mark."
plugins/tor/tor-connections
17 17
	print "graph_title Connections\n";
18 18
	print "graph_args -l 0 --base 1000\n";
19 19
	print "graph_vlabel connections\n";
20
	print "graph_category Tor\n";
20
	print "graph_category network\n";
21 21
	print "graph_info This graph shows the number of Tor OR connections.\n";
22 22
	print "graph_period second\n";
23 23

  
plugins/tor/tor-traffic
17 17
	echo "graph_title Traffic\n";
18 18
	echo "graph_args --base 1000 \n";
19 19
	echo "graph_vlabel bits in (-) / out (+) per ${graph_period}\n";
20
	echo "graph_category Tor\n";
20
	echo "graph_category network\n";
21 21

  
22 22
	echo "down.label Download\n";
23 23
        echo "down.type GAUGE\n";
plugins/tor/tor_routers
99 99
	print "graph_title Routers\n";
100 100
	print "graph_args -l 0\n";
101 101
	print "graph_vlabel routers\n";
102
	print "graph_category Tor\n";
102
	print "graph_category network\n";
103 103
	print "graph_info This graph shows the number of known Tor ORs.\n";
104 104

  
105 105
    print "ors.label routers\n";

Formats disponibles : Unified diff