Client Metrics

Client metrics allow you to collect performance data from your NetBird clients, such as connection timing, sync duration, and login latency. This data helps identify connectivity issues and optimize your deployment.

When enabled, clients periodically push metrics to a collection server.

What is collected

  • Connection stages — Time taken for each stage of a peer connection: signaling, connection establishment, and WireGuard handshake.
  • Sync duration — How long it takes to process management server sync messages.
  • Login duration — How long the login to the management server takes, including success or failure status.

Each metric includes metadata such as the client version, operating system, architecture, and deployment type (cloud or self-hosted). Peer identifiers are hashed before transmission.

Enabling via the dashboard

  1. Navigate to Settings > Metrics.
  2. Toggle Share performance metrics to enable or disable metrics push for all peers in your account.

When enabled, all connected clients will start pushing metrics on their next sync with the management server.

Environment variable override

The NB_METRICS_PUSH_ENABLED environment variable on the client takes precedence over the dashboard setting:

ValueBehavior
trueMetrics push is always enabled, regardless of the dashboard setting
falseMetrics push is always disabled, regardless of the dashboard setting
(unset)The dashboard setting controls whether metrics push is enabled