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

Prometheus metrics based on allocation? #401

Open
matiaslopezd opened this issue Jul 11, 2024 · 1 comment
Open

Prometheus metrics based on allocation? #401

matiaslopezd opened this issue Jul 11, 2024 · 1 comment

Comments

@matiaslopezd
Copy link

Hi guys, I want to implement Prometheus metrics to know things like:

# TYPE turn_active_connections gauge
turn_active_connections 0
# HELP turn_total_connections Total number of TURN connections
# TYPE turn_total_connections counter
turn_total_connections 0
@rg0now
Copy link
Contributor

rg0now commented Jul 12, 2024

Currently Prometheus metric exporting is not available in pion/turn and I think this will remain so for the foreseeable future: pion/turn is a reusable software module that you can use to implement your own TURN speaker on top, and it is expected that your implementation should generate itw own Prom metrics using the pion/turn API. For instance, the value for the turn_active_connections gauge can be generated dynamically using the Server.AllocationCount call. Is there any specific function you miss in the API to implement your metrics?

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

No branches or pull requests

2 participants