Metrics Endpoint
All NetBird server components expose metrics in Prometheus format at the/metrics endpoint.
Management Server Metrics
The management server exposes metrics on a configurable port (default: 9090):Enable Metrics
Metrics are enabled by default. Configure the metrics port in your management server:Metrics use OpenTelemetry with Prometheus exporters for standardized observability.
Key Metrics to Monitor
gRPC API Metrics
Monitor peer connections and authentication:HTTP API Metrics
Track REST API performance:Store Metrics
Monitor database and persistence performance:Account Manager Metrics
Track network map calculation performance:IDP Metrics
Monitor identity provider integration:Health Checks
Relay Server Health
Relay servers expose a health check endpoint at/health:
Health check responses are cached for 3 seconds to reduce overhead.
Management Server Health
Check management server availability:Prometheus Configuration
Add NetBird components to yourprometheus.yml:
Grafana Dashboards
NetBird provides pre-built Grafana dashboards in the source repository:- Active peer connections
- Login and sync latencies
- Network map distribution times
- Store operation performance
- Error rates and blocked requests
Docker Compose Monitoring Stack
Example monitoring setup:Alerting Rules
High Login Latency Alert
High Login Latency Alert
Active Streams Alert
Active Streams Alert
Store Lock Contention Alert
Store Lock Contention Alert
What to Monitor
1
Peer Connectivity
Monitor
management.grpc.connected.streams to track active peers. Sudden drops indicate connectivity issues.2
API Performance
Watch login and sync duration histograms. P95 latency should be under 1 second for healthy operations.
3
Store Performance
Track lock acquisition and persistence metrics. High values indicate database bottlenecks.
4
Error Rates
Monitor blocked requests and IDP errors. Spikes indicate authentication or authorization problems.
5
Network Map Size
Track
management.account.network.map.object.count. Large values (>5000 objects) may impact performance.Client Monitoring
Clients don’t expose metrics endpoints, but you can monitor client status:Use
netbird status --json to integrate client health checks into your monitoring system.