Proxy metrics

The NetBird Proxy serves the Reverse Proxy feature: HTTP / TLS / TCP / UDP traffic forwarded to peers without requiring those peers to be reachable directly. Its metrics describe the inbound HTTP layer, the L4 (TCP/UDP) listeners, ACME certificate issuance, and the sync loop with Management. All metric names are prefixed with proxy_.

Endpoint

Unlike the other services, the proxy does not run a dedicated metrics server. Instead it mounts /metrics on the same HTTP server as its health probes.

SettingDefault
Addresslocalhost:8080
Path/metrics
Flag--health-addr
Env varNB_PROXY_HEALTH_ADDRESS
netbird-proxy --health-addr 0.0.0.0:8080

To scrape the proxy from another host, bind the health server to a routable interface (0.0.0.0:8080 or a specific address) instead of localhost.

HTTP

Inbound HTTP/HTTPS traffic terminated by the proxy and forwarded to peers.

MetricTypeDescription
proxy_http_request_counter_totalCounterTotal HTTP requests handled.
proxy_http_active_requestsGaugeIn-flight HTTP requests.
proxy_http_request_duration_ms_millisecondsHistogramEnd-to-end request duration.
proxy_backend_duration_ms_millisecondsHistogramRound-trip time to the upstream peer.
proxy_domains_countGaugeDomains currently configured.
proxy_paths_countGaugePath routes currently configured.
proxy_certificate_issue_duration_ms_millisecondsHistogramACME certificate issuance duration.

L4 (TCP/UDP)

Layer-4 passthrough services configured on the proxy.

MetricTypeDescription
proxy_l4_services_countGaugeL4 services currently configured.
proxy_tcp_active_connectionsGaugeActive TCP/TLS connections.
proxy_tcp_connections_totalCounterTotal TCP/TLS connections accepted.
proxy_tcp_connection_duration_ms_millisecondsHistogramTCP/TLS connection duration.
proxy_tcp_bytes_totalCounterBytes transferred over TCP/TLS.
proxy_udp_active_sessionsGaugeActive UDP relay sessions.
proxy_udp_sessions_totalCounterTotal UDP sessions opened.
proxy_udp_packets_totalCounterUDP packets relayed.
proxy_udp_bytes_totalCounterBytes transferred over UDP.

Sync with Management

The proxy receives configuration (domains, paths, L4 services) from Management over a gRPC stream.

MetricTypeDescription
proxy_sync_snapshot_duration_ms_millisecondsHistogramTime to apply the initial snapshot from Management.
proxy_sync_batch_duration_ms_millisecondsHistogramTime to apply a mapping batch.
proxy_peer_add_duration_ms_millisecondsHistogramTime to add a peer to the embedded client (key generation + gRPC + embed).