Skip to content

Commit

Permalink
Document usage of multiple collector config files
Browse files Browse the repository at this point in the history
Signed-off-by: Swapnil Kulkarni <[email protected]>
  • Loading branch information
meswapnilk committed Jan 17, 2025
1 parent bd801c6 commit 092d650
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions content/en/docs/collector/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ otelcol --config=env:MY_CONFIG_IN_AN_ENVVAR --config=https://server/config.yaml
otelcol --config="yaml:exporters::debug::verbosity: normal"
```

You can also provide multiple configurations using multiple files at different
paths. Each file can be a full/partial configuration and reference components from
each other. For simplicity, if the merge of files does not constitute a complete
configuration user will get an error since the defaults are not added by default.
For example:

```shell
otelcol --cofig=file:/path/to/first/file --config=file:/path/to/second/file
```


{{% alert title="Tip" color="primary" %}}

When referring to nested keys in YAML paths, make sure to use double colons (::)
Expand Down

0 comments on commit 092d650

Please sign in to comment.