From 81f34279a58048cefa961836768487686cfbbd6e Mon Sep 17 00:00:00 2001 From: Israel Blancas Date: Wed, 11 Sep 2024 11:55:55 +0200 Subject: [PATCH] OBSDOCS-1317: Add docs for the OTLP JSON File Receiver --- .../otel-collector-receivers.adoc | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/observability/otel/otel-collector/otel-collector-receivers.adoc b/observability/otel/otel-collector/otel-collector-receivers.adoc index 716904a1b86a..26e78ecaa152 100644 --- a/observability/otel/otel-collector/otel-collector-receivers.adoc +++ b/observability/otel/otel-collector/otel-collector-receivers.adoc @@ -352,6 +352,29 @@ include::snippets/technology-preview.adoc[] <3> The lnterval for scraping the metrics data. Accepts time units. The default value is `1m`. <4> The targets at which the metrics are exposed. This example scrapes the metrics from a `my-app` application in the `example` project. +[id="otlpjsonfile-receiver_{context}"] +== OTLP JSON File Receiver + +The OTLP JSON File Receiver extracts pipeline information from files containing data in the link:https://protobuf.dev/programming-guides/json/[ProtoJSON] format and conforming to the link:https://opentelemetry.io/docs/specs/otel/protocol/[OpenTelemetry Protocol] specification. The receiver watches a specified directory for changes such as created or modified files to process. + +:FeatureName: The OTLP JSON File Receiver +include::snippets/technology-preview.adoc[] + +.OpenTelemetry Collector custom resource with the enabled OTLP JSON File Receiver +[source,yaml] +---- +# ... + config: | + otlpjsonfile: + include: + - "/var/log/*.log" # <1> + exclude: + - "/var/log/test.log" # <2> +# ... +---- +<1> The list of file path glob patterns to watch. +<2> The list of file path glob patterns to ignore. + [id="zipkin-receiver_{context}"] == Zipkin Receiver