Skip to main content
NetBird components expose Prometheus metrics and health endpoints for comprehensive monitoring of your mesh network infrastructure.

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:
Monitor management.grpc.login.request.high.latency.counter - values above 7s indicate performance issues.

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:
Response (healthy):
Response (unhealthy):
Health check responses are cached for 3 seconds to reduce overhead.

Management Server Health

Check management server availability:

Prometheus Configuration

Add NetBird components to your prometheus.yml:

Grafana Dashboards

NetBird provides pre-built Grafana dashboards in the source repository:
Import these dashboards to visualize:
  • 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

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.