-
Notifications
You must be signed in to change notification settings - Fork 68
Description
Hello!
I am experiencing an error when trying to monitor a PgBouncer instance with pgwatch3, targeting a specific pool rather than the special pgbouncer database.
My setup:
-
pgwatch3 version: 3.6.0
-
PgBouncer version: 1.24.1
-
Connection string:
postgresql://pgbouncer:[email protected]:6432/docs -
dbtype: pgbouncer
-
preset_config: pgbouncer
Here is the row from my pgwatch.source table:
name | pgbouncer-docs
connstr | postgresql://pgbouncer:[email protected]:6432/docs
is_superuser | f
preset_config| pgbouncer
dbtype | pgbouncer
is_enabled | t
group | default
Problem:
When pgwatch3 tries to connect, I get repeated errors like this in the logs:
[ERROR] [sql:SHOW VERSION] [args:[]] [err:ERROR: unrecognized configuration parameter "version" (SQLSTATE 42704)]
After that, it retries but fails continuously.
What I expect
I expect that monitoring a specific pool (e.g. docs) would either work for PgBouncer stats or, if unsupported, give a clear validation or message.
What I tested
Monitoring via .../pgbouncer (the special database name) works fine.
Monitoring via a specific pool fails with the error above.
Questions
Is it expected that specifying a pool name in the connection string should work for PgBouncer monitoring?
Is this an issue in pgwatch3 or an unsupported scenario?
Is there a workaround to monitor just a specific pool with pgwatch3?
How to reproduce
Just add a source connection with dbtype=pgbouncer and preset_config=pgbouncer, and a connection string pointing to an actual pool rather than pgbouncer.
Thank you for your help!