1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Category Tree: Reduce number of categories

This commit is contained in:
dipohl 2017-02-21 17:11:23 +01:00
parent d5440def19
commit 3c98d06933
19 changed files with 25 additions and 25 deletions

View file

@ -57,7 +57,7 @@ if ( exists $ARGV[0] and $ARGV[0] eq "autoconf" ) {
if ( exists $ARGV[0] and $ARGV[0] eq "config" ) {
print "graph_title NGINX hit rates\n";
print "graph_args -l 0 -u 100 --rigid\n";
print "graph_category nginx\n";
print "graph_category webserver\n";
print "graph_vlabel %\n";
print "hit.label Hits\n";
print "hit.draw AREA\n";

View file

@ -64,7 +64,7 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config":
# Parent graph declaration
print "multigraph nginx_cache_multi_%s" % graph_type
print "graph_title Nginx cache status (%s)" % graph_type
print "graph_category nginx"
print "graph_category webserver"
print "graph_vlabel %s" % vlabel
if graph_args:
print(graph_args)
@ -80,7 +80,7 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config":
if key != "TOTAL":
print "multigraph nginx_cache_multi_%s.%s" % (graph_type, key.lower())
print "graph_title Nginx cache status (%s) - %s" % (graph_type, key.capitalize())
print "graph_category nginx"
print "graph_category webserver"
print "graph_vlabel %s" % vlabel
print "%s.label %s" % (key.lower(), key.capitalize())
print "%s.draw LINE1" % key.lower()

View file

@ -70,7 +70,7 @@ if ( exists $ARGV[0] and $ARGV[0] eq "config" )
{
print "graph_title NGINX status: $URL\n";
print "graph_args --base 1000\n";
print "graph_category nginx\n";
print "graph_category webserver\n";
print "graph_vlabel Connections\n";
print "reqpsec.label Request/sec.\n";

View file

@ -132,7 +132,7 @@ if (exists $ARGV[0] and $ARGV[0] eq "autoconf" ) {
## Munin config method.
if (exists $ARGV[0] and $ARGV[0] eq "config") {
print "graph_title nginx requests/connection handled\n";
print "graph_category nginx\n";
print "graph_category webserver\n";
print "graph_vlabel Request/Connection\n";
print "connection_request.label requests/connection\n";
print "connection_request.min 0\n";

View file

@ -111,7 +111,7 @@ do_ () { # Fetch
do_config () {
echo "graph_title $logpattern - Nginx errors per minute"
echo 'graph_vlabel pages with http error codes / ${graph_period}'
echo "graph_category nginx"
echo "graph_category webserver"
echo "graph_period minute"
echo "graph_info This graph shows nginx error amount per minute"
for k in ${!http_codes[@]}; do

View file

@ -75,7 +75,7 @@ MIT
if (exists $ARGV[0] and $ARGV[0] eq "config") {
print "graph_title nginx RAM usage\n";
print "graph_vlabel RAM\n";
print "graph_category nginx\n";
print "graph_category webserver\n";
print "ram.label RAM\n";
print "graph_args --base 1024\n";

View file

@ -18,7 +18,7 @@ if len(sys.argv) > 1:
if sys.argv[1]=="config":
print "graph_args --base 1000 -l 0"
print "graph_title NGINX Upstream times"
print "graph_category nginx"
print "graph_category webserver"
print "graph_vlabel milliseconds"
print "upstream.label upstream"
print "upstream.warning 5000"

View file

@ -133,7 +133,7 @@ if len(sys.argv) == 2 and sys.argv[1] == "config":
print "multigraph nginx_upstream_multi_%s" % siteName.replace(".", "_")
print "graph_title Requests number"
print "graph_vlabel rps"
print "graph_category nginx"
print "graph_category webserver"
for upstream in upstreams.keys():
print "us%s_requests.label %s" % (sanitize(upstream), upstream)
@ -144,7 +144,7 @@ if len(sys.argv) == 2 and sys.argv[1] == "config":
print "multigraph nginx_upstream_multi_%s.%s_requests" % (sanitize(siteName), sanitize(upstream))
print "graph_title Requests number - %s" % upstream
print "graph_vlabel rps"
print "graph_category nginx"
print "graph_category webserver"
print "us%s_requests.label %s" % (sanitize(upstream), upstream)
print ""
@ -155,7 +155,7 @@ if len(sys.argv) == 2 and sys.argv[1] == "config":
print "multigraph nginx_upstream_multi_%s.%s_times" % (sanitize(siteName), sanitize(upstream))
print "graph_title Request time - %s" % upstream
print "graph_vlabel sec."
print "graph_category nginx"
print "graph_category webserver"
print "us%s_times.label average" % (sanitize(upstream))
for percentile in percentiles:
print "us%s_times_percentile_%s.label %s-percentile" % (sanitize(upstream), percentile, percentile)
@ -168,7 +168,7 @@ if len(sys.argv) == 2 and sys.argv[1] == "config":
print "multigraph nginx_upstream_multi_%s.%s_statuses" % (sanitize(siteName), sanitize(upstream))
print "graph_title HTTP - %s" % upstream
print "graph_vlabel rps"
print "graph_category nginx"
print "graph_category webserver"
keylist = httpStatusList.keys()
keylist.sort()
for status in keylist:
@ -182,7 +182,7 @@ if len(sys.argv) == 2 and sys.argv[1] == "config":
print "multigraph nginx_upstream_multi_%s.%s_cache" % (sanitize(siteName), sanitize(upstream))
print "graph_title Cache - %s" % upstream
print "graph_vlabel rps"
print "graph_category nginx"
print "graph_category webserver"
for status in cacheStatusList:
print "us%s_%s_cache.label %s" % (sanitize(status), sanitize(upstream), status)
print ""

View file

@ -45,7 +45,7 @@ case $1 in
echo 'graph_title Nginx Virtual host traffic'
echo 'graph_vlabel bits out / ${graph_period}'
echo 'graph_args --base 1000 -l 0'
echo 'graph_category Nginx'
echo 'graph_category webserver'
i=0
for vhost in $VHOSTS

View file

@ -12,7 +12,7 @@ config)
cat <<'EOF'
graph_title NGINX Working Set
graph_vlabel WS Bytes
graph_category nginx
graph_category webserver
graph_args --base 1024
ws.label Working Set
EOF