@@ -19,7 +19,9 @@ the following content:
19
19
## Location {#location}
20
20
21
21
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.
23
25
24
26
You can provide one or more configurations using the ` --config ` option. For
25
27
example:
@@ -876,26 +878,15 @@ You can override Collector settings using the `--set` option. The settings you
876
878
define with this method are merged into the final configuration after all
877
879
` --config` sources are resolved and merged.
878
880
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 :
880
882
881
883
` ` ` 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}"
899
890
` ` `
900
891
901
892
Note tha the `--set` option doesn't support setting a key that contains a dot or
0 commit comments