Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metrics on how many connections routed via TURN #3000

Open
BitPatty opened this issue Dec 6, 2024 · 0 comments
Open

Metrics on how many connections routed via TURN #3000

BitPatty opened this issue Dec 6, 2024 · 0 comments

Comments

@BitPatty
Copy link

BitPatty commented Dec 6, 2024

Is your feature request related to a problem? Please describe.
There is currently no straightforward way to determine whether a connection to a node is routed via TURN, especially on mobile clients/apps. This lack of visibility can make troubleshooting and diagnosing network issues challenging.

Describe the solution you'd like
Add an option for the client to collect connection statistics, specifically whether TURN was used, along with key metrics such as Time/Duration and RX/TX bytes per connection. If TURN was used, it would also be helpful to log which TURN server was utilized.

Additionally, an option could be provided to share these statistics with the management server for centralized observability.

For privacy reasons, both options (local collection and sharing with the management server) should be strictly opt-in.

Basic example:

Connection Type: TURN
TURN Server: turn-eu1.example.com
Relayed Bytes: 150 MB RX / 120 MB TX
Connection Start: 2024-12-06T12:00:00Z
Connection End: 2024-12-06T17:00:00Z

Describe alternatives you've considered
The only other solution I'd see is an outside / third party traffic analyzer.

Additional context
This feature would assist in detecting potential configuration issues, provide troubleshooting insights for both consumers and Netbird developers and operators, and help optimize deployments by offering greater visibility into connection behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant