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/templates/README.md.tmpl
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,12 @@ To validate OTel configuration run `otel validate` subcommand:
19
19
./elastic-agent otel validate --config otel.yml
20
20
```
21
21
22
+
Use the components command to get the list of components included in the binary:
23
+
24
+
```bash
25
+
./elastic-agent otel components
26
+
```
27
+
22
28
[feature gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md#controlling-gates) are supported using `--feature-gates` flag.
23
29
24
30
## Components
@@ -78,9 +84,9 @@ This section provides a summary of components included in the Elastic Distributi
78
84
79
85
## Persistence in OpenTelemetry Collector
80
86
81
-
By default, the OpenTelemetry Collector is stateless, which means it doesn't store offsets on disk while reading files. As a result, if you restart the collector, it won't retain the last read offset, potentially leading to data duplication or loss. However, we have configured persistence in the settings provided with the Elastic Agent package.
87
+
By default, the OpenTelemetry Collector is stateless, which means it doesn't store offsets on disk while reading files. As a result, if you restart the collector, it won't retain the last read offset, potentially leading to data duplication or loss. However, we have configured persistence in the settings provided with the Elastic Agent package.
82
88
83
-
To enable persistence for the `filelogreceiver`, we add the `file_storage` extension and activate it for `filelog`.
89
+
To enable persistence for the `filelogreceiver`, we add the `file_storage` extension and activate it for `filelog`.
84
90
Execute `export STATE_PATH=/path/to/store/otel/offsets` and use the following configuration to enable persistence:
85
91
86
92
```yaml
@@ -106,10 +112,10 @@ service:
106
112
exporters: [...]
107
113
```
108
114
109
-
> [!WARNING]
115
+
> [!WARNING]
110
116
Removing the storage key from the filelog section will disable persistence, which will lead to data duplication or loss when the collector restarts.
111
117
112
-
> [!IMPORTANT]
118
+
> [!IMPORTANT]
113
119
If you remove the `create_directory: true` option, you'll need to manually create a directory to store the data. You can ignore this option if the directory already exists.
0 commit comments