Skip to content

otelcol: add full host-level log attributes (Loki parity)#18

Open
samcm wants to merge 1 commit into
masterfrom
otelcol-docker-logs-enrichment
Open

otelcol: add full host-level log attributes (Loki parity)#18
samcm wants to merge 1 commit into
masterfrom
otelcol-docker-logs-enrichment

Conversation

@samcm
Copy link
Copy Markdown
Member

@samcm samcm commented Jun 3, 2026

Adds the host-level resource attributes the vector→Loki path carried to the otelcol logs pipeline, so external.otel_logs reaches parity with what Loki had (minus per-container container_name, see below):

  • forwarder, instance, testnet (alias of network), and ethereum_cl / ethereum_el per host (where defined), on top of the existing network, ingress_user, host.name, deployment.environment.

Static filelog is kept for reliable collection of every container.

Verified live on lighthouse-geth-super-1 (otelcol-only rollout): all attributes land on every container's logs.

Not included — per-container container.name/image: attempted via docker_observer + receiver_creator, but reverted because docker_observer is port-oriented — it misses containers with no published ports (e.g. validator) and double-tails multi-port ones (e.g. beacon). Reliable per-container metadata needs the Docker json-file tag log-opt (embeds the name in each line's attrs for a static filelog to parse), which applies on container recreation — a separate change.

Adds the host-level resource attributes the vector->Loki path carried to the
otelcol logs pipeline: forwarder, instance, network, testnet, ingress_user,
plus ethereum_cl / ethereum_el per host (where defined). Static filelog is kept
for reliable collection of every container.

Per-container container.name/image was attempted via docker_observer +
receiver_creator but reverted: docker_observer is port-oriented, so it misses
containers with no exposed ports (e.g. validator) and double-tails multi-port
ones (e.g. beacon). Reliable per-container metadata needs the docker json-file
`tag` log-opt instead, which applies on container recreation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant