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

exporter failes if there is no db named like the user #1117

Open
pcace opened this issue Jan 16, 2025 · 0 comments
Open

exporter failes if there is no db named like the user #1117

pcace opened this issue Jan 16, 2025 · 0 comments

Comments

@pcace
Copy link

pcace commented Jan 16, 2025

Hi,

i am not sure if its a bug or a feature, but i cannot connect to a database where username is not the same as the database.
whenever i try to connect to my database with these env variables:

DATA_SOURCE_URI=database-17:5432?sslmode=disable
DATA_SOURCE_USER=USER
DATA_SOURCE_PASS=passwordforUSER

i get an error message from the database that the database USER is not available. (which makes sense, because it does not exist.
i tried to get around the problem by adding these env Variables, but without luck:

PG_EXPORTER_EXCLUDE_DATABASES=USER
PG_EXPORTER_INCLUDE_DATABASES=AcutalUSERDB

I hope someone can point me in the right direction.

thanks a lot!

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