Repository navigation
Description
Situation
The daemon in a node's lane container sends no telemetry. A daemon sends to the pools its own state directory is a member of (devstack_node::member::pools(&state_dir()), crates/devstack-daemon/src/telemetry.rs); the lane container has no membership, so its diagnostic lines and gauges never reach the pool's collector.
What the collector does see of such a lane: the requester's remote_lane_* lines (lease, sync, phases, started/stopped) and the node agent's own node_* lines. What it does not see: everything inside the lane — its services' states and start times, builds and candidates, prepare (and, once the store runs on nodes, prepare_store_hit|miss|put), notices, failed requests.
Observed 2026-10-26 with 0.23.0: a lane on the maintainers' node ran and restarted around a node update; the window has its remote_lane_* and node_* lines and not one line of the lane's own daemon.
Why it matters
- Lanes on nodes are where the slow and failing starts happen; the telemetry has their outline but not their content.
- Step 4 of prepare: a per-machine store of prepared directories, keyed by the inputs (one npm ci per lockfile, not per lane) #277 (the store on a node) cannot be evaluated without it.
Constraints
- Consent is the member's (ADR-0037): the lane's lines may go only where the requester has agreed to send, and the coordinator sets the member from the certificate. The node owner's consent is not the member's.
- The lane container holds no member key and should not get one (ADR-0027, ADR-0033).
Options
- The requester relays them: it already talks to the lane's daemon over the forwarded API; it fetches the lane's diagnostic lines (and gauges) and sends them with its own, labelled with the lane and node. Consent and member identity stay the requester's. Lines of a lane whose requester is offline are lost (or kept bounded in the lane until fetched).
- The node agent relays them from the lane's state in the mirror, labelled with the lease's member. Works while the requester sleeps, but sends the member's data on the node's say-so; needs the member's consent passed along with the lease.
Option 1 fits ADR-0037 as it stands.
Activity
fix(daemon): the telemetry take is not journaled (#287) (#347)