Skip to content

Commit

Permalink
doc - enable environment variable in configuration (#3385)
Browse files Browse the repository at this point in the history
Environment variable in configuration works only if promtail is started with `-config.expand-env=true` option.
Should we add `Note: This feature is only available in Loki 2.1+.` too?
  • Loading branch information
paaacman authored Feb 26, 2021
1 parent 55b91fc commit 93f1966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sources/clients/promtail/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ from scraped targets, see [Pipelines](../pipelines/).
### Use environment variables in the configuration

You can use environment variable references in the configuration file to set values that need to be configurable during deployment.
To do this, use:
To do this, pass `-config.expand-env=true` and use:

```
${VAR}
Expand Down

0 comments on commit 93f1966

Please sign in to comment.