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

@ -94,7 +94,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0'
echo 'graph_vlabel connections'
echo 'graph_scale no'
echo 'graph_category cyrus'
echo 'graph_category mail'
echo 'graph_info Current connections to the imap server. <a href="http://trac.bawue.org/">bawue.net e.V. Trac repository</a>.'
echo 'graph_order connections authenticated_users unique_users'
echo 'connections.label Connections'

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"]:

View File

@ -21,22 +21,22 @@ if [ "$1" = "config" ]
then
echo multigraph dbox_adsl_bw
echo graph_title DartyBox Adsl Bandwidth
echo graph_category DartyBox
echo graph_category other
echo up.label UpStream
echo down.label DownStream
echo multigraph dbox_adsl_att
echo graph_title DartyBox Adsl Attenuation
echo graph_category DartyBox
echo graph_category other
echo up.label UpStream
echo down.label DownStream
echo multigraph dbox_adsl_snr
echo graph_title DartyBox Adsl SignalNoise Ratio
echo graph_category DartyBox
echo graph_category other
echo up.label UpStream
echo down.label DownStream
echo multigraph dbox_adsl_pkt
echo graph_title DartyBox Adsl Packets
echo graph_category DartyBox
echo graph_category other
echo up.label UpStream
echo down.label DownStream
echo up_c.label UpStream "(Correctable)"
@ -57,7 +57,7 @@ then
echo down_u.min 0
echo multigraph dbox_adsl_uptime
echo graph_title DartyBox Adsl Uptime
echo graph_category DartyBox
echo graph_category other
echo graph_vlabel days
echo uptime.label Uptime

View File

@ -26,7 +26,7 @@ def config():
print('graph_title i2p bps')
print('graph_vlabel bps')
print('graph_info i2p sending and receiving bytes per second')
print('graph_category i2p')
print('graph_category network')
print('receivebps.label Receive bps')
print('sendbps.label Send bps')
elif 'uptime' == plugin_var:
@ -34,7 +34,7 @@ def config():
print('graph_scale no')
print('graph_args --base 1000 -l 0')
print('graph_vlabel uptime in whole hours')
print('graph_category i2p')
print('graph_category network')
print('uptime.label i2p uptime')
print('uptime.draw AREA')
else:

View File

@ -44,7 +44,7 @@ if(defined $ARGV[0] && $ARGV[0] eq 'config')
print <<EOC
graph_title Data Remaining
graph_vlabel Data Remaining (MB)
graph_category sabnzbd
graph_category other
rem.label Remaining
EOC
;
@ -65,4 +65,4 @@ my $xmlvals = $xml->XMLin($vals);
#get/output vals
my $left = $xmlvals->{mbleft};
$left =~ /(\d+)\./;
print "rem.value ".$1."\n";
print "rem.value ".$1."\n";

View File

@ -44,7 +44,7 @@ if(defined $ARGV[0] && $ARGV[0] eq 'config')
print <<EOC
graph_title SABnzbd Speed
graph_vlabel Download Speed (KB/s)
graph_category sabnzbd
graph_category other
speed.label Download Speed
EOC
;
@ -65,4 +65,4 @@ my $xmlvals = $xml->XMLin($vals);
#get/output vals
my $speed = $xmlvals->{kbpersec};
$speed =~ /(\d+)\./;
print "speed.value ".$1."\n";
print "speed.value ".$1."\n";

View File

@ -77,7 +77,7 @@ case ARGV[0]
when "config"
puts "graph_title Thin Memory"
puts "graph_vlabel RSS"
puts "graph_category Thin"
puts "graph_category webserver"
puts "graph_args --base 1024 -l 0"
puts "graph_scale yes"
puts "graph_info Tracks the size of individual thin processes"

View File

@ -81,7 +81,7 @@ case ARGV[0]
when "config"
puts "graph_title Thin Threads"
puts "graph_vlabel Threads"
puts "graph_category Thin"
puts "graph_category webserver"
puts "graph_args -l 0"
puts "graph_scale yes"
puts "graph_info Tracks how many threads per thin processes"

View File

@ -79,7 +79,7 @@ case ARGV[0]
when "config"
puts "graph_title Thin Peak Memory (High Water Mark)"
puts "graph_vlabel HWM"
puts "graph_category Thin"
puts "graph_category webserver"
puts "graph_args -l 0"
puts "graph_scale yes"
puts "graph_info Tracks the peak memory of thin processes, aka High Water Mark."

View File

@ -17,7 +17,7 @@ if ($cmd == "config") {
print "graph_title Connections\n";
print "graph_args -l 0 --base 1000\n";
print "graph_vlabel connections\n";
print "graph_category Tor\n";
print "graph_category network\n";
print "graph_info This graph shows the number of Tor OR connections.\n";
print "graph_period second\n";

View File

@ -17,7 +17,7 @@ if ($cmd == "config") {
echo "graph_title Traffic\n";
echo "graph_args --base 1000 \n";
echo "graph_vlabel bits in (-) / out (+) per ${graph_period}\n";
echo "graph_category Tor\n";
echo "graph_category network\n";
echo "down.label Download\n";
echo "down.type GAUGE\n";

View File

@ -99,7 +99,7 @@ if ($ARGV[0] and $ARGV[0] eq "config") {
print "graph_title Routers\n";
print "graph_args -l 0\n";
print "graph_vlabel routers\n";
print "graph_category Tor\n";
print "graph_category network\n";
print "graph_info This graph shows the number of known Tor ORs.\n";
print "ors.label routers\n";