LiveKit + PeerMetrics

LiveKit integration

Monitor LiveKit sessions by passing your Room instance into PeerMetrics so connection quality and SFU behavior are visible from the start.

Initialize PeerMetrics around your Room setup, then register the LiveKit room. PeerMetrics will automatically observe the peer connections created underneath.

PeerMetrics SDK

Quick setup

  • Initialize PeerMetrics for the user and conference.
  • Register the LiveKit SDK integration.
  • Keep your normal call setup flow.

How it works

  1. Initialize PeerMetrics before or alongside your room setup.
  2. Create or reuse your LiveKit Room instance.
  3. Call addSdkIntegration() with the Room object.
  4. Optionally provide serverId and serverName to identify SFU nodes in dashboards.
Example
import { Room } from 'livekit-client'

const room = new Room(roomOptions)

const peerMetrics = new PeerMetrics({
  apiKey: 'YOUR_API_KEY',
  userId: currentUser.id,
  conferenceId: roomName
})

peerMetrics.addSdkIntegration({
  livekit: {
    room,
    serverId: 'livekit-sfo-1',
    serverName: 'LiveKit SFU - SFO'
  }
})

Based on the PeerMetrics SDK integration docs.

Create rock solid products

The tool that every team needs to build the perfect WebRTC integration
  • Guess work in product
    Don't leave your development to guess work

    Crafting the perfect product is a challenge on its own. Adding WebRTC in the mix makes it even harder.

    Make sure you and your team have all the data you need to build the best video and audio calling product.

  • Developer relaxing
    Fix problems before they appear

    Even with a great product, network conditions change. Make sure you have the tools to adapt and resolve issues quickly.

  • Happy support team
    Make sure your support team shines

    Your support team should never guess what happened. Give them the tools to fix problems in real time.