mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Category Tree: Reduce number of categories
slony -> db (postgresql) qpid -> webserver (apache) solr -> search (solr)
This commit is contained in:
parent
c3e309c6a5
commit
30685b4c66
@ -31,7 +31,7 @@ for q in queues:
|
|||||||
output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
|
output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
|
||||||
|
|
||||||
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
||||||
print "graph_category Qpid";
|
print "graph_category webserver";
|
||||||
print "graph_title Queue byte depth";
|
print "graph_title Queue byte depth";
|
||||||
print "graph_vlabel bytes"
|
print "graph_vlabel bytes"
|
||||||
for queue in output_queue:
|
for queue in output_queue:
|
@ -31,7 +31,7 @@ for q in queues:
|
|||||||
output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
|
output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
|
||||||
|
|
||||||
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
||||||
print "graph_category Qpid";
|
print "graph_category webserver";
|
||||||
print "graph_title Ring queue discard rate";
|
print "graph_title Ring queue discard rate";
|
||||||
print "graph_vlabel messages/second";
|
print "graph_vlabel messages/second";
|
||||||
for queue in output_queue:
|
for queue in output_queue:
|
@ -31,7 +31,7 @@ for q in queues:
|
|||||||
output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
|
output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
|
||||||
|
|
||||||
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
||||||
print "graph_category Qpid";
|
print "graph_category webserver";
|
||||||
print "graph_title Enqueue data rate";
|
print "graph_title Enqueue data rate";
|
||||||
print "graph_vlabel bytes/second"
|
print "graph_vlabel bytes/second"
|
||||||
for queue in output_queue:
|
for queue in output_queue:
|
@ -31,7 +31,7 @@ for q in queues:
|
|||||||
output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
|
output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
|
||||||
|
|
||||||
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
||||||
print "graph_category Qpid";
|
print "graph_category webserver";
|
||||||
print "graph_title Enqueue message rate";
|
print "graph_title Enqueue message rate";
|
||||||
print "graph_vlabel messages/second"
|
print "graph_vlabel messages/second"
|
||||||
for queue in output_queue:
|
for queue in output_queue:
|
@ -31,7 +31,7 @@ for q in queues:
|
|||||||
output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
|
output_queue.append(re.sub('[^a-zA-Z0-9_]', '_', q.name))
|
||||||
|
|
||||||
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
||||||
print "graph_category Qpid";
|
print "graph_category webserver";
|
||||||
print "graph_title Queue message depth";
|
print "graph_title Queue message depth";
|
||||||
print "graph_vlabel messages"
|
print "graph_vlabel messages"
|
||||||
for queue in output_queue:
|
for queue in output_queue:
|
@ -49,7 +49,7 @@ PGDATABASE=$(basename $0 | sed 's/^slony_lag_events_//g')
|
|||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
echo "graph_args --base 1000 -l 0"
|
echo "graph_args --base 1000 -l 0"
|
||||||
echo "graph_category slony"
|
echo "graph_category db"
|
||||||
echo "graph_info Slony st_lag_num_events for ${PGDATABASE}"
|
echo "graph_info Slony st_lag_num_events for ${PGDATABASE}"
|
||||||
echo "graph_title Slony lag events for ${PGDATABASE}"
|
echo "graph_title Slony lag events for ${PGDATABASE}"
|
||||||
echo 'graph_vlabel event'
|
echo 'graph_vlabel event'
|
@ -49,7 +49,7 @@ PGDATABASE=$(basename $0 | sed 's/^slony_lag_time_//g')
|
|||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
echo "graph_args --base 1000 -l 0"
|
echo "graph_args --base 1000 -l 0"
|
||||||
echo "graph_category slony"
|
echo "graph_category db"
|
||||||
echo "graph_info Slony st_lag_time for ${PGDATABASE}"
|
echo "graph_info Slony st_lag_time for ${PGDATABASE}"
|
||||||
echo "graph_title Slony lag time for ${PGDATABASE}"
|
echo "graph_title Slony lag time for ${PGDATABASE}"
|
||||||
echo "graph_vlabel \${graph_period}"
|
echo "graph_vlabel \${graph_period}"
|
@ -49,7 +49,7 @@ PGDATABASE=$(basename $0 | sed 's/^slony_lag_time_//g')
|
|||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
echo "graph_args --base 1000 -l 0"
|
echo "graph_args --base 1000 -l 0"
|
||||||
echo "graph_category slony"
|
echo "graph_category db"
|
||||||
echo "graph_info Slony st_lag_time for ${PGDATABASE}"
|
echo "graph_info Slony st_lag_time for ${PGDATABASE}"
|
||||||
echo "graph_title Slony lag time for ${PGDATABASE}"
|
echo "graph_title Slony lag time for ${PGDATABASE}"
|
||||||
echo "graph_vlabel \${graph_period}"
|
echo "graph_vlabel \${graph_period}"
|
@ -88,7 +88,7 @@ if len(sys.argv) > 1:
|
|||||||
print 'graph_title Solr %s' % params['valueName']
|
print 'graph_title Solr %s' % params['valueName']
|
||||||
print 'graph_args -l 0 '
|
print 'graph_args -l 0 '
|
||||||
print 'graph_vlabel Size %s' % params['valueName']
|
print 'graph_vlabel Size %s' % params['valueName']
|
||||||
print 'graph_category Solr'
|
print 'graph_category search'
|
||||||
print 'graph_info Info for cores: %s' % ( ",".join(params['cores']))
|
print 'graph_info Info for cores: %s' % ( ",".join(params['cores']))
|
||||||
|
|
||||||
for core in params['cores']:
|
for core in params['cores']:
|
||||||
|
@ -24,7 +24,7 @@ $property = $tabParams[4];
|
|||||||
|
|
||||||
if('config' === $action)
|
if('config' === $action)
|
||||||
{
|
{
|
||||||
echo 'graph_category SolR ' . $core . "\n";
|
echo 'graph_category search ' . $core . "\n";
|
||||||
echo 'graph_title ' . $item . ' ' . $property . "\n";
|
echo 'graph_title ' . $item . ' ' . $property . "\n";
|
||||||
echo 'graph_vlabel ' . $property . "\n";
|
echo 'graph_vlabel ' . $property . "\n";
|
||||||
echo $core . $item . $property . 'solr.label ' . $property . "\n";
|
echo $core . $item . $property . 'solr.label ' . $property . "\n";
|
||||||
|
@ -232,7 +232,7 @@ class SolrCoreMBean:
|
|||||||
# Graph Templates
|
# Graph Templates
|
||||||
|
|
||||||
CACHE_GRAPH_TPL = """multigraph solr_{core}_{cacheType}_hit_rates
|
CACHE_GRAPH_TPL = """multigraph solr_{core}_{cacheType}_hit_rates
|
||||||
graph_category solr
|
graph_category search
|
||||||
graph_title Solr {core} {cacheName} Hit rates
|
graph_title Solr {core} {cacheName} Hit rates
|
||||||
graph_order lookups hits inserts
|
graph_order lookups hits inserts
|
||||||
graph_scale no
|
graph_scale no
|
||||||
@ -256,7 +256,7 @@ hits.type DERIVE
|
|||||||
multigraph solr_{core}_{cacheType}_size
|
multigraph solr_{core}_{cacheType}_size
|
||||||
graph_title Solr {core} {cacheName} Size
|
graph_title Solr {core} {cacheName} Size
|
||||||
graph_args -l 0
|
graph_args -l 0
|
||||||
graph_category solr
|
graph_category search
|
||||||
graph_vlabel Size
|
graph_vlabel Size
|
||||||
size.label Size
|
size.label Size
|
||||||
size.draw LINE2
|
size.draw LINE2
|
||||||
@ -269,7 +269,7 @@ QPSMAIN_GRAPH_TPL = """graph_title Solr {core} {handler} Request per second
|
|||||||
graph_args --base 1000 -r --lower-limit 0
|
graph_args --base 1000 -r --lower-limit 0
|
||||||
graph_scale no
|
graph_scale no
|
||||||
graph_vlabel request / second
|
graph_vlabel request / second
|
||||||
graph_category solr
|
graph_category search
|
||||||
graph_period second
|
graph_period second
|
||||||
graph_order {gorder}
|
graph_order {gorder}
|
||||||
{cores_qps_graphs}"""
|
{cores_qps_graphs}"""
|
||||||
@ -284,7 +284,7 @@ REQUESTTIMES_GRAPH_TPL = """multigraph {core}_requesttimes
|
|||||||
graph_title Solr {core} {handler} Time per request
|
graph_title Solr {core} {handler} Time per request
|
||||||
graph_args -l 0
|
graph_args -l 0
|
||||||
graph_vlabel millis
|
graph_vlabel millis
|
||||||
graph_category solr
|
graph_category search
|
||||||
savgtimeperrequest_{core}.label {core} Avg time per request
|
savgtimeperrequest_{core}.label {core} Avg time per request
|
||||||
savgtimeperrequest_{core}.type GAUGE
|
savgtimeperrequest_{core}.type GAUGE
|
||||||
savgtimeperrequest_{core}.graph yes
|
savgtimeperrequest_{core}.graph yes
|
||||||
@ -299,12 +299,12 @@ s99thpcrequesttime_{core}.graph yes
|
|||||||
NUMDOCS_GRAPH_TPL = """graph_title Solr Docs %s
|
NUMDOCS_GRAPH_TPL = """graph_title Solr Docs %s
|
||||||
graph_vlabel docs
|
graph_vlabel docs
|
||||||
docs.label Docs
|
docs.label Docs
|
||||||
graph_category solr"""
|
graph_category search"""
|
||||||
|
|
||||||
INDEXSIZE_GRAPH_TPL = """graph_args --base 1024 -l 0
|
INDEXSIZE_GRAPH_TPL = """graph_args --base 1024 -l 0
|
||||||
graph_vlabel Bytes
|
graph_vlabel Bytes
|
||||||
graph_title Index Size
|
graph_title Index Size
|
||||||
graph_category solr
|
graph_category search
|
||||||
graph_info Solr Index Size.
|
graph_info Solr Index Size.
|
||||||
graph_order {cores}
|
graph_order {cores}
|
||||||
{cores_config}
|
{cores_config}
|
||||||
@ -318,7 +318,7 @@ INDEXSIZECORE_GRAPH_TPL = """{core}.label {core}
|
|||||||
MEMORYUSAGE_GRAPH_TPL = """graph_args --base 1024 -l 0 --upper-limit {availableram}
|
MEMORYUSAGE_GRAPH_TPL = """graph_args --base 1024 -l 0 --upper-limit {availableram}
|
||||||
graph_vlabel Bytes
|
graph_vlabel Bytes
|
||||||
graph_title Solr memory usage
|
graph_title Solr memory usage
|
||||||
graph_category solr
|
graph_category search
|
||||||
graph_info Solr Memory Usage.
|
graph_info Solr Memory Usage.
|
||||||
used.label Used
|
used.label Used
|
||||||
max.label Max
|
max.label Max
|
||||||
|
@ -158,7 +158,7 @@ if len(sys.argv) > 1:
|
|||||||
print 'graph_title %s' % ( PLUGINOPTIONSLIST[params['valueName']]['label'] )
|
print 'graph_title %s' % ( PLUGINOPTIONSLIST[params['valueName']]['label'] )
|
||||||
print "graph_args --base 1000";
|
print "graph_args --base 1000";
|
||||||
print 'graph_vlabel Size %s' % params['valueName']
|
print 'graph_vlabel Size %s' % params['valueName']
|
||||||
print 'graph_category Solr'
|
print 'graph_category search'
|
||||||
print 'graph_info Info for cores: %s' % ( ",".join(params['cores']) )
|
print 'graph_info Info for cores: %s' % ( ",".join(params['cores']) )
|
||||||
|
|
||||||
# Iterations for core datas
|
# Iterations for core datas
|
||||||
|
@ -170,7 +170,7 @@ try
|
|||||||
{
|
{
|
||||||
echo "graph_args --base 1024 -l 0\n";
|
echo "graph_args --base 1024 -l 0\n";
|
||||||
}
|
}
|
||||||
echo "graph_category Solr $core\n";
|
echo "graph_category search $core\n";
|
||||||
echo "graph_title $item $property\n";
|
echo "graph_title $item $property\n";
|
||||||
echo "graph_vlabel $property\n";
|
echo "graph_vlabel $property\n";
|
||||||
if ($core !== null)
|
if ($core !== null)
|
||||||
|
Loading…
Reference in New Issue
Block a user