Skip to content

Global query (SELECT version();) is being executed per datname #528

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

Open
adivinho opened this issue Apr 30, 2021 · 0 comments
Open

Global query (SELECT version();) is being executed per datname #528

adivinho opened this issue Apr 30, 2021 · 0 comments

Comments

@adivinho
Copy link

What did you do?
Exporter is run with the discover the databases flag

What did you expect to see?
The query would be run only once for the database postgres

What did you see instead? Under which circumstances?
The query is run for each discovered database
Screenshot_20210430_190419

Environment

  • System information:
    Linux 4.14.209-160.339.amzn2.x86_64 x86_64

  • postgres_exporter version:
    postgres_exporter 0.0.1-rev (built with go1.15.8)

  • postgres_exporter flags:

--auto-discover-databases 
--exclude-databases=template0,template1,postgres
  • PostgresSQL version:
    12.6.0

Screenshot_20210430_190438

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

1 participant