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

Feature Request: Integrated Prometheus Metrics Exporter #101

Open
Tracked by #102
kouvaliasnick opened this issue Nov 1, 2024 · 1 comment
Open
Tracked by #102

Feature Request: Integrated Prometheus Metrics Exporter #101

kouvaliasnick opened this issue Nov 1, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@kouvaliasnick
Copy link

Is your feature request related to a problem? Please describe.
We're migrating from coturn to turn-rs for its superior performance, but we're missing the ability to monitor server health and performance metrics. Currently, there's no built-in way to expose metrics to Prometheus, which makes it difficult to:

  • Monitor server health
  • Track resource usage
  • Debug performance issues
  • Set up alerts for potential problems

Describe the solution you'd like
An integrated Prometheus metrics exporter similar to what coturn provides. Key metrics we'd like to see:

  • Total/active allocations
  • Bytes sent/received
  • Packets sent/received
  • Protocol-specific metrics (UDP/TCP/TLS)
  • Session duration
  • Error counts

Ideally exposed on a /metrics endpoint in standard Prometheus format.

Describe alternatives you've considered

  • Using system-level metrics only (less accurate/useful)

Additional context
We're using turn-rs in a production environment where monitoring is crucial for maintaining service reliability.

@mycrl mycrl self-assigned this Nov 1, 2024
@mycrl mycrl added the enhancement New feature or request label Nov 1, 2024
@mycrl
Copy link
Owner

mycrl commented Nov 1, 2024

The existing http api can provide this information you want, so you can expose it to Prometheus yourself.
However, your feature request is not unnecessary, so I will add support for exporting to Prometheus.

@mycrl mycrl mentioned this issue Nov 10, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Ready
Development

No branches or pull requests

2 participants