2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Category Tree: Reduce number of categories

monit -> munin
nova -> cloud (nova)
powermta -> mail (powermta)
redis -> search (redis) and system (redis)
This commit is contained in:
dipohl 2017-02-23 00:15:13 +01:00
parent ed77c82d8a
commit f41b68619b
11 changed files with 20 additions and 20 deletions

View File

@ -113,7 +113,7 @@ elif action == 'config':
procs = parse_processes() procs = parse_processes()
print('graph_title Per process stats from Monit') print('graph_title Per process stats from Monit')
print('graph_vlabel usage of memory [kB] or cpu [%]') print('graph_vlabel usage of memory [kB] or cpu [%]')
print('graph_category monit') print('graph_category munin')
for process in procs: for process in procs:
for stat in procs[process]: for stat in procs[process]:
print("monit_%s_%s.label %s.%s" % (sanitize(process), stat, process, stat)) print("monit_%s_%s.label %s.%s" % (sanitize(process), stat, process, stat))

View File

@ -124,7 +124,7 @@ case "$1" in
get_mpd_stats_keys get_mpd_stats_keys
;; ;;
config) config)
echo "graph_category MPD" echo "graph_category streaming"
echo "graph_args --base 1000 -l 0" echo "graph_args --base 1000 -l 0"
echo "graph_scale no" echo "graph_scale no"
if [ -z "$ACTION" ]; then if [ -z "$ACTION" ]; then

View File

@ -35,7 +35,7 @@ def print_config():
print 'graph_title Nova Floating IPs' print 'graph_title Nova Floating IPs'
print 'graph_vlabel IPs' print 'graph_vlabel IPs'
print 'graph_args --base 1000 --lower-limit 0' print 'graph_args --base 1000 --lower-limit 0'
print 'graph_category nova' print 'graph_category cloud'
print 'graph_scale no' print 'graph_scale no'
print 'graph_info This graph shows the number of Floating IPs in Nova and their status' print 'graph_info This graph shows the number of Floating IPs in Nova and their status'
for state in states: for state in states:

View File

@ -75,7 +75,7 @@ def print_config(metric):
print 'graph_title Nova Instance %s' % metric print 'graph_title Nova Instance %s' % metric
print 'graph_vlabel instances' print 'graph_vlabel instances'
print 'graph_args --base 1000 --lower-limit 0' print 'graph_args --base 1000 --lower-limit 0'
print 'graph_category nova' print 'graph_category cloud'
print 'graph_scale no' print 'graph_scale no'
print 'graph_info This graph shows the number of instances by %s' % metric print 'graph_info This graph shows the number of instances by %s' % metric
for state in states: for state in states:

View File

@ -32,7 +32,7 @@ def print_config():
print 'graph_title Nova Instances Launched' print 'graph_title Nova Instances Launched'
print 'graph_vlabel qty' print 'graph_vlabel qty'
print 'graph_args --base 1000 --lower-limit 0' print 'graph_args --base 1000 --lower-limit 0'
print 'graph_category nova' print 'graph_category cloud'
print 'graph_scale no' print 'graph_scale no'
print 'graph_info This graph shows the number of instances launched since the beginning of time' print 'graph_info This graph shows the number of instances launched since the beginning of time'
print 'instances.label instances' print 'instances.label instances'

View File

@ -33,7 +33,7 @@ def print_config():
print 'graph_title Nova Launch Times' print 'graph_title Nova Launch Times'
print 'graph_vlabel seconds' print 'graph_vlabel seconds'
print 'graph_args --base 1000 --lower-limit 0' print 'graph_args --base 1000 --lower-limit 0'
print 'graph_category nova' print 'graph_category cloud'
print 'graph_scale no' print 'graph_scale no'
print 'graph_info This the average time for the last 5 schedulings/launchings' print 'graph_info This the average time for the last 5 schedulings/launchings'
print 'schedule.label schedule time' print 'schedule.label schedule time'

View File

@ -30,7 +30,7 @@ def print_config():
print 'graph_title Nova Services' print 'graph_title Nova Services'
print 'graph_vlabel qty' print 'graph_vlabel qty'
print 'graph_args --base 1000 --lower-limit 0' print 'graph_args --base 1000 --lower-limit 0'
print 'graph_category nova' print 'graph_category cloud'
print 'graph_scale no' print 'graph_scale no'
print 'graph_info Nova services - alive and active' print 'graph_info Nova services - alive and active'
for service in services: for service in services:

