Skip to content

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

Open
@pcace

Description

@pcace

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions