Skip to content

Commit

Permalink
Move the new doc section
Browse files Browse the repository at this point in the history
Signed-off-by: Swapnil Kulkarni <[email protected]>
  • Loading branch information
swapnil-kfuse committed Jan 18, 2025
1 parent 3ec6a76 commit c51bfbc
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions content/en/docs/collector/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,23 @@ example:
otelcol --config=customconfig.yaml
```

You can also provide multiple configurations using multiple files at different
paths. Each file can be a full or partial configuration, and the files can
reference components from each other. If the merger of files does not constitute
a complete configuration, the user receives an error since required components
are not added by default. Pass in multiple file paths at the command line as
follows:

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

You can also provide configurations using environment variables, HTTP URIs, or
YAML paths. For example:

```shell
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 or partial configuration, and the files can reference components
from each other. If the merger of files does not constitute a
complete configuration, the user receives an error since required components are not added
by default. Pass in multiple file paths at the command line as follows:

```shell
otelcol --config=file:/path/to/first/file --config=file:/path/to/second/file
````
{{% alert title="Tip" color="primary" %}}
Expand Down

0 comments on commit c51bfbc

Please sign in to comment.