Skip to content

Credential replacement #591

Closed Answered by burningalchemist
dinu111 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dinu111, data_source_name is a required field in the configuration so far. We might improve it later so it can be removed completely. The issue with that is lack of visibility, sometimes it's a little bit difficult to identify the configuration.

But overall, you can provide any DSN string like (e.g. oracle://db_host/db_name) and then use SQL_EXPORTER_TARGET_DSN to override it with the password etc. The overridden value will have higher priority over the config file.

Alternative option is that you provide your own arbitrary env variable(s) in the DSN string like oracle://$DB_USER:$DB_PASSWORD@db-host/db-name/ and populate these env variables. The exporter will scan and expand them if t…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by burningalchemist
Comment options

You must be logged in to vote
1 reply
@burningalchemist
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants