Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest version requires pgpool >= v4.2 #6

Closed
reoops opened this issue Jun 7, 2021 · 3 comments
Closed

Latest version requires pgpool >= v4.2 #6

reoops opened this issue Jun 7, 2021 · 3 comments

Comments

@reoops
Copy link

reoops commented Jun 7, 2021

README.md states that pgpool >= v3.6 is required. Seems to require pgpool >= v4.2.

After building and starting I got back following error message (and yes I access pgpool2 not postgresql directly):

pgpool --version
pgpool-II version 4.1.4 (karasukiboshi)

DATA_SOURCE_NAME="postgresql://user:passs@host/postgres?sslmode=disable" ./pgpool2_exporter 
INFO[0000] Error running query on database:  pool_backend_stats pq: unrecognized configuration parameter "pool_backend_stats"  source="pgpool2_exporter.go:451"
INFO[0000] Error running query on database:  pool_health_check_stats pq: unrecognized configuration parameter "pool_health_check_stats"  source="pgpool2_exporter.go:451"
FATA[0000] map[pool_backend_stats:Error running query on database:  pool_backend_stats pq: unrecognized configuration parameter "pool_backend_stats"
 pool_health_check_stats:Error running query on database:  pool_health_check_stats pq: unrecognized configuration parameter "pool_health_check_stats"
]  source="pgpool2_exporter.go:543"

Here the workaround for older versions:

git checkout d1a6e457a8abbdd62b8601e59d9180b8a00e10bb
go mod tidy
go mod vendor
make

Please detect version or at least update the README.

@pengbo0328
Copy link
Collaborator

Thank you for reporting this issue.

I am going to fix this issue to support old versions (e.g. 4.1.x).

@pengbo0328
Copy link
Collaborator

I have fixed this issue.
Now Pgpool-II exporter is able to detect Pgpool-II version.

commit

@reoops
Copy link
Author

reoops commented Jun 15, 2021

Thank you very much. Works like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants