Note: This feature is only available in Loki 2.1+.
You can use environment variable references in the configuration file to set values that need to be configurable during deployment. To do this, pass
Where VAR is the name of the environment variable.
Each variable reference is replaced at startup by the value of the environment variable. The replacement is case-sensitive and occurs before the YAML file is parsed. References to undefined variables are replaced by empty strings unless you specify a default value or custom error text.
To specify a default value, use:
Where default_value is the value to use if the environment variable is undefined.
-config.expand-envflag at the command line to enable this way of setting configs.
I don’t quite understand what this means, can we use the following configuration to give an example?