Credential replacement #591
-
Hello, I have one short question to make sure I correctly understand the configuration. What im trying to do is avoid setting the connection string via the data_source_name in the helm templates like so From what I read and found this PR 430 this can be achieved if I set it as an env variable using My question is, if i use the above env variable then i wont need to set the data_source_name in the vaules.yaml at all and a configuration that is something like this for the config part should be enough:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @dinu111, But overall, you can provide any DSN string like (e.g. Alternative option is that you provide your own arbitrary env variable(s) in the DSN string like |
Beta Was this translation helpful? Give feedback.
-
Hi @burningalchemist , thank you for your fast response, so then this would mean i can set the
|
Beta Was this translation helpful? Give feedback.
-
That sounds great, thank you for the answer. This question can be closed. |
Beta Was this translation helpful? Give feedback.
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 useSQL_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…