Skip to content

Commit 77e3fb7

Browse files
authored
Merge pull request #84251 from max-cx/OBSDOCS-1317
OBSDOCS-1317: Add docs for the OTLP JSON File Receiver
2 parents 48bdab5 + f420c40 commit 77e3fb7

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

observability/otel/otel-collector/otel-collector-receivers.adoc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,29 @@ include::snippets/technology-preview.adoc[]
352352
<3> The lnterval for scraping the metrics data. Accepts time units. The default value is `1m`.
353353
<4> The targets at which the metrics are exposed. This example scrapes the metrics from a `my-app` application in the `example` project.
354354

355+
[id="otlpjsonfile-receiver_{context}"]
356+
== OTLP JSON File Receiver
357+
358+
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.
359+
360+
:FeatureName: The OTLP JSON File Receiver
361+
include::snippets/technology-preview.adoc[]
362+
363+
.OpenTelemetry Collector custom resource with the enabled OTLP JSON File Receiver
364+
[source,yaml]
365+
----
366+
# ...
367+
config: |
368+
otlpjsonfile:
369+
include:
370+
- "/var/log/*.log" # <1>
371+
exclude:
372+
- "/var/log/test.log" # <2>
373+
# ...
374+
----
375+
<1> The list of file path glob patterns to watch.
376+
<2> The list of file path glob patterns to ignore.
377+
355378
[id="zipkin-receiver_{context}"]
356379
== Zipkin Receiver
357380

0 commit comments

Comments
 (0)