Skip to content

Commit 3b0edc0

Browse files
committed
Document usage of multiple collector config files
Closes #5296 Signed-off-by: Swapnil Kulkarni <[email protected]>
1 parent 4405988 commit 3b0edc0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

content/en/docs/collector/configuration.md

+11
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ example:
3131
otelcol --config=customconfig.yaml
3232
```
3333

34+
You can also provide multiple configurations using multiple files at different
35+
paths. Each file can be a full or partial configuration, and the files can
36+
reference components from each other. If the merger of files does not constitute
37+
a complete configuration, the user receives an error since required components
38+
are not added by default. Pass in multiple file paths at the command line as
39+
follows:
40+
41+
```shell
42+
otelcol --cofig=file:/path/to/first/file --config=file:/path/to/second/file
43+
```
44+
3445
You can also provide configurations using environment variables, HTTP URIs, or
3546
YAML paths. For example:
3647

0 commit comments

Comments
 (0)