Skip to content

How to override config with env var on Windows? #9373

Closed Answered by pjanotti
cocowalla asked this question in Q&A
Discussion options

You must be logged in to vote

@cocowalla while searching other thing I found this discussion. I suppose that by now you already found the solution. For the record here is a suggestion on how to do it:

  • Create a REG_MULTI_SZ registry value named Environment under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<service-name-that-you-used-for-the-otel-collector>

On this multistring value each line represents an environment variable visible only to the specific service. The syntax of each line is the name of the environment variable followed by an =, everything after the sign until the end of the line is the value of the environment variable.

For example, for OTEL_AUTH add a line like:

OTEL_AUTH=<your-value-for-ote…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cocowalla
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