Projet

Général

Profil

Révision f41b6861

IDf41b68619bee4bba1a908b36150db16d22468307
Parent ed77c82d
Enfant 58cbb4b6, 444c7939

Ajouté par dipohl il y a presque 9 ans

Category Tree: Reduce number of categories
monit -> munin
nova -> cloud (nova)
powermta -> mail (powermta)
redis -> search (redis) and system (redis)

Voir les différences:

plugins/monit/monit_parser
113 113
    procs = parse_processes()
114 114
    print('graph_title Per process stats from Monit')
115 115
    print('graph_vlabel usage of memory [kB] or cpu [%]')
116
    print('graph_category monit')
116
    print('graph_category munin')
117 117
    for process in procs:
118 118
        for stat in procs[process]:
119 119
            print("monit_%s_%s.label %s.%s" % (sanitize(process), stat, process, stat))
plugins/mpd/mpdstats_
124 124
        get_mpd_stats_keys
125 125
        ;;
126 126
    config)
127
        echo "graph_category MPD"
127
        echo "graph_category streaming"
128 128
        echo "graph_args --base 1000 -l 0"
129 129
        echo "graph_scale no"
130 130
        if [ -z "$ACTION" ]; then
plugins/nova/nova_floating_ips
35 35
    print 'graph_title Nova Floating IPs'
36 36
    print 'graph_vlabel IPs'
37 37
    print 'graph_args --base 1000 --lower-limit 0'
38
    print 'graph_category nova'
38
    print 'graph_category cloud'
39 39
    print 'graph_scale no'
40 40
    print 'graph_info This graph shows the number of Floating IPs in Nova and their status'
41 41
    for state in states:
plugins/nova/nova_instance_
75 75
    print 'graph_title Nova Instance %s' % metric
76 76
    print 'graph_vlabel instances'
77 77
    print 'graph_args --base 1000 --lower-limit 0'
78
    print 'graph_category nova'
78
    print 'graph_category cloud'
79 79
    print 'graph_scale no'
80 80
    print 'graph_info This graph shows the number of instances by %s' % metric
81 81
    for state in states:
plugins/nova/nova_instance_launched
32 32
    print 'graph_title Nova Instances Launched'
33 33
    print 'graph_vlabel qty'
34 34
    print 'graph_args --base 1000 --lower-limit 0'
35
    print 'graph_category nova'
35
    print 'graph_category cloud'
36 36
    print 'graph_scale no'
37 37
    print 'graph_info This graph shows the number of instances launched since the beginning of time'
38 38
    print 'instances.label instances'
plugins/nova/nova_instance_timing
33 33
    print 'graph_title Nova Launch Times'
34 34
    print 'graph_vlabel seconds'
35 35
    print 'graph_args --base 1000 --lower-limit 0'
36
    print 'graph_category nova'
36
    print 'graph_category cloud'
37 37
    print 'graph_scale no'
38 38
    print 'graph_info This the average time for the last 5 schedulings/launchings'
39 39
    print 'schedule.label schedule time'
plugins/nova/nova_services
30 30
    print 'graph_title Nova Services'
31 31
    print 'graph_vlabel qty'
32 32
    print 'graph_args --base 1000 --lower-limit 0'
33
    print 'graph_category nova'
33
    print 'graph_category cloud'
34 34
    print 'graph_scale no'
35 35
    print 'graph_info Nova services - alive and active'
36 36
    for service in services:
plugins/powermta/powermta_vmta_recpients
16 16
echo "graph_title RGMTA2 PMTA VMTA $vmta Recipents"
17 17
echo "graph_vlabel recipents"
18 18
echo "graph_scale no"
19
echo "graph_category PowerMTA"
19
echo "graph_category mail"
20 20
for i in ${queues[@]};do
21 21
queue=(`pmta show queue $i`)
22 22
unset queue[0]
plugins/redis/redis-speed
50 50
    print "ping.label PING time\n";
51 51
    print "get.label GET time\n";
52 52
    print "set.label SET time\n";
53
    print "graph_category redis\n";
53
    print "graph_category search\n";
54 54
    exit 0;
55 55
}
56 56

  
plugins/redis/redis_
80 80
            my $maxclients= get_config("maxclients")->{"maxclients"};
81 81
            print "graph_title ${TITLE_PREFIX}Connected clients\n";
82 82
            print "graph_vlabel Connected clients\n";
83
            print "graph_category redis\n";
83
            print "graph_category search\n";
