Relay metrics

The Relay service forwards encrypted WireGuard traffic between peers that cannot establish a direct P2P connection. Its metrics cover connected peers, throughput, and the per-peer authentication and bookkeeping paths. All metric names are prefixed with relay_.

Endpoint

SettingDefault
Address0.0.0.0
Port9090
Path/metrics
Flag--metrics-port
netbird-relay --metrics-port 9090

In the combined container, the metrics port is set with server.metricsPort in config.yaml and is shared with Management and Signal. See Combined.

Peers

MetricTypeDescription
relay_peersGaugeCurrently connected peers.
relay_peers_activeGaugePeers that exchanged traffic within the last 30 seconds.
relay_peers_idleGaugeConnected peers that have been idle for at least 30 seconds.
relay_peer_authentication_time_millisecondsHistogramTime to authenticate a peer. Unit: milliseconds.
relay_peer_store_time_millisecondsHistogramTime to register a peer in the in-memory store. Unit: milliseconds.
relay_peer_reconnections_totalCounterPeer reconnections (existing peer ID re-registering).

Traffic

MetricTypeDescription
relay_transfer_sent_bytes_totalCounterBytes sent to peers.
relay_transfer_received_bytes_totalCounterBytes received from peers.

Grafana dashboard

A ready-made Relay dashboard is available under Dashboards.