Skip to content

Commit

Permalink
Merge branch 'issue#4'
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-aio committed May 22, 2014
2 parents c5790af + 0cb3b7f commit 50a4561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg_monz/userparameter_pgsql.conf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ UserParameter=psql.slow_dml_queries[*],psql -h $1 -p $2 -U $3 -d $4 -t -c "selec
# Database specific examples
#
# Get the size of a Database (in bytes)
UserParameter=psql.db_size[*],psql -h $1 -p $2 -U $3 -d $4 -t -c "select pg_database_size('$5')"
UserParameter=psql.db_size[*],psql -h $1 -p $2 -U $3 -d $4 -t -c "select pg_database_size('$5') from pg_database where datname = '$5'"
# Get number of active connections for a specified database
UserParameter=psql.db_connections[*],psql -h $1 -p $2 -U $3 -d $4 -t -c "select numbackends from pg_stat_database where datname = '$5'"
# Get number of tuples returned for a specified database
Expand Down

0 comments on commit 50a4561

Please sign in to comment.