[GH-ISSUE #2630] Port conflict for metrics (Error: listen tcp4 :9090: bind: address already in use) #5473

Open
opened 2026-08-05 01:03:24 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @kbudde on GitHub (Sep 23, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2630

Same metrics port is used for all services

Since #2599 (v0.29.3) the same port is used for the metrics endpoint for each service.
If the services are installed on the same machine without docker, the port conflict prevents the service from starting and needs to be overwritten using the --metrics-port flag.

This affects signal, relay and management service:
https://github.com/search?q=repo%3Anetbirdio%2Fnetbird%20metrics-port&type=code

To Reproduce

Steps to reproduce the behavior:

  1. Install all services on a VM as service without changing the default configuration for metrics port.

Expected behavior

The default configuraiton should not create conflicts.

NetBird version

0.29.4

Originally created by @kbudde on GitHub (Sep 23, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2630 **Same metrics port is used for all services** Since #2599 (v0.29.3) the same port is used for the metrics endpoint for each service. If the services are installed on the same machine without docker, the port conflict prevents the service from starting and needs to be overwritten using the `--metrics-port` flag. This affects signal, relay and management service: https://github.com/search?q=repo%3Anetbirdio%2Fnetbird%20metrics-port&type=code **To Reproduce** Steps to reproduce the behavior: 1. Install all services on a VM as service without changing the default configuration for metrics port. **Expected behavior** The default configuraiton should not create conflicts. **NetBird version** 0.29.4
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#5473