mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Fixing multiple typos and indentation
This commit is contained in:
parent
b32ff11c61
commit
96223fc7a5
1 changed files with 11 additions and 11 deletions
|
@ -1,13 +1,13 @@
|
||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
# re-write of python version of pgbouncer stats
|
# re-write of python version of pgbouncer stats
|
||||||
# data from stats, pools (cleint, server)
|
# data from stats, pools (client, server)
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use Munin::Plugin;
|
use Munin::Plugin;
|
||||||
use DBD::Pg;
|
use DBD::Pg;
|
||||||
|
|
||||||
# check that multigraph is avaailable
|
# check that multigraph is available
|
||||||
need_multigraph();
|
need_multigraph();
|
||||||
# get the script name
|
# get the script name
|
||||||
my $plugin_name = $Munin::Plugin::me;
|
my $plugin_name = $Munin::Plugin::me;
|
||||||
|
@ -172,7 +172,7 @@ foreach my $get ('pools', 'stats')
|
||||||
# first defines the pool
|
# first defines the pool
|
||||||
if ($data[0] eq $pool_name)
|
if ($data[0] eq $pool_name)
|
||||||
{
|
{
|
||||||
# print values for the stats: average reqeust, average query time, bytes in/out
|
# print values for the stats: average request, average query time, bytes in/out
|
||||||
if ($get eq 'stats')
|
if ($get eq 'stats')
|
||||||
{
|
{
|
||||||
print "multigraph ".$plugin_name."_".$get."_avg_req\n";
|
print "multigraph ".$plugin_name."_".$get."_avg_req\n";
|
||||||
|
@ -214,11 +214,11 @@ pgbouncer_ is a plugin to get the pool and stat values for a single pgbouncer po
|
||||||
|
|
||||||
=head1 APPLICATION
|
=head1 APPLICATION
|
||||||
|
|
||||||
perl and DBD::Pg is required, and pgbounce must been installed with a correct setup access for a stat account
|
perl and DBD::Pg is required, and pgbouncer must been installed with a correct setup access for a stat account
|
||||||
|
|
||||||
=head1 CONFIGURATION
|
=head1 CONFIGURATION
|
||||||
|
|
||||||
the plugin that will be run needs to have the pool name after the plguin base name.
|
the plugin that will be run needs to have the pool name after the plugin base name.
|
||||||
|
|
||||||
=head2 plugin configuration
|
=head2 plugin configuration
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ The plugin will output 5 graphs in the group pgbouncer
|
||||||
|
|
||||||
This graph will show the average bytes sent and received by the pgbouncer for this pool
|
This graph will show the average bytes sent and received by the pgbouncer for this pool
|
||||||
|
|
||||||
=head2 Avaerage connections
|
=head2 Average connections
|
||||||
|
|
||||||
This graph will show the average amount of connections to the pgbouncer for this pool
|
This graph will show the average amount of connections to the pgbouncer for this pool
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ This graph shows the server connections to pgbouncer for this pool. The followin
|
||||||
|
|
||||||
=head2 Max wait
|
=head2 Max wait
|
||||||
|
|
||||||
how long the oldest cllient the queue has waited, should be always 0
|
how long the oldest client the queue has waited, should be always 0
|
||||||
|
|
||||||
=head1 ACKNOWLEDGEMENTS
|
=head1 ACKNOWLEDGEMENTS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue