Category Tree: reduce number of categories
This commit is contained in:
parent
29bdf34eae
commit
a3c2338b1f
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue