Skip to content

Commit c2d1acf

Browse files
committed
Integrate feedback
1 parent b797582 commit c2d1acf

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

content/en/docs/collector/configuration.md

+10-19
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ the following content:
1919
## Location {#location}
2020

2121
By default, the Collector configuration is located in
22-
`/etc/otelcol/config.yaml`.
22+
`/etc/<otel-directory>/config.yaml`, where `<otel-directory>` can be `otelcol`,
23+
`otelcol-contrib`, or another value, depending on the Collector version or the
24+
Collector distribution you're using.
2325

2426
You can provide one or more configurations using the `--config` option. For
2527
example:
@@ -876,26 +878,15 @@ You can override Collector settings using the `--set` option. The settings you
876878
define with this method are merged into the final configuration after all
877879
`--config` sources are resolved and merged.
878880

879-
The following example shows how to override a setting using different syntax:
881+
The following examples show how to override settings inside nested sections:
880882

881883
```shell
882-
# Translates to
883-
# key: value
884-
otelcol --set key=value
885-
# Translates to
886-
# outer:
887-
# inner: value
888-
otelcol --set outer.inner=value
889-
# Translates to
890-
# key:
891-
# - a
892-
# - b
893-
# - c
894-
otelcol --set "key=[a, b, c]"
895-
# Translates to
896-
# key:
897-
# a: c
898-
otelcol --set "key={a: c}
884+
# The following example sets the verbosity
885+
# level of the debug exporter to 'detailed'
886+
otelcol --set "exporters::debug::verbosity=detailed"
887+
# The following example overrides gRPC
888+
# settings for the OTLP receiver
889+
otelcol --set "receivers::otlp::protocols::grpc={endpoint:localhost:4317, compression: gzip}"
899890
```
900891

901892
Note tha the `--set` option doesn't support setting a key that contains a dot or

0 commit comments

Comments
 (0)