Skip to content

Telemetry ingress and the mux

Nodes report events and logs to three ingest surfaces, one per transport mode. The mode a node uses is chosen from a profile the control plane publishes, so how telemetry arrives is a control-plane decision rather than a node-side preference.

Three ingest operations, three modes

Operation Mode Used when
Ingest events batch batch The ordinary case
Ingest logs batch batch The ordinary case for logs
Ingest logs failover failover The node spooled and is delivering later

The third mode, stream, is the low-latency metadata path a node uses when a channel's throughput justifies it. All three carry metadata only. See The metadata-only ingest rule.

The mux profile is published, then fetched

flowchart LR
  subgraph CP["CONTROL PLANE"]
    direction TB
    PF[("Mux profile<br/>per workspace")]
    subgraph SF["INGEST SURFACES"]
      direction TB
      S1["batch"]
      S2["failover"]
      S3["stream"]
    end
  end
  subgraph N["XRATUD"]
    direction TB
    MX{{"Telemetry mux<br/>mode per channel"}}
    SP[("Spool")]
  end
  PF -->|"fetched"| MX
  MX --> S1
  MX --> S3
  SP -->|"later"| S2

The profile lives in the control plane and the choice is made in the node, so changing the profile changes the node's next selection without a restart. The failover surface is fed from the spool, which is why a failover batch describes something that happened earlier.

The profile is read and written through the system telemetry mux capability under system.telemetry_mux.v1, and a node fetches it per workspace. Changing how telemetry is transported is therefore a control-plane change that nodes pick up, rather than a node restart.

Failover is a separate surface for a reason

A failover delivery is a node draining what it spooled while it could not reach the control plane. It may contain records already delivered, and it carries envelope identifiers so duplicates are recognisable.

Keeping it on its own operation means the ordinary path stays simple and the replay path can be treated differently without a flag on every record.

What arrives during recovery

A node that was disconnected delivers its backlog while producing new records, so ingest sees a burst rather than a resumption. The control plane's view catches up to the present instead of restarting from the outage. See Telemetry under degradation.

Ingest is per workspace and authorised

Every ingest call is scoped and authorised like any other request. A node reports into the workspaces its assignments belong to, and the correlation tuple on each record is what attributes it further. See The correlation tuple.

Where the records go

Events and logs become the workspace's unified event feed and log history, readable through the observability surfaces rather than through the ingest ones. Ingest is a write path; reading has its own capabilities. See Replay and history.