Monitoring Jitsi Videobridge with Prometheus: what it answers and when to use it
Prometheus scrapes the Jitsi Videobridge private /metrics endpoint to show how loaded each media router is and how the calls on it are doing, so you can see degradation before users report it. Teams running a self-hosted Jitsi Meet often find out about a struggling bridge only when a meeting freezes or a participant complains. A metrics pipeline turns that silent load growth into a trend line and an alert. In a deployment made of a web server, the Prosody XMPP server, Jicofo and one or more Jitsi Videobridge instances, the bridge is where media is routed, so it is the component whose capacity most directly limits call quality.
Prometheus is an open-source monitoring and alerting toolkit released under the Apache-2.0 license, so there is no license fee for the software itself. It works by pulling metrics over HTTP from each target on a schedule, which means the videobridge must expose its endpoint and the Prometheus server must be able to reach it. Be clear about what the data is for. The Prometheus documentation says the system values reliability over precision and is not suited to cases that need exact accounting, such as per-request billing. Treat the numbers as reliable indicators for trends, capacity planning and alert thresholds, not as an audit record of every participant's experience.
Before you decide to adopt this setup, confirm three things in your own environment: how many videobridges you run, whether they are reachable from the monitoring host on a private network, and who will own the Prometheus server and its storage. Prometheus stores data on a single node that is not clustered or replicated, so it needs its own care. Also confirm which metrics your installed Jitsi version exposes, since names can change between releases. If you already run Prometheus and Grafana for other services, adding the bridge is a small step; if you do not, the work is in operating the monitoring stack as much as in configuring the scrape.
How Prometheus reaches videobridge metrics on a private network
The diagram starts at the Jitsi Videobridge on the private network, which exposes its metrics on a private /metrics endpoint. Prometheus pulls those metrics over HTTP from an address that is only reachable inside the monitoring network, and can optionally forward alerts to Alertmanager. The dashed trust boundary marks the public internet, where the endpoint must have no route in. Check that no public address or reverse proxy path reaches /metrics, and that Alertmanager receives alerts only from Prometheus.
Prometheus scrapes the videobridge privately while the public path stays closed.
Which videobridge metrics answer which operator question
Capacity metrics answer whether a videobridge has room for the meetings it is being asked to host. Videobridges scale horizontally by adding more bridges, and the scalable setup guide suggests sizing each bridge with 4 or 8 CPUs and 8 GB of RAM, so the metrics you need are the ones that show how close a bridge is to those limits. Look for gauges of active conferences and participants on each bridge, and for counts of endpoints that are currently sending or receiving media. Compare them across bridges, because Jicofo distributes new conferences and an uneven spread hides a full bridge behind an empty one.
- Conferences and endpoints: Current counts per bridge show how many meetings and participants each one carries at this moment.
- Host CPU and memory: Operating system metrics from the node exporter show whether the bridge machine itself is the constraint.
- Bridge spread: Comparing load across bridges shows whether the focus component is balancing new meetings evenly.
- Trend over peak hours: Keep a rolling history so you can see the busiest window your bridges actually handled.
- Headroom threshold: Alert when a bridge stays near the load you have tested it to carry, not at the point it fails.
Confirm the exact gauge names and labels in your build's /metrics output, then set thresholds from your own load tests rather than from defaults.
Quality metrics answer whether the media flowing through the bridge is arriving well. A bridge can have spare capacity and still deliver freezes, choppy audio or low resolution, because packet loss, jitter and bitrate problems often start on the network path rather than in the bridge. The videobridge reports statistics about the streams it forwards, and these are the signals that let you separate a bridge problem from a client or network problem. Use them to show trends across meetings, since individual participants are better inspected with client-side tools.
- Packet loss by direction: Loss on streams the bridge sends and receives points to a different cause depending on which way it occurs.
- Jitter and round-trip time: Rising values across many endpoints at once usually indicate a shared network or host issue.
- Bitrate and layer selection: Falling bitrates across a bridge suggest congestion or constrained bandwidth at the bridge or its uplink.
- Stream and endpoint counts: Compare stream counts with participant counts to spot mismatched media routing.
- Alert on sustained change: Short spikes are common, so alert on values that stay high for a meaningful window.
Confirm which quality statistics your videobridge version exports, because not every release publishes all of them, and tie each alert to a runbook entry.
Process health metrics answer whether the videobridge is running correctly as a service. They cover the Java runtime, the restart history, error and exception counts, and whether the bridge is reachable and accepting work. These signals are the first to change when a deployment breaks after an upgrade, a configuration change or a certificate expiry, so they belong in the alert set even when capacity looks comfortable. The videobridge also exposes a health endpoint for load balancers and orchestrators, and it is useful to pair that check with metrics because a bridge can answer a health probe while its internal state degrades.
- Runtime memory and garbage collection: Heap use and collection pauses show whether the JVM is under pressure before it fails.
- Restart and uptime: A reset counter or uptime gauge reveals crash loops that a dashboard can hide.
- Error and exception counts: Rising error counts after a change often point to the change itself.
- Scrape success: A target that stops answering is an outage signal, and Prometheus records this through its own up series.
- Version and build labels: Some exports carry build information, which helps you correlate behavior with an upgrade.
Confirm the runtime and error metric names with your installed version, and check whether the health endpoint and metrics share the same internal checks.
Scrape and storage options and when each fits
This table compares the main scrape, storage and instance layout choices for collecting Jitsi Videobridge metrics with Prometheus. Read each row against your own bridge count, retention needs and regions, then pick the simplest option that meets your review and troubleshooting requirements. For most single-region deployments, a single instance with static targets and local storage is the starting point, with remote write added when history must outlive the local retention window.
| Decision | Option | When it fits |
|---|---|---|
| Scrape targets | Static configuration | A small, fixed set of videobridge hosts that changes rarely, managed through configuration management such as Ansible or Puppet. |
| Scrape targets | Service discovery | Bridges are added or replaced often, for example in autoscaled or Kubernetes-managed pools, so the target list must follow the infrastructure. |
| Local storage retention | Default 15 days | Enough for day-to-day troubleshooting and short trend reviews. Confirm the window against your incident review and audit evidence needs. |
| Local storage retention | Time or size limit set explicitly | Use when disk capacity is fixed or when your policy sets a specific history length. Set both limits so the disk cannot fill unexpectedly. |
| Long-term history | Remote write to external storage | Needed when metrics must be kept longer than local retention or queried centrally. Local storage is single-node and not replicated, so plan the external system and its access controls separately. |
| Instance layout | Single Prometheus instance | One region, a modest number of bridges and one team owning monitoring. Simplest to operate, but it is a single point of failure for metrics. |
| Instance layout | Separate instance per region | Bridges span regions or sites that must keep working during a wide-area outage. Each instance needs its own storage, alerts and access review. |
Setting up the Prometheus scrape of the videobridge
This sequence moves the videobridge from an unmonitored host to a Prometheus target on a private network. It ends with a query returning stored series from the bridge, which gives the baseline for the load and quality alerts that follow.
Confirm the metrics endpoint for your version
The operator checks which metrics endpoint, port and path the installed videobridge version exposes before changing anything. Endpoint settings can differ between releases, so the exact values must come from the documentation for your version. Record the bridge's private address, the port and the path in your change notes. Check: the notes list all three values, each taken from the version's own documentation, and the installed version matches the one those pages describe.
Enable the metrics endpoint on the bridge
The bridge operator turns on the metrics endpoint in the videobridge configuration for the installed version, then restarts the service so the change takes effect. Make the change in the same configuration management tool used for the rest of the deployment so it survives upgrades. Check from the bridge host itself, using curl against the endpoint and port recorded earlier. The check passes when the response is plain metrics text and the service log shows no startup errors. If the response is empty, confirm the setting name in the documentation for your version.
Restrict the endpoint to the monitoring network
The network or security team limits the metrics port so that only the Prometheus server can reach it. Use a host firewall rule or security group that allows the metrics port from the Prometheus server address and blocks it from everywhere else, including the public interface. Confirm the web server or reverse proxy in front of the bridge does not forward the metrics path. Check from a host outside the monitoring network: the connection should time out or be refused. Then check from the Prometheus server: the same request should return metrics. Record both results.
Add the bridge as a scrape job
The monitoring engineer adds a scrape job to the Prometheus configuration file with the bridge's private address, port and metrics path. Use a job name that identifies the videobridge role, and give each bridge its own target so its series can be told apart. Add an environment label if the team runs more than one deployment. Validate the file with promtool before reloading. Check: promtool reports the configuration as valid, and the change is committed to version control so it can be reviewed.
Reload Prometheus and check target health
The monitoring engineer reloads Prometheus using the reload method enabled in the installation, then opens the Targets page under Status in the Prometheus web interface. The bridge target should show as up, with a recent last scrape time and no error message. If it is down, compare the error text with the firewall rule and with the address and port in the job. Check: the bridge target shows as up under the new job, and the last scrape and scrape duration fields are populated.
Confirm series appear in the query view
The monitoring engineer runs a query in the Prometheus expression browser against a metric name taken from the bridge's metrics output, filtered by the job and instance labels. A returned series confirms that samples are being stored. Local storage keeps data for 15 days by default, and retention can be set by time or size, so decide retention before relying on the data for trend review. Check: the query returns one series per bridge with the expected labels, and the value updates on the next scrape.
Alerting thresholds to set and how to tune them
Build alert rules around sustained load and quality signals, not single spikes. A videobridge that briefly reaches a high participant count or a short burst of packet loss during a busy meeting is normal behavior, so an alert that fires on one sample will page the on-call engineer for conditions that resolve on their own. Use a for clause in each rule so the condition must hold across a meaningful window before the alert becomes active, and pair load alerts with quality alerts so that a full bridge and a degraded bridge are distinguished. Set the numeric limits from a baseline you measure in your own environment: record conference count, participant count, bitrate and loss over several weeks of normal use, including your peak meeting days, then compare that baseline with the sizing assumptions in the Jitsi scalable setup guide. Do not copy thresholds from a forum post or a dashboard template without checking them against your own hardware and meeting patterns.
Alertmanager receives alerts from Prometheus and applies three controls before anyone is notified. Grouping combines related alerts from the same bridge fleet into one notification, inhibition suppresses lower-value alerts while a more fundamental one is firing (for example, a bridge-down alert can hold back its load alerts), and silences let operators mute a known condition during planned maintenance for a defined window. Write the silence with a clear comment and an expiry so it does not hide a real fault later. For high availability, run more than one Alertmanager instance using its cluster flags, and configure Prometheus to send alerts to every instance rather than through a load balancer, as the Alertmanager documentation describes. Confirm that your notification receivers, such as email, chat or paging, are reachable from each instance, and test the full path by firing a deliberate test alert on each Prometheus and Alertmanager pair before go-live.
Keeping the metrics endpoint off the public internet
The videobridge metrics endpoint describes load, conferences and participants, so it should be reachable only from the Prometheus server that scrapes it. The cards below cover the exposure risk, the network path, access controls to confirm, and the rules for what metrics may contain.
Why public metrics are a risk
A /metrics endpoint on a public address reveals how many conferences a bridge runs, how many participants join and how the deployment is sized. That information helps an attacker plan a denial-of-service attempt and map your infrastructure. Check from outside your network that the videobridge metrics port does not answer, and treat any response as a finding to close before you add alerts.
Restrict the scrape path by network
Allow the metrics port only from the address of the Prometheus server, using host firewall rules or the security group of the cloud network. Keep the public ports for Jitsi, such as 443/TCP and 10000/UDP, separate from the metrics port in your rule set. Confirm the port your videobridge exposes metrics on in your configuration, since the Debian and Docker installs may differ.
Place Prometheus on a management network
Run Prometheus on a host in the management or monitoring segment, not on the bridge host or the public edge. A segmented path means a compromised bridge cannot reach Prometheus's own API and UI, and the scrape traffic never crosses the internet. Document which subnet is allowed, and review it when you add a second videobridge or move hosts.
Authentication or proxy options to confirm
Network filtering is the first control, but you may also need a reverse proxy that requires a client certificate or a token in front of the metrics path. Confirm with the Jitsi and Prometheus documentation for your version whether the videobridge metrics endpoint supports built-in authentication. If it does not, enforce the same restriction at a proxy or with mutual TLS and test that unauthenticated requests fail.
Keep meeting content out of metrics
The videobridge decrypts media only in memory while routing and does not store it, according to Jitsi's security documentation. Metrics should describe counts, rates and health, never room names, participant names, chat text or identifiers that link a person to a meeting. Review metric labels and any log shipping before you grant wider access, because a label with a room name can expose more than the security model intends.
Jitsi security pageControl who reaches Prometheus
Prometheus's security model assumes that anyone with access to its API or UI can read the collected data and change its configuration, so limit access to operators who need it. Put the Prometheus web interface behind authentication, bind it to a private address where possible, and confirm the current guidance in the Prometheus security model for your release. Keep Alertmanager and any dashboards on the same private path.
Prometheus security modelQuestions buyers ask before monitoring Jitsi with Prometheus
What does it cost to monitor Jitsi with Prometheus?
Prometheus itself has no license fee. It is Apache-2.0 licensed and there is no paid enterprise edition of the project, so the cost comes from four places: the server or virtual machine that runs Prometheus, the disk that holds its time series, the implementation work to scrape Jitsi and build alerts, and the staff who keep it running. The first three are largely one-time or infrastructure costs, while staff time and storage growth recur. When you ask for a quote, ask for the implementation scope in writing, the hosting assumptions, the retention period you need, and who will handle upgrades and alert tuning after handover.
How long does it take to get a working Jitsi dashboard and alert set?
The duration depends on how many videobridges and Prosody hosts you run, whether the Prometheus stack already exists, and how many alert rules your on-call team wants. No timeline is fixed here. A minimal path is to expose the private metrics endpoint, add scrape targets, confirm data arrives, and then add dashboards and a small set of alerts. Each step is short on its own, but validating alerts against real load takes longer than writing them. Ask any partner to split the work into scrape setup, dashboards, alert rules and handover, and to state what is confirmed in a test environment before production.
What does our team need to provide for this work?
You need access to the Jitsi hosts and the network path from your Prometheus server to each videobridge metrics endpoint, a place to run Prometheus, and an owner who can approve alert routing. Prometheus should also be connected to an Alertmanager that your on-call process uses, and that Alertmanager should be configured with every instance Prometheus points at, not a load balancer. Your team should also decide who receives pages, what counts as a severe condition, and where dashboards are shared. Confirm your existing monitoring stack, identity model for Grafana access, and change process before work starts.
Can our own team set up Jitsi monitoring without outside help?
Yes, a team with Linux, Prometheus and Jitsi operations experience can set this up internally. The parts that take the most judgment are choosing alert thresholds that match your meeting profile, keeping the metrics endpoint off the public internet, and running Prometheus as a single-node service with backups and a restore test. Prometheus local storage is not clustered or replicated, so high availability for the monitoring layer is a separate design decision. An outside partner is most useful when the team lacks time or experience with these points. Decide which parts you will own before deciding whether to hire help.
How do retention and remote storage change the monitoring bill?
Local retention is the main driver of disk use. Prometheus stores data in two-hour blocks with a write-ahead log, and its default retention is 15 days, configurable by time or size. Longer retention on local disk means more storage to size, back up and monitor. If you need data for longer than local storage suits, Prometheus supports remote write and remote read to external long-term storage systems. That adds a second system to pay for, secure, and operate, so the cost depends on the chosen backend. Ask for a sizing estimate based on your series count, scrape interval and retention target.
Does the monitoring layer need its own security review?
Yes. The Jitsi metrics endpoint should be reachable only from the Prometheus server on a private network, not from the public internet, and Prometheus itself should sit behind your normal access controls. Dashboards and the Prometheus web interface can expose internal hostnames and load details, so restrict who can query them. Review Prometheus's security model page and confirm which endpoints are exposed, which authentication your reverse proxy or network policy enforces, and how Grafana users are authenticated. Treat the monitoring stack as part of your Jitsi attack surface during review.
What will the engineers need to check when metrics stop arriving?
Start with the scrape target status in the Prometheus interface, then confirm the endpoint responds from the Prometheus host and that the port and path in your configuration match the Jitsi deployment. Next check that the network policy or firewall allows the Prometheus server to reach each videobridge, and that the service on the host is running. Silent gaps often come from changed hostnames, restarted containers with new addresses, or a retention limit that removed old data. Record each failure mode in your runbook so the on-call team can repeat the checks without the original builder.
How DeployOpen scopes Jitsi monitoring with Prometheus
DeployOpen fixes the scope of a Jitsi metrics engagement in writing before any configuration starts. The agreed scope covers which Jitsi Videobridge hosts and Prosody servers are scraped, how the private /metrics endpoint is exposed to the Prometheus server, how long data is retained locally and whether it is forwarded to external long-term storage, which alerts exist and who receives them through Alertmanager, and which network controls keep the endpoint off the public internet. Each of these is a decision the client's operations and security teams should weigh in on, because they determine firewall rules, storage sizing and on-call routing. Deliverables are then defined against that scope: the Prometheus and Alertmanager configuration, the scrape and alert rules, the network restrictions, and documentation the client's own team can run.
All work happens in the client's own infrastructure, whether that is their cloud accounts, data centers or air-gapped network. DeployOpen does not publish a price list. A quote follows from the written scope, so the inputs that move cost are the number of videobridges and servers to monitor, the number of Prometheus and Alertmanager instances, whether remote storage is in scope, how many alert receivers and escalation paths must be wired up, and how much of the network hardening is new work versus existing controls. Ask for the quote to list these items separately so you can see which ones are one-time and which recur. Confirm with the vendor and your own environment which Prometheus release line you intend to run before the scope is signed.
Handover includes a walkthrough of the configuration, runbooks for the alerts, and a record of the agreed retention and access decisions. Once the system is live, ongoing support, upgrades and periodic checks of the metrics endpoint can be placed under a retainer rather than bought as separate tickets. Ask at the scoping stage who on your side owns alert tuning after handover, since thresholds that are right for one meeting pattern often need adjusting after a few weeks of real use.

