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

multiple pgbouncers #11

Closed
boyadzhievb opened this issue Oct 20, 2020 · 4 comments
Closed

multiple pgbouncers #11

boyadzhievb opened this issue Oct 20, 2020 · 4 comments

Comments

@boyadzhievb
Copy link

boyadzhievb commented Oct 20, 2020

Hello, how to use the exporter with many pgbouncer instances, so on a graphana to see more than one line on same graph? Something like a label per host.
Information is gathered through service URL and there is no info about the host, but if exporter is placed in a pod along with the pgbouncer, hostname can be acquired.

@boyadzhievb boyadzhievb changed the title multiple pgbouncer multiple pgbouncers Oct 20, 2020
@jbub
Copy link
Owner

jbub commented Oct 22, 2020

Hey @boyadzhievb, maybe i could add support for providing custom labels from command line, for example you would be able to send env var like DEFAULT_LABELS: instance=pgbouncer1 env=production and so on, and those labels would be added to all of the exported metrics. What do you think ?

@jbub
Copy link
Owner

jbub commented Oct 22, 2020

Okay implemented in v0.7.0.

@boyadzhievb
Copy link
Author

boyadzhievb commented Oct 22, 2020

Hello Juraj,
I did it myself. I've added pod hostname as label, but it seems that when prometheus start scraping from the service it doesn't scrape from different pods but only for first one. Maybe it is something in openshift. I know that the service is configured in round-robin but it does not work as I expected. Thank you anyway for your efforts..

@jbub
Copy link
Owner

jbub commented Oct 22, 2020

Glad you solved it!

@jbub jbub closed this as completed Oct 22, 2020
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