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
<3> The lnterval for scraping the metrics data. Accepts time units. The default value is `1m`.
353
353
<4> The targets at which the metrics are exposed. This example scrapes the metrics from a `my-app` application in the `example` project.
354
354
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.
0 commit comments