-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Feature/support pgbouncer #1400
Conversation
jsvisa
commented
Jun 22, 2016
•
edited
edited
- CHANGELOG.md updated
- README.md updated
0de78bd
to
5082598
Compare
what does this add that the regular postgres plugin isn't able to provide? |
closing for lack of updates |
@sparrc Sorry for the delay. Yes, the postgres plugin can provide the detail. For PgBouncer, all statistics are stored in one database, default as 'pgbouncer', and the backend databases' information are stored in it as regular records. See more from PgBouncer usage. For telegraf/postgresql.go at master · influxdata/telegraf, the command not applied, and for telegraf/postgresql_extensible.go at master · influxdata/telegraf, it always need |
what does that mean exactly? can you add "the command" to that plugin?
please also explain more, what do you mean that it always needs version information? why is pgbouncer not compatible with "version information"? |
Sorry for my rudeness. First of all, pgbouncer/pgbouncer: PgBouncer development is a
Pgbouncer always store the stat info inside it's own datebase, not in PostgreSQL's side. And in postgresql_extensible.go, we need to fetch the PostgreSQL's version first, then execute the specified query string, but the version query
is not available in the special administration database pgbouncer , which only support below commands:
So I think we need add the pgbouncer plugin along with postgresql and postgresql_extension. |
okay, fair enough, thanks for the clarification |
May I reopen this PR? |
yes, sorry, I meant to do that with the last comment |
5082598
to
82c719f
Compare
@sparrc thanks, rebased |
Can you explain why you've used your own docker image for the tests? From googling there appears to be some others that are more common/popular. I ask because I've had contributors add docker images that have gone defunct. |
Mine is based on alpine as base image, which is smaller(only 16MB), and seems the others use Ubuntu, which size almost is 98MB. |