View File

@ -16,7 +16,7 @@ case $1 in
echo "graph_title RGMTA2 PMTA VMTA $vmta Recipents" echo "graph_title RGMTA2 PMTA VMTA $vmta Recipents"
echo "graph_vlabel recipents" echo "graph_vlabel recipents"
echo "graph_scale no" echo "graph_scale no"
echo "graph_category PowerMTA" echo "graph_category mail"
for i in ${queues[@]};do for i in ${queues[@]};do
queue=(`pmta show queue $i`) queue=(`pmta show queue $i`)
unset queue[0] unset queue[0]

View File

@ -50,7 +50,7 @@ if ( $config ) {
print "ping.label PING time\n"; print "ping.label PING time\n";
print "get.label GET time\n"; print "get.label GET time\n";
print "set.label SET time\n"; print "set.label SET time\n";
print "graph_category redis\n"; print "graph_category search\n";
exit 0; exit 0;
} }

View File

@ -80,7 +80,7 @@ switch ($0) {
my $maxclients= get_config("maxclients")->{"maxclients"}; my $maxclients= get_config("maxclients")->{"maxclients"};
print "graph_title ${TITLE_PREFIX}Connected clients\n"; print "graph_title ${TITLE_PREFIX}Connected clients\n";
print "graph_vlabel Connected clients\n"; print "graph_vlabel Connected clients\n";
print "graph_category redis\n"; print "graph_category search\n";
print "graph_args -l 0\n"; print "graph_args -l 0\n";
print "connected_clients.line $maxclients:ff0000:Limit\n"; print "connected_clients.line $maxclients:ff0000:Limit\n";
print "connected_clients.label connected clients\n"; print "connected_clients.label connected clients\n";
@ -95,7 +95,7 @@ switch ($0) {
if ( $config ) { if ( $config ) {
print "graph_title ${TITLE_PREFIX}Keys Per Second\n"; print "graph_title ${TITLE_PREFIX}Keys Per Second\n";
print "graph_vlabel per \${graph_period}\n"; print "graph_vlabel per \${graph_period}\n";
print "graph_category redis\n"; print "graph_category search\n";
print "graph_args -l 0\n"; print "graph_args -l 0\n";
print "hits.label hits\n"; print "hits.label hits\n";
print "hits.type COUNTER\n"; print "hits.type COUNTER\n";
@ -118,7 +118,7 @@ switch ($0) {
if ( $config ) { if ( $config ) {
print "graph_title ${TITLE_PREFIX}Key Hit vs Miss Ratio\n"; print "graph_title ${TITLE_PREFIX}Key Hit vs Miss Ratio\n";
print "graph_vlabel per \${graph_period}\n"; print "graph_vlabel per \${graph_period}\n";
print "graph_category redis\n"; print "graph_category search\n";
print "graph_args -u 100 -l 0 -r --base 1000\n"; print "graph_args -u 100 -l 0 -r --base 1000\n";
print "hitratio.label hit ratio\n"; print "hitratio.label hit ratio\n";
print "hitratio.type GAUGE\n"; print "hitratio.type GAUGE\n";
@ -145,7 +145,7 @@ switch ($0) {
if ( $config ) { if ( $config ) {
print "graph_title ${TITLE_PREFIX}Per second\n"; print "graph_title ${TITLE_PREFIX}Per second\n";
print "graph_vlabel per \${graph_period}\n"; print "graph_vlabel per \${graph_period}\n";
print "graph_category redis\n"; print "graph_category search\n";
print "graph_args -l 0\n"; print "graph_args -l 0\n";
print "requests.label requests\n"; print "requests.label requests\n";
print "requests.type COUNTER\n"; print "requests.type COUNTER\n";
@ -164,7 +164,7 @@ switch ($0) {
my $maxmemory = get_config("maxmemory")->{"maxmemory"}; my $maxmemory = get_config("maxmemory")->{"maxmemory"};
print "graph_title ${TITLE_PREFIX}Used memory\n"; print "graph_title ${TITLE_PREFIX}Used memory\n";
print "graph_vlabel Used memory\n"; print "graph_vlabel Used memory\n";
print "graph_category redis\n"; print "graph_category search\n";
print "graph_args -l 0 --base 1024\n"; print "graph_args -l 0 --base 1024\n";
print "used_memory.line $maxmemory:ff0000:Limit\n"; print "used_memory.line $maxmemory:ff0000:Limit\n";
print "used_memory.label used memory\n"; print "used_memory.label used memory\n";
@ -189,7 +189,7 @@ switch ($0) {
if ( $config ) { if ( $config ) {
print "graph_title ${TITLE_PREFIX}Used keys\n"; print "graph_title ${TITLE_PREFIX}Used keys\n";
print "graph_vlabel Used keys\n"; print "graph_vlabel Used keys\n";
print "graph_category redis\n"; print "graph_category search\n";
print "graph_args -l 0\n"; print "graph_args -l 0\n";
foreach my $db (keys %{$dbs}) { foreach my $db (keys %{$dbs}) {

View File

@ -48,7 +48,7 @@ my $opt = $0 ? $0 : 'default';
if ($opt eq 'failed') { if ($opt eq 'failed') {
if ($config) { if ($config) {
print "graph_title Resque Failure rate\n"; print "graph_title Resque Failure rate\n";
print "graph_category Resque\n"; print "graph_category system\n";
print "graph_info This graph shows resque jobs that failed\n"; print "graph_info This graph shows resque jobs that failed\n";
print "graph_args --lower-limit 0\n"; print "graph_args --lower-limit 0\n";
print 'graph_vlabel fails/s\n'; print 'graph_vlabel fails/s\n';
@ -64,7 +64,7 @@ if ($opt eq 'failed') {
elsif ($opt eq 'queues') { elsif ($opt eq 'queues') {
if ($config) { if ($config) {
print "graph_title Resque queue rates\n"; print "graph_title Resque queue rates\n";
print "graph_category Resque\n"; print "graph_category system\n";
print "graph_vlabel queue rates/s\n"; print "graph_vlabel queue rates/s\n";
print "graph_info This graph monitors the in and out rate of the queues\n"; print "graph_info This graph monitors the in and out rate of the queues\n";
print "graph_args --lower-limit 0\n"; print "graph_args --lower-limit 0\n";
@ -97,7 +97,7 @@ elsif ($opt eq 'queues') {
elsif ($opt eq 'queues_size') { elsif ($opt eq 'queues_size') {
if ($config) { if ($config) {
print "graph_title Resque queue current size\n"; print "graph_title Resque queue current size\n";
print "graph_category Resque\n"; print "graph_category system\n";
print "graph_vlabel queue size\n"; print "graph_vlabel queue size\n";
print "graph_info This graph monitors the current queues size\n"; print "graph_info This graph monitors the current queues size\n";
print "graph_args --lower-limit 0\n"; print "graph_args --lower-limit 0\n";
@ -133,7 +133,7 @@ elsif ($opt eq 'queues_size') {
elsif ($opt eq 'workers_count') { elsif ($opt eq 'workers_count') {
if ($config) { if ($config) {
print "graph_title Resque Workers Count\n"; print "graph_title Resque Workers Count\n";
print "graph_category Resque\n"; print "graph_category system\n";
print "graph_info This graph shows number of resque workers\n"; print "graph_info This graph shows number of resque workers\n";
print "graph_args --lower-limit 0\n"; print "graph_args --lower-limit 0\n";
print "graph_vlabel workers\n"; print "graph_vlabel workers\n";
@ -149,7 +149,7 @@ elsif ($opt eq 'workers_count') {
elsif ($opt eq 'workers_working') { elsif ($opt eq 'workers_working') {
if ($config) { if ($config) {
print "graph_title Resque Workers in use\n"; print "graph_title Resque Workers in use\n";
print "graph_category Resque\n"; print "graph_category system\n";
print "graph_info This graph shows the \%age of resque workers busy\n"; print "graph_info This graph shows the \%age of resque workers busy\n";
print "graph_args --lower-limit 0 --upper-limit 100\n"; print "graph_args --lower-limit 0 --upper-limit 100\n";
print "graph_vlabel %\n"; print "graph_vlabel %\n";