VeilNet

Telemetry

Learn how the guardian collects telemetry from every machine, and how to read the health and traffic of your fleet in the console.

Who
Every role reads telemetry. Auditors and above read flow records
Where
Protect › Telemetry, and a machine's details

How Telemetry Is Collected

Every machine the guardian commissions reports telemetry, and it is always on. The guardian collects it in two ways. In-band answers show the present, and exported metrics give the history.

In-bandExported
How it worksThe realm's admin node sends the machine a signed telemetry order, and the machine answers with its current readingsThe machine sends its metrics and flow records to the guardian, with its own collector credential
Travels overThe overlay, within the realm's own rulesThe IP network, straight to the guardian
How oftenEvery 30 seconds by defaultEvery 60 seconds by default
KeptNot kept. It is the console's view of the present90 days, in the metrics store

The console shows the in-band answer while it is fresh, and the last export after that. If neither has a reading, the console shows a blank.

In-Band Telemetry

A telemetry order is a signed request for a machine's current readings. It reaches only the realm of the anchor that sends it, so the guardian runs an admin node in every realm. The admin node is the guardian's own anchor in that realm, and it runs inside the guardian stack.

The admin node carries no data and relays nothing for anyone. It reaches your network only by connecting out to your own bootstrap nodes.

Between operator actions, the admin node holds only the telemetry power. It asks for telemetry in rounds:

  • Every 30 seconds by default, it asks every active machine in its realm for a report. To change the interval, set GUARDIAN_INBAND_INTERVAL_SECONDS to a value from 5 to 300.
  • If it has no route to a machine yet, the answer reads as unreachable. The admin node then connects to the machine, so the next round can reach it.
  • An answer stays current for three rounds. After that, the console takes the machine's figures from its export.
  • It does not ask revoked machines.

On Protect › Telemetry, Current readings shows the in-band state of the realm in scope. While it runs, it reads In-band from the office admin node. Otherwise, it names the state, and the page gives the reason:

StateWhat it meansWhat to do
runningThe realm's admin node is up and asking every machineNothing
startingThe admin node is starting and will be up within one round. This is normal for a new realm, or just after the guardian startsWait one round
withheldYour realm credential does not grant the telemetry power. The admin nodes still run for realm control, and the console reads the fleet from exports onlyAsk VeilNet for a realm credential that grants telemetry
failedThe admin node could not start. The console shows the reason, and the next round tries againRead the reason
offNo admin node answers for this realm yetWait one round, then refresh

Reading the Fleet

0 of 5 done
  1. Open Protect › Telemetry and set the realm in the scope at the top. Choose the Window: 15 min, 1 h or 24 h. The tiles show:

    • Reporting: how many machines report, and how many do not.
    • Connections: the connections now and over the last hour, and the relay circuits.
    • Reachability: how many machines are reached directly, and how the rest are reached.
    • Median peers known: the median number of peers known across the reporting machines, with the range.
    • Networks served: how many, and by which machines.
    Protect › TelemetryGuardian console
    Telemetry: nodes reporting, connections now, how nodes are reached, peers known, each node's current readings and last hour, and the largest flows.

Flow Records

Flow records log the traffic a machine exchanges with its peers. They come from conflux's observer, which a machine runs when it starts with conflux up --observe, as the install commands in the console do. Observe traffic is on by default when you commission a machine, and you can turn it off there.

Each flow record names the peer, both overlay addresses, the transport protocol and the destination port. It counts the bytes and packets sent in each direction. Traffic the machine relays for others is recorded only as its two hops and its byte count. Payloads are never reported.

Auditors and above can read flow records on a machine's Flows tab, and under Largest flows on Protect › Telemetry. The guardian keeps them for 90 days.

To turn the observer off on a running machine, run sudo conflux up --no-observe on it. To turn it on again, run sudo conflux up --observe. A machine commissioned with Observe traffic off also needs --export with the guardian's collector address. The PQC inventory shows you that command. See Observing Traffic.

The observer also sees the machine's own traffic beyond the overlay, with the cryptography of each handshake. The guardian keeps each service it sees in the PQC inventory for 90 days from its last sighting. See PQC Inventory.

Exported Telemetry

Each machine exports telemetry with its own collector credential, which is separate from the secret it renews with. A leak of one reveals nothing about the other. Revoking a machine cuts off its reporting at once.

With the internal certificate, each manifest carries the stack's certificate authority, so a machine exports with nothing installed. With tunnel ingress, machines export to 443/tcp at GUARDIAN_HOST_IP. See Ingress.

Machines export every 60 seconds by default, and GUARDIAN_METRIC_INTERVAL_SECONDS sets the interval. The guardian keeps exported telemetry for 90 days. See Telemetry intervals for both interval settings.

The fleet view reads seven gauges for each machine: connections, peers known, neighbours, reachability, overlay MTU, routes served and relay circuits. A machine's details show every reading it reports.