Skip to content

Commit 38b9e4c

Browse files
frzifusmax-cx
authored andcommitted
add k8s object receiver to otel components
- add filestorage ext to otel components Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>
1 parent 8df54ad commit 38b9e4c

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

modules/otel-collector-components.adoc

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,46 @@ This extension supports traces, metrics, and logs.
870870
<11> Sets a timeout for the token client's request.
871871
<12> You can assign the authenticator configuration to an OTLP exporter.
872872

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.
873913

874914
[id="jaegerremotesampling-extension_{context}"]
875915
=== Jaeger Remote Sampling extension

0 commit comments

Comments
 (0)