From d3d203d79d9a21d4dbede4f4e46eb0e281b2aa0c Mon Sep 17 00:00:00 2001 From: Benedikt Bongartz Date: Mon, 22 Apr 2024 15:31:07 +0200 Subject: [PATCH] add k8s object receiver to otel components - add filestorage ext to otel components Signed-off-by: Benedikt Bongartz --- modules/otel-collector-components.adoc | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/modules/otel-collector-components.adoc b/modules/otel-collector-components.adoc index 1eba9e407863..48d9a57767ea 100644 --- a/modules/otel-collector-components.adoc +++ b/modules/otel-collector-components.adoc @@ -1149,6 +1149,46 @@ This extension supports traces, metrics, and logs. <11> Sets a timeout for the token client's request. <12> You can assign the authenticator configuration to an OTLP exporter. +[id="filestorage-extension_{context}"] +=== File Storage Extension + +:FeatureName: The File Storage Extension +include::snippets/technology-preview.adoc[] + +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. + +.OpenTelemetry Collector custom resource with a configured File Storage Extension that persists an OTLP sending queue +[source,yaml] +---- + config: | + extensions: + file_storage/all_settings: + directory: /var/lib/otelcol/mydir # <1> + timeout: 1s # <2> + compaction: + on_start: true # <3> + directory: /tmp/ # <4> + max_transaction_size: 65_536 # <5> + fsync: false # <6> + + exporters: + otlp: + sending_queue: + storage: file_storage/all_settings + + service: + extensions: [file_storage/all_settings] + pipelines: + traces: + receivers: [otlp] + exporters: [otlp] +---- +<1> Specifies the directory in which the telemetry data is stored. +<2> Specifies the timeout time interval for opening the stored files. +<3> Starts compaction when the Collector starts. If omitted, the default is `+false+`. +<4> Specifies the directory in which the compactor stores the telemetry data. +<5> Defines the maximum size of the compaction transaction. To ignore the transaction size, set to zero. If omitted, the default is `+65536+` bytes. +<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. [id="jaegerremotesampling-extension_{context}"] === Jaeger Remote Sampling extension