From 00e36fb1192c42062c44f4b6555204623ead5638 Mon Sep 17 00:00:00 2001 From: Dan Stoner Date: Thu, 4 Nov 2021 15:12:46 -0400 Subject: [PATCH] add user to pgb pool output Since a pgBouncer pool is tied to a user+database pair, the previous output was less useful with large numbers of users in a single database. Adding the user to the output makes it clear which pool is associated with which value. --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index be5ccdb..0e710ec 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -6756,7 +6756,7 @@ sub check_pgb_pool { my $gotone = 0; for my $i (@$output) { next if skip_item($i->{database}); - my $msg = "$i->{database}=$i->{$stat}"; + my $msg = "$i->{user}\@$i->{database}=$i->{$stat}"; if ($MRTG) { $stats{$i->{database}} = $i->{$stat};