OTLP documents#
shirudo sends OpenTelemetry data as OTLP/HTTP JSON. Each document is
one POST from a one-shot command:
Document |
Sent by |
Signal |
|---|---|---|
|
One log record |
|
|
One log record or the decoder’s metrics, per map |
|
The same, when a snapshot goes to S3 |
One log record |
The timers shirudo-keepalive.timer and shirudo-map-export.timer
run these commands, see systemd units and timers. Setting up an
export is in Monitor and export telemetry. Decoders are in
Write a Lua decoder.
Transport#
Property |
Value |
|---|---|
Protocol |
OTLP/HTTP with JSON bodies. |
Paths |
|
Headers |
|
Compression |
|
TLS |
TLS 1.3 only, hybrid ML-KEM key exchange
( |
Cleartext |
|
Insecure mode |
|
Credentials in the URL |
Refused. |
Timeout |
Per attempt, |
Success |
HTTP |
Retries |
|
Backoff |
The response’s |
Response size |
A response body over 65535 bytes fails the export. |
Request size |
|
Endpoint#
shirudo picks the first that is set:
Source |
URL used |
|---|---|
|
|
|
The value plus the signal path |
|
The value as given |
|
The value plus the signal path |
None ( |
|
The signal path goes before any ? or # and gets a / when
the base does not end in one. An empty variable counts as unset.
status --otel sends no keepalive without one of the first four
sources. upatch map reads the map_export.* settings only with
--all. While a config activation is pending or cannot be verified,
the config image’s map_export.* settings are not in effect and only
the environment can name the endpoint.
Environment#
For each OTEL_EXPORTER_OTLP_<setting> below, the signal variable
OTEL_EXPORTER_OTLP_LOGS_<setting> or
OTEL_EXPORTER_OTLP_METRICS_<setting> takes precedence. The systemd
services read them from /etc/shirudo/map-export.env.
Variable |
Value |
|---|---|
|
Base URL, see Endpoint. |
|
|
|
|
|
|
|
CA bundle for the collector’s certificate. |
|
Client certificate and key for mutual TLS. Both or neither. |
|
Milliseconds, 1 to 120000. |
A tenant id, from --tenant-id=<id> or map_export.tenant_id, is 1
to 128 characters from A-Z, a-z, 0-9, ., _ and
-. shirudo sends it as X-Tenant-ID.
Resource and scope#
Every document has one resource and one scope.
Field |
Value |
|---|---|
Resource attribute |
|
Resource attribute |
The version string without the extra version and release name
that |
Resource attribute |
The host name, or |
Scope |
|
Scope |
Same as |
Attribute values follow the OTLP JSON encoding: stringValue,
intValue as a decimal string, boolValue.
This page gives what every document shares: the transport, the endpoint, the environment and the resource. Keepalive and Map logs and metrics give the documents.