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: modules/otel-collector-components.adoc
+40Lines changed: 40 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -870,6 +870,46 @@ This extension supports traces, metrics, and logs.
870
870
<11> Sets a timeout for the token client's request.
871
871
<12> You can assign the authenticator configuration to an OTLP exporter.
872
872
873
+
[id="filestorage-extension_{context}"]
874
+
=== File Storage Extension
875
+
876
+
:FeatureName: The File Storage Extension
877
+
include::snippets/technology-preview.adoc[]
878
+
879
+
The File Storage Extension supports traces, metrics, and logs. This extension can persist the state to the local file system. This extension persists the sending queue for the OTLP exporters that are based on the HTTP and the gRPC protocols. This extension requires the read and write access to a directory. This extension can use a default directory, but the default directory must already exist.
880
+
881
+
.OpenTelemetry Collector custom resource with a configured File Storage Extension that persists an OTLP sending queue
882
+
[source,yaml]
883
+
----
884
+
config: |
885
+
extensions:
886
+
file_storage/all_settings:
887
+
directory: /var/lib/otelcol/mydir # <1>
888
+
timeout: 1s # <2>
889
+
compaction:
890
+
on_start: true # <3>
891
+
directory: /tmp/ # <4>
892
+
max_transaction_size: 65_536 # <5>
893
+
fsync: false # <6>
894
+
895
+
exporters:
896
+
otlp:
897
+
sending_queue:
898
+
storage: file_storage/all_settings
899
+
900
+
service:
901
+
extensions: [file_storage/all_settings]
902
+
pipelines:
903
+
traces:
904
+
receivers: [otlp]
905
+
exporters: [otlp]
906
+
----
907
+
<1> Specifies the directory in which the telemetry data is stored.
908
+
<2> Specifies the timeout time interval for opening the stored files.
909
+
<3> Starts compaction when the Collector starts. If omitted, the default is `+false+`.
910
+
<4> Specifies the directory in which the compactor stores the telemetry data.
911
+
<5> Defines the maximum size of the compaction transaction. To ignore the transaction size, set to zero. If omitted, the default is `+65536+` bytes.
912
+
<6> When set, forces the database to perform an `fsync` call after each write operation. This helps to ensure database integrity if there is an interruption to the database process, but at the cost of performance.
0 commit comments