Track Jitsi Videobridge Health With Prometheus and Grafana

Expose each Jitsi Videobridge (JVB) Prometheus endpoint only on a private network, add every bridge as a Prometheus scrape target, and use Grafana to chart bridge load, conference counts, endpoints, and media rates. JVB serves Prometheus/OpenMetrics data at /metrics on its private HTTP interface, usually port 8080; the default private-interface bind address in the current reference configuration is 127.0.0.1, so a remote Prometheus server cannot scrape it until you deliberately provide a private route.

What to collect and what it means

Prometheus scrapes each bridge and stores time series; Grafana queries them for trends and alerts. Jitsi also offers XMPP and JSON statistics, but this workflow uses the Prometheus-format /metrics endpoint.

Monitoring questionJVB metric or family to look forHow to use it
Is scraping working?up from PrometheusExpect 1 for each reachable JVB target; 0 indicates a failed scrape.
Is a bridge approaching capacity?stress_levelTrend stress alongside host CPU and traffic; Jitsi defines 0 as no load and 1 as full capacity, with values above 1 possible.
How much meeting activity is present?conferences, endpoints, and conference-size histogramsUse per-bridge panels. JVB’s endpoint count includes OCTO endpoints, so summing across bridges can double-count a distributed conference.
Is media traffic changing?bit_rate_download, bit_rate_upload, and packet-rate metricsCompare inbound and outbound traffic with the same bridge’s conference load.

These are Jitsi statistic keys; actual Prometheus series names and labels can vary by JVB version. Check your /metrics response before writing queries. Jitsi notes that Prometheus coverage differs from the JSON endpoint and is evolving; conference-size histograms are available only in Prometheus.

1. Check the JVB endpoint locally

On each bridge, request the private metrics endpoint from the server itself:

curl -sS http://127.0.0.1:8080/metrics | head

Prometheus exposition text confirms the listener responds. The Jitsi reference configuration enables the Prometheus REST endpoint by default, though local or container settings can override it. For a connection error, check JVB logs and configuration; for not found, confirm the Prometheus endpoint and path. The separate Colibri REST API is not required.

A Linux terminal requesting the JVB private metrics endpoint at 127.0.0.1 port 8080
First verify that the bridge responds locally at /metrics; the displayed exposition is an interface illustration, not a measurement from your deployment.

2. Let Prometheus reach the private listener

The private JVB HTTP interface is not for public access. Its default host is loopback, so a remote Prometheus host cannot reach it. Bind it to a private bridge address and restrict access to the scraper. Merge this into /etc/jitsi/videobridge/jvb.conf on each bridge, replacing the sample address:

videobridge {
  http-servers {
    private {
      host = "10.20.0.11"
    }
  }
}

rest {
  prometheus {
    enabled = true
  }
}

The private interface uses port 8080 by default; JVB documents 8443 as the default TLS port when TLS is configured. Restart the bridge after changing its configuration, then test from the Prometheus host: curl -sS http://10.20.0.11:8080/metrics | head. Keep the firewall rule limited to the Prometheus source. Do not publish port 8080 to the internet: the private interface also hosts other operational endpoints. If your network requires encryption across hosts, configure the JVB private interface for TLS and configure Prometheus with the matching HTTPS and certificate settings.

A Prometheus configuration editor listing two JVB private addresses as scrape targets with a region label
Use private bridge addresses in Prometheus and a shared label such as region to group related targets.

3. Add every JVB as a Prometheus target

On the Prometheus server, add a scrape job to prometheus.yml. This example uses two private bridge addresses and a 15-second scrape interval; choose an interval that fits your monitoring and storage needs.

scrape_configs:
  - job_name: jvb
    scrape_interval: 15s
    metrics_path: /metrics
    static_configs:
      - targets:
          - "10.20.0.11:8080"
          - "10.20.0.12:8080"
        labels:
          region: east

If bridges run in multiple regions, use separate target groups and labels so dashboards can distinguish them. For an automatically changing fleet, replace static targets with a service-discovery method supported by your infrastructure. Validate the file with promtool check config /etc/prometheus/prometheus.yml, then reload Prometheus using the method configured for your service. In Prometheus, open the targets page and confirm every JVB target is UP with no scrape error. A green target means the scrape succeeded; it does not prove that a conference’s media path is healthy.

A Prometheus Targets page listing two JVB endpoints with an UP scrape state
Check the Prometheus Targets page after reloading; this sample view illustrates the expected per-bridge target status.

4. Connect Grafana and build a focused dashboard

In Grafana, add a Prometheus data source using the URL reachable from Grafana, such as http://prometheus:9090 on a shared container network or http://10.20.0.5:9090 on a private subnet. Save and test it. Grafana includes the Prometheus data source.

Start with an availability panel using up{job="jvb"}. Then build separate time-series panels for bridge stress, active conferences, endpoints, and inbound/outbound RTP rates. Use the metric browser or Prometheus expression page to identify the exact JVB series names exposed by your version. Add a bridge or region variable based on the target labels so an operator can compare one host with the pool. For cumulative counters, use a rate function over a suitable range; for gauges such as current endpoints or stress, graph the current sample directly. Do not apply rate() to a gauge.

A Grafana-style JVB dashboard with panels for bridge stress, conferences, endpoints, and RTP bitrate
A focused JVB dashboard can compare load, meeting activity, endpoints, and media rates; populate panels using the metric names present in your scrape.

Verification and common failure points

  • Target is down: test the URL from the Prometheus host, confirm JVB is bound to its private address, and allow TCP 8080 only from the scraper.
  • Target is up but JVB panels are empty: query up{job="jvb"}, then inspect the scraped series names and labels. The raw JVB statistic key may not be the exact PromQL metric identifier.
  • Only one bridge appears: confirm every target is listed in the active Prometheus configuration and that the reload succeeded.
  • Transit-time panels are absent: JVB’s reference configuration disables Prometheus transit-time statistics by default. Enable that collection only if you need it, since Jitsi notes that statistics collection has a performance impact.

Finish by joining a test meeting and checking that the expected JVB’s conference and endpoint series change over time. Use a real traffic baseline to set alerts; there is no universal stress or bitrate threshold that fits every bridge size and workload.

Official references

Leave a Comment

How to