You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: internal/pkg/otel/README.md
+9-5
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,19 @@ To run the Elastic Distribution for OpenTelemetry Collector you can use Elastic-
8
8
Running command
9
9
10
10
```bash
11
-
./elastic-agent -c otel.yml run
11
+
./elastic-agent otel --config otel.yml
12
12
```
13
13
14
-
from unpacked Elastic Agent package will run Elastic-Agent as an OpenTelemetry Collector. The `-c` flag needs to point to [OpenTelemetry Collector Configuration file](https://opentelemetry.io/docs/collector/configuration/) named `otel`, `otlp` or `otelcol`.
15
-
Both `yaml` and `yml` suffixes are supported.
14
+
from unpacked Elastic Agent package will run Elastic-Agent as an OpenTelemetry Collector. The `--config` flag needs to point to [OpenTelemetry Collector Configuration file](https://opentelemetry.io/docs/collector/configuration/). OTel mode is available only using `otel` subcommand. Elastic Agent will not do any autodetection of configuration file passed when used without `otel` subcommand and will try to run normally.
16
15
17
-
> In case this condition is not met, Elastic Agent will run in its default mode and will not behave as OpenTelemetry Collector.
18
16
19
-
Note that `validate` subcommand and [feature gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md#controlling-gates) are not supported yet.
17
+
To validate OTel configuration run `otel validate` subcommand:
18
+
19
+
```bash
20
+
./elastic-agent otel validate --config otel.yml
21
+
```
22
+
23
+
[feature gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md#controlling-gates) are supported using `--feature-gates` flag.
Copy file name to clipboardexpand all lines: internal/pkg/otel/templates/README.md.tmpl
+9-5
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,19 @@ To run the Elastic Distribution for OpenTelemetry Collector you can use Elastic-
8
8
Running command
9
9
10
10
```bash
11
-
./elastic-agent -c otel.yml run
11
+
./elastic-agent otel --config otel.yml
12
12
```
13
13
14
-
from unpacked Elastic Agent package will run Elastic-Agent as an OpenTelemetry Collector. The `-c` flag needs to point to [OpenTelemetry Collector Configuration file](https://opentelemetry.io/docs/collector/configuration/) named `otel`, `otlp` or `otelcol`.
15
-
Both `yaml` and `yml` suffixes are supported.
14
+
from unpacked Elastic Agent package will run Elastic-Agent as an OpenTelemetry Collector. The `--config` flag needs to point to [OpenTelemetry Collector Configuration file](https://opentelemetry.io/docs/collector/configuration/). OTel mode is available only using `otel` subcommand. Elastic Agent will not do any autodetection of configuration file passed when used without `otel` subcommand and will try to run normally.
16
15
17
-
> In case this condition is not met, Elastic Agent will run in its default mode and will not behave as OpenTelemetry Collector.
18
16
19
-
Note that `validate` subcommand and [feature gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md#controlling-gates) are not supported yet.
17
+
To validate OTel configuration run `otel validate` subcommand:
18
+
19
+
```bash
20
+
./elastic-agent otel validate --config otel.yml
21
+
```
22
+
23
+
[feature gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md#controlling-gates) are supported using `--feature-gates` flag.
0 commit comments