84 84
            print "graph_args -l 0\n";
85 85
            print "connected_clients.line $maxclients:ff0000:Limit\n";
86 86
            print "connected_clients.label connected clients\n";
......
95 95
        if ( $config ) {
96 96
            print "graph_title ${TITLE_PREFIX}Keys Per Second\n";
97 97
            print "graph_vlabel per \${graph_period}\n";
98
            print "graph_category redis\n";
98
            print "graph_category search\n";
99 99
            print "graph_args -l 0\n";
100 100
            print "hits.label hits\n";
101 101
            print "hits.type COUNTER\n";
......
118 118
        if ( $config ) {
119 119
            print "graph_title ${TITLE_PREFIX}Key Hit vs Miss Ratio\n";
120 120
            print "graph_vlabel per \${graph_period}\n";
121
            print "graph_category redis\n";
121
            print "graph_category search\n";
122 122
            print "graph_args -u 100 -l 0 -r --base 1000\n";
123 123
            print "hitratio.label hit ratio\n";
124 124
            print "hitratio.type GAUGE\n";
......
145 145
        if ( $config ) {
146 146
            print "graph_title ${TITLE_PREFIX}Per second\n";
147 147
            print "graph_vlabel per \${graph_period}\n";
148
            print "graph_category redis\n";
148
            print "graph_category search\n";
149 149
            print "graph_args -l 0\n";
150 150
            print "requests.label requests\n";
151 151
            print "requests.type COUNTER\n";
......
164 164
            my $maxmemory = get_config("maxmemory")->{"maxmemory"};
165 165
            print "graph_title ${TITLE_PREFIX}Used memory\n";
166 166
            print "graph_vlabel Used memory\n";
167
            print "graph_category redis\n";
167
            print "graph_category search\n";
168 168
            print "graph_args -l 0 --base 1024\n";
169 169
            print "used_memory.line $maxmemory:ff0000:Limit\n";
170 170
            print "used_memory.label used memory\n";
......
189 189
        if ( $config ) {
190 190
            print "graph_title ${TITLE_PREFIX}Used keys\n";
191 191
            print "graph_vlabel Used keys\n";
192
            print "graph_category redis\n";
192
            print "graph_category search\n";
193 193
            print "graph_args -l 0\n";
194 194

  
195 195
            foreach my $db (keys %{$dbs}) {
plugins/redis/resque
48 48
if ($opt eq 'failed') {
49 49
    if ($config) {
50 50
        print "graph_title Resque Failure rate\n";
51
        print "graph_category Resque\n";
51
        print "graph_category system\n";
52 52
        print "graph_info This graph shows resque jobs that failed\n";
53 53
        print "graph_args --lower-limit 0\n";
54 54
        print 'graph_vlabel fails/s\n';
......
64 64
elsif ($opt eq 'queues') {
65 65
    if ($config) {
66 66
        print "graph_title Resque queue rates\n";
67
        print "graph_category Resque\n";
67
        print "graph_category system\n";
68 68
        print "graph_vlabel queue rates/s\n";
69 69
        print "graph_info This graph monitors the in and out rate of the queues\n";
70 70
        print "graph_args --lower-limit 0\n";
......
97 97
elsif ($opt eq 'queues_size') {
98 98
    if ($config) {
99 99
        print "graph_title Resque queue current size\n";
100
        print "graph_category Resque\n";
100
        print "graph_category system\n";
101 101
        print "graph_vlabel queue size\n";
102 102
        print "graph_info This graph monitors the current queues size\n";
103 103
        print "graph_args --lower-limit 0\n";
......
133 133
elsif ($opt eq 'workers_count') {
134 134
    if ($config) {
135 135
        print "graph_title Resque Workers Count\n";
136
        print "graph_category Resque\n";
136
        print "graph_category system\n";
137 137
        print "graph_info This graph shows number of resque workers\n";
138 138
        print "graph_args --lower-limit 0\n";
139 139
        print "graph_vlabel workers\n";
......
149 149
elsif ($opt eq 'workers_working') {
150 150
    if ($config) {
151 151
        print "graph_title Resque Workers in use\n";
152
        print "graph_category Resque\n";
152
        print "graph_category system\n";
153 153
        print "graph_info This graph shows the \%age of resque workers busy\n";
154 154
        print "graph_args --lower-limit 0 --upper-limit 100\n";
155 155
        print "graph_vlabel %\n";

Formats disponibles : Unified diff