Skip to main content
Version: 0.4.0

OTLP connector

Class: otlp — source only. Binds HTTPS and accepts OpenTelemetry Protocol logs on exact POST /v1/logs. Protobuf and JSON share that path. Each log record is published to a stream.

Do not configure OTLP as http_server or http. http_server is generic JSON, NDJSON, or text. http is an outbound client. There is no OTLP sink and no gRPC listener.

Create and edit under Sources. Field names and HTTP outcomes: OTLP/HTTP logs source connector.

Source behavior​

RoleBehavior
SourceListen on endpoint (https:// host + port). Exact POST /v1/logs. Required bearer or basic ingest auth. Decode the export, enqueue one batch, then 200. Channel full → 429 with Retry-After: 1.
SinkNot supported.
StreamsAlign the ingest stream with tasks / pipelines (Streams).

200 means the batch is on the ingest channel, not that WAL or a sink has the events. A 400 or 413 drops the request. A spec-compliant exporter does not retry those.

Required fields​

Every connector row​

FieldRequiredNotes
nameYesDisplay name; id derived from it.
classYesMust be otlp.
streamYesResolved stream id.
typeYessource only.
configYesClass-specific object; see below.

Class otlp — required configuration​

SettingRequiredNotes
endpointYesListen URL. https:// only, host + port. Examples use https://127.0.0.1:4318. http:// is invalid.
authenticationYesauth_type bearer (token) or basic (username / password). Required even on loopback. Treat token and password as secrets.

Optional: health_path (default /health, unauthenticated GET; empty disables), max_body_bytes (default 64 MiB, minimum 1), max_events_per_request (default 10000), server tls cert/key (or auto-generate under $PADAS_HOME/core/data/security/). There is no encoding field and no path field. The request Content-Type selects application/x-protobuf or application/json.

Create connector​

  1. Open Sources → Create.
  2. Set Class to OTLP, set name, stream behavior, and Enabled.
  3. Enter https://127.0.0.1:4318 (or another host and explicit port) and bearer or basic credentials.
  4. Leave health on /health when you want an unauthenticated GET probe.
  5. Save, deploy to a Core, then wire the stream into tasks / pipelines.
UI fieldConnector setting
Endpointendpoint
Health pathhealth_path
Auth type / token or username+passwordauthentication
Max body bytes / max events per requestmax_body_bytes, max_events_per_request

OpenTelemetry Collector​

Point an otlphttp exporter at the listen URL. Do not append /v1/logs; the exporter adds that path. Traces and metrics posted to this connector are 404.

exporters:
otlphttp:
endpoint: https://127.0.0.1:4318
compression: gzip
headers:
Authorization: "Bearer secret"

Trust the connector certificate. For a lab leaf that the Collector does not trust, set tls.insecure_skip_verify: true on that exporter. A missing Content-Encoding is also accepted. deflate is 400.

The log body is the event payload. File log lines stay in that body until a Collector parser or a PDL parse_kv splits them. To use the OTLP event clock, enable source timestamp extraction with field $otlp.time_unix_nano and format unix_nanos. Extraction is off by default.