rough-pizza-5956
07/14/2025, 7:59 AMtall-airline-16756
07/14/2025, 7:59 AMtall-airline-16756
07/14/2025, 8:00 AM/metrics
endpoint, which includes TURN connection and relay stats (e.g., connection counts, relay bandwidth).
• Built-in telemetry: TURN operations are instrumented for telemetry—listeners and relay allocators are monitored and metrics are available out-of-the-box when Prometheus integration is enabled.
• For Kubernetes, expose the Prometheus port via your deployment and manage TURN certificates using secrets for secure TURN/TLS support.
For best practices, use TURN/TLS on port 443 with a valid certificate, ideally behind a layer 4 load balancer if scaling, to ensure the broadest accessibility and to make traffic appear as standard HTTPS. Monitor connection success rates, bandwidth usage, protocol types (UDP vs. TLS), and geographic patterns to optimize deployment.
Let me know if you need specific help with enabling metrics in your deployment, or if you have questions about interpreting the Prometheus output.
Sources: Documentation/ImprovingCallReliability.md | Deploying LiveKit | LiveKit Docs | pkg/service/turn.go | Firewall Tips | livekit-server/templates/deployment.yaml