Projet

Général

Profil

Révision 30685b4c

ID30685b4c66c6b3fd3011c4bca75406f220642781
Parent c3e309c6
Enfant b535ddbc, ed77c82d

Ajouté par dipohl il y a presque 9 ans

Category Tree: Reduce number of categories
slony -> db (postgresql)
qpid -> webserver (apache)
solr -> search (solr)

Voir les différences:

plugins/apache/qpid_bytedepth
31 31
      output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
32 32

  
33 33
if len(sys.argv) > 1 and sys.argv[1] == "config":
34
  print "graph_category Qpid";
34
  print "graph_category webserver";
35 35
  print "graph_title Queue byte depth";
36 36
  print "graph_vlabel bytes"
37 37
  for queue in output_queue:
plugins/apache/qpid_discardsring
31 31
      output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
32 32

  
33 33
if len(sys.argv) > 1 and sys.argv[1] == "config":
34
  print "graph_category Qpid";
34
  print "graph_category webserver";
35 35
  print "graph_title Ring queue discard rate";
36 36
  print "graph_vlabel messages/second";
37 37
  for queue in output_queue:
plugins/apache/qpid_enqueuebytes
31 31
      output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
32 32

  
33 33
if len(sys.argv) > 1 and sys.argv[1] == "config":
34
  print "graph_category Qpid";
34
  print "graph_category webserver";
35 35
  print "graph_title Enqueue data rate";
36 36
  print "graph_vlabel bytes/second"
37 37
  for queue in output_queue:
plugins/apache/qpid_enqueuecount
31 31
      output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
32 32

  
33 33
if len(sys.argv) > 1 and sys.argv[1] == "config":
34
  print "graph_category Qpid";
34
  print "graph_category webserver";
35 35
  print "graph_title Enqueue message rate";
36 36
  print "graph_vlabel messages/second"
37 37
  for queue in output_queue:
plugins/apache/qpid_msgdepth
31 31
      output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
32 32

  
33 33
if len(sys.argv) > 1 and sys.argv[1] == "config":
34
  print "graph_category Qpid";
34
  print "graph_category webserver";
35 35
  print "graph_title Queue message depth";
36 36
  print "graph_vlabel messages"
37 37
  for queue in output_queue:
plugins/postgresql/slony_lag_events_
49 49

  
50 50
if [ "$1" = "config" ]; then
51 51
    echo "graph_args --base 1000 -l 0"
52
    echo "graph_category slony"
52
    echo "graph_category db"
53 53
    echo "graph_info Slony st_lag_num_events for ${PGDATABASE}"
54 54
    echo "graph_title Slony lag events for ${PGDATABASE}"
55 55
    echo 'graph_vlabel event'
plugins/postgresql/slony_lag_time
49 49

  
50 50
if [ "$1" = "config" ]; then
51 51
    echo "graph_args --base 1000 -l 0"
52
    echo "graph_category slony"
52
    echo "graph_category db"
53 53
    echo "graph_info Slony st_lag_time for ${PGDATABASE}"
54 54
    echo "graph_title Slony lag time for ${PGDATABASE}"
55 55
    echo "graph_vlabel \${graph_period}"
plugins/postgresql/slony_lag_time_
49 49

  
50 50
if [ "$1" = "config" ]; then
51 51
    echo "graph_args --base 1000 -l 0"
52
    echo "graph_category slony"
52
    echo "graph_category db"
53 53
    echo "graph_info Slony st_lag_time for ${PGDATABASE}"
54 54
    echo "graph_title Slony lag time for ${PGDATABASE}"
55 55
    echo "graph_vlabel \${graph_period}"
plugins/solr/solr
88 88
        print 'graph_title Solr %s' % params['valueName']
89 89
        print 'graph_args -l 0 '
90 90
        print 'graph_vlabel Size %s' % params['valueName']
91
        print 'graph_category Solr'
91
        print 'graph_category search'
92 92
        print 'graph_info Info for cores: %s' % ( ",".join(params['cores']))
93 93

  
94 94
        for core in params['cores']:
plugins/solr/solr-stats
24 24

  
25 25
if('config' === $action)
26 26
{
27
    echo 'graph_category SolR ' . $core . "\n";
27
    echo 'graph_category search ' . $core . "\n";
28 28
    echo 'graph_title ' . $item . ' ' . $property . "\n";
29 29
    echo 'graph_vlabel ' . $property . "\n";
30 30
    echo $core . $item . $property . 'solr.label ' . $property . "\n";
plugins/solr/solr4_
232 232
# Graph Templates
233 233

  
234 234
CACHE_GRAPH_TPL = """multigraph solr_{core}_{cacheType}_hit_rates
235
graph_category solr
235
graph_category search
236 236
graph_title Solr {core} {cacheName} Hit rates
237 237
graph_order lookups hits inserts
238 238
graph_scale no
......
256 256
multigraph solr_{core}_{cacheType}_size
257 257
graph_title Solr {core} {cacheName} Size
258 258
graph_args -l 0
259
graph_category solr
259
graph_category search
260 260
graph_vlabel Size
261 261
size.label Size
262 262
size.draw LINE2
......
269 269
graph_args --base 1000 -r --lower-limit 0
270 270
graph_scale no
271 271
graph_vlabel request / second
272
graph_category solr
272
graph_category search
273 273
graph_period second
274 274
graph_order {gorder}
275 275
{cores_qps_graphs}"""
......
284 284
graph_title Solr {core} {handler} Time per request
285 285
graph_args -l 0
286 286
graph_vlabel millis
287
graph_category solr
287
graph_category search
288 288
savgtimeperrequest_{core}.label {core} Avg time per request
289 289
savgtimeperrequest_{core}.type GAUGE
290 290
savgtimeperrequest_{core}.graph yes
......
299 299
NUMDOCS_GRAPH_TPL = """graph_title Solr Docs %s
300 300
graph_vlabel docs
301 301
docs.label Docs
302
graph_category solr"""
302
graph_category search"""
303 303

  
304 304
INDEXSIZE_GRAPH_TPL = """graph_args --base 1024 -l 0 
305 305
graph_vlabel Bytes
306 306
graph_title Index Size
307
graph_category solr
307
graph_category search
308 308
graph_info Solr Index Size.
309 309
graph_order {cores}
310 310
{cores_config}
......
318 318
MEMORYUSAGE_GRAPH_TPL = """graph_args --base 1024 -l 0 --upper-limit {availableram}
319 319
graph_vlabel Bytes
320 320
graph_title Solr memory usage
321
graph_category solr
321
graph_category search
322 322
graph_info Solr Memory Usage.
323 323
used.label Used
324 324
max.label Max
plugins/solr/solrmulticore
158 158
        print 'graph_title %s' % ( PLUGINOPTIONSLIST[params['valueName']]['label'] )
159 159
        print "graph_args --base 1000";
160 160
        print 'graph_vlabel Size %s' % params['valueName']
161
        print 'graph_category Solr'
161
        print 'graph_category search'
162 162
        print 'graph_info Info for cores: %s' % ( ",".join(params['cores']) )
163 163

  
164 164
        # Iterations for core datas
plugins/solr/wfsolr_
170 170
		{
171 171
			echo "graph_args --base 1024 -l 0\n";
172 172
		}
173
		echo "graph_category Solr $core\n";
173
		echo "graph_category search $core\n";
174 174
		echo "graph_title $item $property\n";
175 175
		echo "graph_vlabel $property\n";
176 176
		if ($core !== null)

Formats disponibles : Unified diff