Hi Do we have Room level metrics in LK server?
# ask-ai
c
Hi Do we have Room level metrics in LK server?
t
Thanks for reaching out, shahi. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely! The LiveKit server does offer room-level metrics through Prometheus. Here’s a quick rundown of what you can track: • Room Metrics:
livekit_room_total
shows the current number of active rooms, and
livekit_room_duration_seconds
gives you a histogram of how long rooms last. • Participant Metrics:
livekit_participant_total
tells you how many participants are connected across all rooms. • Track Metrics: You can monitor published and subscribed tracks with metrics like
livekit_track_published_total
and
livekit_track_subscribed_total
. • Session Metrics: Metrics such as
livekit_session_start_time_ms
and
livekit_session_duration_ms
help you keep an eye on session timings. To get these metrics flowing, just set the Prometheus port in your LiveKit server config like this:
Copy code
prometheus_port: 6789
Also, there’s a handy pre-built Grafana dashboard ready for visualizing all this data. If you want, I’m here to help you set it up or answer any other questions! Sources: config-sample.yaml