mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-09-19 00:53:19 +00:00
Category Tree: reduce number of categories
This commit is contained in:
parent
abd4092268
commit
29bdf34eae
29 changed files with 44 additions and 44 deletions
|
@ -66,7 +66,7 @@ if (exists $ARGV[0]) {
|
|||
print "graph_title PostgresSQL active connections\n";
|
||||
print "graph_args -l 0 --base 1000\n";
|
||||
print "graph_vlabel Connections\n";
|
||||
print "graph_category Postgresql\n";
|
||||
print "graph_category db\n";
|
||||
print "graph_info Shows active Postgresql connections from $dbname\n";
|
||||
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ if (defined($ARGV[0]))
|
|||
print "graph_args --base 1000\n"; # numbers not bytes
|
||||
print "graph_vlabel Average connections\n";
|
||||
print "graph_scale no\n"; # so we do not print "micro, milli, kilo, etc"
|
||||
print "graph_category pgbouncer\n";
|
||||
print "graph_category db\n";
|
||||
print $pool_name."_avg_req.type GAUGE\n";
|
||||
print $pool_name."_avg_req.label Avg Req\n";
|
||||
print $pool_name."_avg_req.min 0\n";
|
||||
|
@ -74,7 +74,7 @@ if (defined($ARGV[0]))
|
|||
print "graph_title PgBouncer $plugin_title average query time\n";
|
||||
print "graph_args --base 1000\n"; # numbers not bytes
|
||||
print "graph_vlabel Average time per query (microseconds)\n";
|
||||
print "graph_category pgbouncer\n";
|
||||
print "graph_category db\n";
|
||||
print $pool_name."_avg_query.type GAUGE\n";
|
||||
print $pool_name."_avg_query.label Avg Time\n";
|
||||
print $pool_name."_avg_query.min 0\n";
|
||||
|
@ -84,7 +84,7 @@ if (defined($ARGV[0]))
|
|||
print "graph_title PgBouncer $plugin_title average bytes received/sent\n";
|
||||
print "graph_args --base 1024\n"; # numbers in bytes
|
||||
print "graph_vlabel Average bytes received (-)/sent (+)\n";
|
||||
print "graph_category pgbouncer\n";
|
||||
print "graph_category db\n";
|
||||
# bytes received
|
||||
print $pool_name."_avg_recv.type GAUGE\n";
|
||||
print $pool_name."_avg_recv.label Avg received\n";
|
||||
|
@ -100,7 +100,7 @@ if (defined($ARGV[0]))
|
|||
# pools: server (sv_)
|
||||
print "multigraph ".$plugin_name."_pools_server\n";
|
||||
print "graph_title PgBouncer $plugin_title servers\n";
|
||||
print "graph_category pgbouncer\n";
|
||||
print "graph_category db\n";
|
||||
print "graph_args --base 1000\n"; # numbers not bytes
|
||||
print "graph_vlabel Server connections\n";
|
||||
print "graph_scale no\n";
|
||||
|
@ -132,7 +132,7 @@ if (defined($ARGV[0]))
|
|||
# pools: client (cl_)
|
||||
print "multigraph ".$plugin_name."_pools_client\n";
|
||||
print "graph_title PgBouncer $plugin_title clients\n";
|
||||
print "graph_category pgbouncer\n";
|
||||
print "graph_category db\n";
|
||||
print "graph_args --base 1000\n"; # numbers not bytes
|
||||
print "graph_vlabel Client connections\n";
|
||||
print "graph_scale no\n";
|
||||
|
@ -151,7 +151,7 @@ if (defined($ARGV[0]))
|
|||
print "graph_title PgBouncer $plugin_title maximum waiting time\n";
|
||||
print "graph_args --base 1000\n"; # numbers not bytes
|
||||
print "graph_vlabel Maximum wait time (seconds)\n";
|
||||
print "graph_category pgbouncer\n";
|
||||
print "graph_category db\n";
|
||||
print $pool_name."_maxwait.type GAUGE\n";
|
||||
print $pool_name."_maxwait.label Wait Time\n";
|
||||
print $pool_name."_maxwait.min 0\n";
|
||||
|
|
|
@ -26,7 +26,7 @@ cmd="psql ${dbserver} -U ${dbuser} -p ${port} pgbouncer -tc 'SHOW POOLS;' | grep
|
|||
|
||||
if [ "$1" = "config" ]; then
|
||||
echo 'graph_args --lower-limit 0'
|
||||
echo 'graph_category pgbouncer'
|
||||
echo 'graph_category db'
|
||||
echo 'graph_info The sum of the active and waiting clients for each pool on the server.'
|
||||
echo 'graph_scale no'
|
||||
echo 'graph_title PgBouncer Pool Total Client Connections'
|
||||
|
|
|
@ -26,7 +26,7 @@ cmd="psql ${dbserver} -U ${dbuser} -p ${port} pgbouncer -tc 'SHOW POOLS;' | grep
|
|||
|
||||
if [ "$1" = "config" ]; then
|
||||
echo 'graph_args --lower-limit 0'
|
||||
echo 'graph_category pgbouncer'
|
||||
echo 'graph_category db'
|
||||
echo 'graph_info PgBouncer Pool Maximum Wait'
|
||||
echo 'graph_scale no'
|
||||
echo 'graph_title PgBouncer Pool Maximum Wait'
|
||||
|
|
|
@ -26,7 +26,7 @@ cmd="psql ${dbserver} -U ${dbuser} -p ${port} pgbouncer -tc 'SHOW POOLS;' | grep
|
|||
|
||||
if [ "$1" = "config" ]; then
|
||||
echo 'graph_args --lower-limit 0'
|
||||
echo 'graph_category pgbouncer'
|
||||
echo 'graph_category db'
|
||||
echo 'graph_info The sum of the active and idle server connections for each pool on the server.'
|
||||
echo 'graph_scale no'
|
||||
echo 'graph_title PgBouncer Pool Total Server Connections'
|
||||
|
|
|
@ -128,7 +128,7 @@ if ($configure) {
|
|||
graph_title Postgres data reads from $dbname
|
||||
graph_args --base 1000
|
||||
graph_vlabel Blocks read per \${graph_period}
|
||||
graph_category Postgresql
|
||||
graph_category db
|
||||
graph_info Shows number of blocks read from disk and from memory
|
||||
from_disk.label Read from disk
|
||||
from_disk.info Read from disk
|
||||
|
|
|
@ -12,7 +12,7 @@ if ($ARGV[0] && $ARGV[0] eq "config") {
|
|||
graph_title Postgres locks
|
||||
graph_args -l 0 --base 1000
|
||||
graph_vlabel Locks
|
||||
graph_category Postgresql
|
||||
graph_category db
|
||||
graph_info Shows Postgresql locks
|
||||
locks.label Locks
|
||||
locks.info Locks (more info here, please... :)
|
||||
|
|
|
@ -14,7 +14,7 @@ cat << EOF
|
|||
graph_title Postgres queries2 on $db
|
||||
graph_args --base 1000
|
||||
graph_vlabel Queries per \${graph_period}
|
||||
graph_category PostgreSQL
|
||||
graph_category db
|
||||
graph_info Shows number of select, insert, update and delete queries
|
||||
sel_seq.label s_selects
|
||||
sel_seq.info Sequential selects on all tables
|
||||
|
|
|
@ -60,7 +60,7 @@ if( defined $ARGV[0] and $ARGV[0] eq "config" ){
|
|||
print qq/graph_title Postgres All Queries
|
||||
graph_args --base 1000 -l 0 -r
|
||||
graph_vlabel Queries per \${graph_period}
|
||||
graph_category PostgreSQL
|
||||
graph_category db
|
||||
graph_info Shows number of select, insert, update and delete queries
|
||||
sel_seq.label s_selects
|
||||
sel_seq.info Sequential selects on all tables
|
||||
|
|
|
@ -80,7 +80,7 @@ if ($configure) {
|
|||
graph_title Postgres database $dbname
|
||||
graph_args -l 0 --base 1024
|
||||
graph_vlabel bytes
|
||||
graph_category Postgresql
|
||||
graph_category db
|
||||
graph_info Size
|
||||
size.label Database size (bytes)
|
||||
size.info Database size
|
||||
|
|
|
@ -33,7 +33,7 @@ if [ "$1" = "config" ]; then
|
|||
warning=$(((maximum-reserved)*70/100))
|
||||
critical=$(((maximum-reserved)*90/100))
|
||||
echo 'graph_args --base 1000 --lower-limit 0 --upper-limit '${maximum}
|
||||
echo 'graph_category Postgresql'
|
||||
echo 'graph_category db'
|
||||
echo 'graph_info Shows open backends on the PostgreSQL Server.'
|
||||
echo 'graph_scale no'
|
||||
echo 'graph_title PostgreSQL Active Backends'
|
||||
|
|
|
@ -34,7 +34,7 @@ if [ "$1" = "config" ]; then
|
|||
critical=$(((maximum-reserved)*90/100))
|
||||
|
||||
echo 'graph_args --base 1000 --lower-limit 0' # --upper-limit '${maximum}
|
||||
echo 'graph_category Postgresql'
|
||||
echo 'graph_category db'
|
||||
echo 'graph_info Shows open backends for each database on the server'
|
||||
echo 'graph_scale no'
|
||||
echo 'graph_title PostgreSQL Active Backends By Database'
|
||||
|
|
|
@ -31,7 +31,7 @@ modes="AccessExclusive AccessShare Exclusive RowExclusive RowShare Share ShareRo
|
|||
|
||||
if [ "$1" = "config" ]; then
|
||||
echo 'graph_args --lower-limit 0'
|
||||
echo 'graph_category Postgresql'
|
||||
echo 'graph_category db'
|
||||
echo 'graph_info Shows active locks on database server.'
|
||||
echo 'graph_scale no'
|
||||
echo 'graph_title PostgreSQL Active Locks'
|
||||
|
|
|
@ -27,7 +27,7 @@ dbuser='postgres'
|
|||
|
||||
if [ "$1" = "config" ]; then
|
||||
echo 'graph_args --base 1000 --lower-limit 0 --upper-limit 100'
|
||||
echo 'graph_category Postgresql'
|
||||
echo 'graph_category db'
|
||||
echo 'graph_info Shows each database read/hit (%) on the PostgreSQL Server.'
|
||||
echo 'graph_scale no'
|
||||
echo 'graph_title PostgreSQL Database Hit/Read Ratios'
|
||||
|
|
|
@ -27,7 +27,7 @@ dbuser='postgres'
|
|||
|
||||
if [ "$1" = "config" ]; then
|
||||
echo 'graph_args --base 1024 --lower-limit 0'
|
||||
echo 'graph_category Postgresql'
|
||||
echo 'graph_category db'
|
||||
echo 'graph_info Shows each database size on the PostgreSQL Server.'
|
||||
echo 'graph_title PostgreSQL Database Sizes'
|
||||
echo 'graph_vlabel Size (bytes)'
|
||||
|
|
|
@ -26,7 +26,7 @@ dbuser='postgres'
|
|||
|
||||
if [ "$1" = "config" ]; then
|
||||
echo 'graph_args --base 1024 --lower-limit 0'
|
||||
echo 'graph_category Postgresql'
|
||||
echo 'graph_category db'
|
||||
echo 'graph_info Shows each tablespace size on the PostgreSQL Server.'
|
||||
echo 'graph_title PostgreSQL Tablespace Sizes'
|
||||
echo 'graph_vlabel Size (bytes)'
|
||||
|
|
|
@ -26,7 +26,7 @@ dbuser='postgres'
|
|||
|
||||
if [ "$1" = "config" ]; then
|
||||
echo 'graph_args --base 1000 --lower-limit 0'
|
||||
echo 'graph_category Postgresql'
|
||||
echo 'graph_category db'
|
||||
echo 'graph_info Shows summarized commits and rollbacks in transactions on the PostgreSQL Server.'
|
||||
echo 'graph_title PostgreSQL Transactions'
|
||||
echo 'graph_vlabel Number of Commits and Rollbacks'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue