Category Tree: reduce number of categories

This commit is contained in:
dipohl 2017-02-22 03:29:26 +01:00
parent 29bdf34eae
commit a3c2338b1f
34 changed files with 34 additions and 34 deletions

View File

@ -14,7 +14,7 @@ my $temp;
sub display{
if ($ARGV[0] and $ARGV[0] eq "config"){
print "graph_title DRBD\n";
print "graph_category DRBD\n";
print "graph_category disk\n";
print "graph_info Graph DRBD\n";
print "graph_vlabel Bytes per \${graph_period} read (-) / written (+)\n";
print "graph_args --base 1024 --lower-limit 0\n";

View File

@ -15,7 +15,7 @@ my $temp;
sub display{
if ($ARGV[0] and $ARGV[0] eq "config"){
print "graph_title DRBD\n";
print "graph_category DRBD\n";
print "graph_category disk\n";
print "graph_info Graph DRBD\n";
print "graph_vlabel Graph DRBD\n";
#print "graph_scale no\n";

View File

@ -27,7 +27,7 @@ if (defined $ARGV[0] and $ARGV[0] eq 'config') {
print "graph_title Gearman queue\n";
print "graph_args --base 1000\n";
print "graph_vlabel jobs\n";
print "graph_category Gearman\n";
print "graph_category other\n";
while ( my ($key, $value) = each(%$gearman) ) {
my $param = $key."_"."queue";
print "$param.type GAUGE\n";

View File

@ -30,7 +30,7 @@ graph_vlabel=${title}
case $1 in
config)
cat <<EOF
graph_category haproxy
graph_category loadbalancer
graph_args --base 1000
graph_title ${graph_title}
graph_vlabel ${graph_vlabel}

View File

@ -31,7 +31,7 @@ graph_vlabel=${title}
case $1 in
config)
cat <<EOF
graph_category haproxy
graph_category loadbalancer
graph_title ${graph_title}
graph_vlabel ${graph_vlabel}

View File

@ -30,7 +30,7 @@ graph_vlabel=${title}
case $1 in
config)
cat <<EOF
graph_category haproxy
graph_category loadbalancer
graph_title ${graph_title}
graph_vlabel ${graph_vlabel}

View File

@ -37,7 +37,7 @@ graph_vlabel=${title}
case $1 in
config)
cat <<EOF
graph_category haproxy
graph_category loadbalancer
graph_title ${graph_title}
graph_vlabel ${graph_vlabel}

View File

@ -31,7 +31,7 @@ graph_vlabel=${title}
case $1 in
config)
cat <<EOF
graph_category haproxy
graph_category loadbalancer
graph_title ${graph_title}
graph_vlabel ${graph_vlabel}

View File

@ -31,7 +31,7 @@ graph_vlabel=${title}
case $1 in
config)
cat <<EOF
graph_category haproxy
graph_category loadbalancer
graph_title ${graph_title}
graph_vlabel ${graph_vlabel}

View File

@ -32,7 +32,7 @@ graph_vlabel=${title}
case $1 in
config)
cat <<EOF
graph_category haproxy
graph_category loadbalancer
graph_title ${graph_title}
graph_vlabel ${graph_vlabel}

View File

@ -83,7 +83,7 @@ fi
if [ "$1" = "config" ]; then
echo "graph_category haproxy"
echo "graph_category loadbalancer"
echo "graph_title ${graph_title}"
echo "graph_vlabel ${graph_vlabel}"
#echo "graph_printf %.0f"

View File

@ -86,7 +86,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Aborts'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Aborts ${SVNAME}"

View File

@ -84,7 +84,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Servers'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Active Servers ${SVNAME}"
for i in ${LIST}; do

View File

@ -84,7 +84,7 @@ if [ "$1" = "config" ]; then
echo "graph_title Bytes ${SVNAME}"
echo 'graph_args --base 1000'
echo 'graph_vlabel Bytes in (-) / out (+)'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Bytes ${SVNAME}"

View File

@ -86,7 +86,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Bytes'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Bytes compressor ${SVNAME}"

View File

@ -86,7 +86,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Bytes'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Bytes compressor ${SVNAME}"

View File

@ -84,7 +84,7 @@ if [ "$1" = "config" ]; then
echo "graph_title Bytes ${SVNAME}"
echo 'graph_args --base 1000'
echo 'graph_vlabel Bytes in (-) / out (+)'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Bytes ${SVNAME}"

View File

@ -86,7 +86,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Requests and Responses'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Denied Requests / Responses ${SVNAME}"

View File

@ -86,7 +86,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Requests and Responses'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Denied Requests / Responses ${SVNAME}"

View File

@ -86,7 +86,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Errors'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Errors ${SVNAME}"

View File

@ -86,7 +86,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Errors'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Errors ${SVNAME}"

View File

@ -88,7 +88,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Queued'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Queue Requests ${SVNAME}"

View File

@ -86,7 +86,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Sessions'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Sessions per second ${SVNAME}"

View File

@ -87,7 +87,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Sessions'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Sessions per second ${SVNAME}"

View File

@ -86,7 +86,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Requests'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Request Rate ${SVNAME}"

View File

@ -86,7 +86,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Responses'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info HTTP responses that were compressed ${SVNAME}"

View File

@ -86,7 +86,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Responses'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info HTTP responses that were compressed ${SVNAME}"

View File

@ -85,7 +85,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Responses'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info HTTP Responses ${SVNAME}"
for i in ${LIST}; do

View File

@ -85,7 +85,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Responses'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info HTTP Responses ${SVNAME}"
for i in ${LIST}; do

View File

@ -87,7 +87,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Sessions'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Current sessions ${SVNAME}"

View File

@ -87,7 +87,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Sessions'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Current sessions ${SVNAME}"

View File

@ -86,7 +86,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Sessions'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Total sessions ${SVNAME}"

View File

@ -87,7 +87,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Sessions'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Total sessions ${SVNAME}"

View File

@ -86,7 +86,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Warnings'
echo 'graph_scale no'
echo 'graph_category haproxy'
echo 'graph_category loadbalancer'
echo "graph_info Warnings ${SVNAME}"