Monitoring Mattermost Calls with Prometheus

Scrape Calls plugin and RTCD metrics into Prometheus and Grafana, watch host resources alongside them, and find call quality problems before users report them.

On this page

How to monitor Mattermost Calls with Prometheus before users report bad calls

Prometheus can scrape Calls plugin metrics on port 8067 and RTCD metrics on port 8045, and node exporter can add host resource data for the servers those services run on. Grafana then turns those series into dashboards and alert rules, so the team sees degraded calls before the help desk does. The exact metric names and their meanings must be confirmed against the Calls plugin and RTCD versions you run, because they change between releases and should not be copied from older posts.

Prometheus is an open-source monitoring and alerting toolkit licensed under Apache-2.0. It pulls metrics over HTTP from targets it discovers through service discovery or a static configuration, and you query the stored series with PromQL. The project has no paid enterprise edition, so the cost of running it comes from the servers and storage, the implementation work, and the people who operate it. A team needs this when self-hosted calls are business critical and someone must answer questions such as whether media connections are failing, whether RTCD is saturated, or whether a host is short on CPU or network, using data rather than anecdotes.

Before you build dashboards, confirm three things in your environment: which Calls plugin and RTCD versions are deployed, which endpoints each exposes on your network, and which of those endpoints require authentication. Decide who owns the Prometheus server, where its data lives and how long it is kept, and who receives alerts. Prometheus local storage is not clustered or replicated, so plan its backup and failure handling like any other single-node database.

How Prometheus, Grafana and node exporter see the Calls path

The diagram starts with Prometheus, which pulls metrics over HTTP from the Mattermost server endpoint on port 8067, the RTCD service endpoint on port 8045, and node exporter on each Calls host. Those metrics endpoints sit inside a trust boundary, and Prometheus stores what it scrapes in its local time series database. Prometheus then feeds Grafana dashboards and sends alerts to Alertmanager. Check that every scrape target is reachable from Prometheus, that the endpoints are not exposed to users outside the boundary, and that Grafana users reach dashboards through their own access path.

Prometheus pulls from three endpoints inside the boundary and serves Grafana and Alertmanager.

Which monitoring layout fits your Calls deployment

This table compares three monitoring layouts for Mattermost Calls: a single Prometheus host, Prometheus with remote write to long-term storage, and single or highly available Grafana. Read each row against your call volume, the number of people who will own the stack, and how long you need metrics kept. The main takeaway is that Prometheus local storage is not clustered or replicated, and Grafana SQLite is not for production.

LayoutWhat it fits and operator effortStorage and limits from the docs
Single Prometheus on one hostSmall Calls footprint with one team owning the stack. Low effort: one scrape configuration covering the Calls plugin endpoint on port 8067, RTCD on port 8045 and node exporter for host resources.Local storage keeps data in two-hour blocks with a default 15-day retention. The Prometheus storage docs say local storage is not clustered or replicated, so a host failure means a gap in history.
Prometheus with remote write to external long-term storageTeams that need call quality trends kept longer than local retention or want a copy outside the monitoring host. Adds effort to run and secure the remote store and to watch remote write health.Remote write and remote read let Prometheus send samples to and read from external systems. Confirm the chosen storage backend's own retention, sizing and failure behavior in its documentation.
Grafana on a single instance with SQLiteEvaluation, lab or proof-of-concept dashboards only. Lowest setup effort, with a local configuration database.The Grafana installation docs say SQLite does not scale for production. Do not use it for dashboards that operators rely on during a call incident.
Grafana on one instance with MySQL or PostgreSQLProduction dashboards for one team where short interruptions are acceptable. Requires a supported database (MySQL 8.0 or later, or PostgreSQL 12 or later) and backups of that database.The docs list MySQL 8.0 or later and PostgreSQL 12 or later as production options. A single instance has no redundancy during upgrades or host failure.
Grafana with two or more active-active servers behind a load balancerOperations teams that need dashboards available during call incidents. Highest effort: load balancer, shared database, provisioning and alert routing must be designed together.The high availability docs require a shared MySQL or PostgreSQL database and database-backed auth tokens. Alerting needs extra configuration to avoid duplicate notifications, and Grafana Live has limitations in high availability.
Prometheus alerting through AlertmanagerAny layout that pages operators on degraded calls. Adds a component to run, and Prometheus should point at every Alertmanager instance rather than a load balancer.Alertmanager can run as a cluster using its cluster flags. Confirm the alerting path with your on-call tooling before relying on it.

Setting up scrape jobs for Calls and RTCD endpoints

This sequence takes Mattermost Calls and RTCD from unmonitored to scraped, dashboarded and alerting, so the team can see call health before users report problems.

  1. Confirm metrics endpoints on the server and RTCD

    The Mattermost administrator confirms that the Calls plugin metrics are exposed on port 8067 and that the RTCD service exposes its metrics on port 8045, which is the same API path Mattermost uses to reach RTCD. Check the server and RTCD configuration for the metrics settings in the versions you run, and confirm whether each endpoint requires authentication before you write scrape configuration. Test each endpoint from the Prometheus host with a plain HTTP request. The step is done when both endpoints return metric text without errors, and you have recorded any credential the scrape job will need.

  2. Install node exporter on each Calls host

    The infrastructure team installs node exporter on every host that runs the Mattermost server, RTCD or calls-offloader, so CPU, memory, network and disk figures sit next to call metrics. Bind the exporter to an internal address and restrict access with host firewall rules, since it exposes host detail. Confirm the exporter port and the service unit on each host. The step is done when a request to the exporter returns host metrics from every Calls host, and each host has the service set to start on boot.

  3. Add scrape jobs for the Calls and RTCD endpoints

    The monitoring engineer adds a scrape job for the Mattermost server on port 8067 and a job for RTCD on port 8045 to the Prometheus configuration, plus a job for node exporter on each host. Use static targets for a small, fixed set of hosts, or service discovery where Kubernetes pods or cloud instances change often. Apply a consistent job label so queries and dashboards can filter by role. Reload Prometheus and open the targets page. The step is done when every target shows as up, and a simple query returns samples for each job.

  4. Set the scrape interval for short call problems

    The monitoring engineer reviews the scrape interval and evaluation interval for the Calls jobs. A long interval can hide brief audio or connection problems that last only seconds, so choose an interval that gives enough resolution for the events you need to see, and keep the Prometheus storage and retention settings in line with that choice. Compare a short window of call-related metrics against a known test call to confirm the samples change when a call starts and ends. The step is done when a test call produces visible changes in the chosen time window.

  5. Load Calls and RTCD dashboards in Grafana

    The monitoring engineer connects Grafana to the Prometheus data source and either imports the Calls and RTCD dashboards or builds panels for active calls, participants, connection quality and host resources. Store the data source and dashboards as provisioning files where possible, so the setup can be reviewed and reproduced. Set Grafana's own access controls and confirm that the metrics endpoint for Grafana itself requires authentication. The step is done when each panel loads data for the test call, and the dashboard can be reloaded from its saved definition on a clean instance.

  6. Add alert rules routed through Alertmanager

    The monitoring engineer writes alert rules for targets that go down, RTCD instances that stop reporting, and host resource pressure on the Calls hosts, then points Prometheus at every Alertmanager instance. Set the thresholds against baselines from a test call and from normal use, and confirm the grouping and receiver settings so on-call staff are not flooded. The step is done when a deliberately stopped test target fires an alert that reaches the configured receiver, and the alert clears when the target returns.

Which signals point to call quality problems

Call quality problems rarely show up in one place. Host, scrape, session and media signals each answer a different question, so the useful habit is to pull them together for the minute a user reports a bad call. Cards below group the signals by what they reveal and how to line them up against the complaint time.

Host resource pressure on Calls hosts

Node exporter output for the machines running the Calls service and RTCD shows CPU saturation, memory pressure, network errors and bandwidth. Media servers degrade when CPU or NIC throughput peaks, so a bad call that lines up with a CPU spike points to capacity, not the network path. Check these series on every Calls host, not only the Mattermost application servers. Take exact metric names from the node exporter output on your version, and set thresholds from your own baseline during quiet hours.

Prometheus overview

Scrape success and target availability

The up series and scrape duration for each Calls and RTCD target show whether Prometheus could reach the metrics endpoints at all. A gap in scrapes during a complaint can mean the process was down, restarting or overloaded, and that absence is itself a signal. Confirm that the Calls plugin endpoint on port 8067 and the RTCD endpoint on port 8045 are both listed as targets. Prometheus values reliability over precision, so treat missing points as evidence to investigate rather than as proof of a clean period.

Session and participant activity over time

Gauges and counters for active calls and connected participants show load on the system as it changes through the day. Plot them against the complaint time to see whether the bad call happened during a peak in concurrent sessions or during an ordinary period. A sudden rise in participants per call before quality dropped suggests the service was sized for fewer users than it now carries. Use the exact session metric names exposed by your Calls version and record the peak level you expect for your organization.

RTCD media and connection behavior

RTCD metrics describe the media path itself, including connection counts and the handling of media sessions on the server. Changes in these series that move with a complaint help separate a media-server problem from a client-side or network one. If connections fail to establish or drop while host metrics look healthy, check firewall, UDP reachability and relay placement before scaling hardware. Record which RTCD metrics your version exposes, because names and labels vary between releases.

Error and restart patterns

Error counters and process restart indicators show whether a fault recurred, and when. A restart that appears a few seconds before several complaints usually means the problem was the service restarting, not the user's connection. Compare restart timestamps from the process and container runtime with scrape gaps and host spikes at the same moment. Define alert rules only after you have seen which error series move during real incidents in your environment.

Why Prometheus retention and gaps change what you can investigate

A single Prometheus server keeps its own history, and that history is only as long and as complete as its local storage. Prometheus writes samples to a local time series database organized into two-hour blocks, with a write-ahead log protecting recent data. Its default retention is 15 days, and you can set retention by time or by size. The Prometheus storage documentation is explicit that local storage is not clustered or replicated and should be operated like any other single-node database. For Calls, this means that if the Prometheus server is down during a bad afternoon, the metrics for that window are missing, and no second copy exists to fill the hole. Before go-live, confirm the retention settings, the disk sizing that supports them, and who gets paged when the scrape target stops answering.

Prometheus is designed to value reliability over precision. The project's overview says it is not a good choice where 100% accuracy is required, and per-call billing is the example it gives. Treat the call metrics as operational signals for finding degraded quality and failing components, not as a record of exactly how many calls happened or how long each one lasted. If finance, a customer or an audit needs exact call accounting, that requirement belongs in a different system with its own guarantees. Write this boundary into the monitoring design so that dashboards are not later quoted as billing or compliance evidence.

Remote write and remote read let Prometheus send samples to external long-term storage and read them back, which is the standard way to extend history beyond local retention. Decide retention from the investigation window your team actually needs, such as how far back a recurring quality complaint must be traced or how long an incident review may take to start. Then confirm that the remote storage you choose meets that window, that its own outage behavior is understood, and that the team can still query data during a Prometheus failure. The Prometheus storage documentation describes these protocols and the local storage model you are extending.

Securing metrics endpoints, dashboards and alert paths

Metrics from Calls and RTCD describe who is calling, from where and how well calls perform, so they need the same access discipline as the platform itself. The cards below cover who can scrape and query the data, how Grafana is hardened and who can sign in to dashboards, and how long metrics are kept.

Authentication on metrics endpoints

Prometheus scrapes Calls metrics from port 8067 on the Mattermost server, RTCD metrics from port 8045 and host metrics from the node exporter on its own port. Grafana's hardening guidance recommends requiring authentication for its metrics endpoint. Confirm whether each endpoint can require credentials in the version you run, then set the matching authentication in each scrape job. Test every endpoint with an unauthenticated request before go-live.

Network access to scrape ports

Ports 8067 and 8045 and the node exporter port expose operational detail about the server and media services, so only the Prometheus servers should reach them. Enforce this in host firewalls or network security groups, and on Kubernetes in network policies. Verify the rule by connecting from a host outside the allowed set and confirming the connection fails.

Prometheus UI, API and alert routing

The Prometheus security model explains what the project expects operators to protect. The query UI and HTTP API are the parts most often exposed by mistake, so keep them on a private network or place authentication and TLS in front of them with a proxy you control. Alertmanager docs say Prometheus should reach every Alertmanager instance, so list each instance in the Prometheus configuration and test that alerts for a paused call service still arrive.

Grafana hardening settings

Grafana's security hardening guide recommends secure and SameSite cookies, a Content Security Policy and Trusted Types. It also recommends hiding the version from unauthenticated users and verifying the domain to guard against DNS rebinding. Record each chosen setting, check that panels and plugins still load, and confirm the settings again after every upgrade.

Grafana sign-in and dashboard access

All Grafana editions support LDAP, generic OAuth, Entra ID, Okta, GitHub, GitLab, Google OAuth, auth proxy and JWT. SAML, team sync, active sync and SCIM provisioning are available only in Grafana Enterprise and Grafana Cloud, according to the authentication docs. If your identity provider requires SAML or dashboard permissions depend on team sync, decide on the edition before you design folder and role access.

Metrics retention and call metadata

Prometheus keeps local data for 15 days by default, and its storage docs state that local storage is not clustered or replicated. If exporter labels include user, channel or call identifiers, the stored series become personal or operational records. Agree retention periods with your privacy and records teams, set them in the server configuration, and back up the data directory if you need it to survive a host failure.

Questions teams ask before they monitor Calls with Prometheus

What does it cost to monitor Mattermost Calls with Prometheus?

Prometheus itself has no paid edition. It is licensed under Apache-2.0, so the cost comes from the infrastructure that runs Prometheus and Grafana, the storage for metrics, the implementation work and the time your operators spend running it. Infrastructure and storage recur every month, while implementation is usually one-time. Grafana costs depend on the edition you choose: its open-source releases are licensed under AGPLv3, while Grafana Enterprise is a commercial option, and features such as SAML and SCIM are available only in Enterprise and Grafana Cloud. Ask any quote to separate one-time implementation, recurring infrastructure, and licensing for each Grafana edition.

How long does a Calls monitoring setup take?

Duration depends on how many Calls and RTCD hosts you run, how deep the dashboards need to go, and how much alert tuning your team wants before alerts reach on-call staff. A small deployment with a few hosts and a standard dashboard set is much quicker to finish than a multi-region fleet with custom alerts for each call quality signal. Ask for a written timeline that lists the hosts in scope, the dashboards delivered, and the alert rules you expect to tune during a baseline period.

Can our internal team set up Calls monitoring alone?

Often yes, if the team already runs Linux servers and has someone comfortable with Prometheus. The work needs Linux administration to install node exporter and manage service configuration, working knowledge of Prometheus scrape configuration and PromQL to write queries and alert rules, and Grafana administration for dashboards and access. If RTCD runs on Kubernetes, add Kubernetes skills for service discovery, network policies and pod scaling. Be honest about the time operators can spare for tuning alerts over the first weeks, since that is where most setups need attention.

What do we need to provide before the work starts?

Expect to provide access to the Mattermost server and RTCD hosts so metrics endpoints on ports 8067 and 8045 can be checked, and permission to install node exporter on each host. You will also need to confirm which network paths allow Prometheus to reach those endpoints, and who approves the firewall rules. Plan a baseline period of normal call traffic so alert thresholds reflect your real usage, and name the people who will receive alerts and review dashboards. Agree on how metrics endpoints are protected, because the Grafana hardening guidance recommends requiring authentication for the metrics endpoint in that tool.

Do we need a highly available Grafana for call monitoring?

Not always. A single Grafana server is enough for many teams, and Grafana documents that SQLite is not suitable for production, so a production setup should use MySQL or PostgreSQL for its configuration database. High availability needs at least two active-active Grafana servers behind a load balancer, a shared MySQL or PostgreSQL database, and extra configuration so alerting does not send duplicate notifications. Grafana Live also has limitations in high availability. Decide based on how much your on-call team relies on dashboards during a live incident, and confirm the supported versions with Grafana's installation and high availability documentation.

Does Prometheus monitoring replace a test call?

No. Prometheus shows host resource use and service health signals, such as scrape results and metrics exported by the Calls plugin and RTCD, but it cannot prove that a user in a restrictive network can join a call and hear audio. Prometheus also values reliability over precision and is not suitable where every event must be counted exactly. Keep scheduled test calls from representative networks alongside the dashboards, and use those tests to check whether the metrics reflect what users actually experience.

Where does Prometheus store data, and how long is it kept?

Prometheus stores data in a local time series database organized into two-hour blocks, with a write-ahead log. The default retention is 15 days, and you can set retention by time or size. Local storage is not clustered or replicated, so manage it like any other single-node database, with disk sizing and backups planned. If you need longer history for capacity reviews or incident analysis, Prometheus supports remote write to external long-term storage systems, which adds its own cost and operational work.

What to confirm in your environment before you rely on these dashboards

The scrape targets, metric names and retention in this design depend on the Calls plugin, RTCD and Grafana versions you run and on how your organization operates them. Treat each item below as a question to settle with Mattermost, your platform team or your own test environment before alerts and dashboards become part of on-call practice.

Which endpoints and metric names apply?

Ask which metrics endpoints your Calls plugin and RTCD versions expose on ports 8067 and 8045, and confirm the exact metric names in a test scrape. Metric names can change between plugin and RTCD releases, so a dashboard built on one version can show empty panels after an upgrade. Record the versions alongside each dashboard so reviewers can match queries to the code that produced them.

Mattermost release pages

Does the endpoint require authentication?

Confirm whether each metrics endpoint accepts unauthenticated scrapes in your configuration, and if it does not, which credential Prometheus must present. Store that credential in a secret store rather than in a plain scrape configuration file. Test a scrape from the Prometheus host with the same network path and credentials that production will use.

Is RTCD on Kubernetes or Linux?

Confirm where RTCD runs, because the scrape targets differ. On Linux, targets are usually fixed hosts and can use static configuration. On Kubernetes, pods scale and get new addresses, so you need service discovery and labels that identify each RTCD instance. Also confirm whether node exporter runs on the same hosts as RTCD and how it is deployed in each environment.

How long must investigations look back?

Decide how far back your team must query to investigate a call-quality complaint or an outage, then compare that with the Prometheus retention you configure. The default local retention is 15 days, which may be too short for quarterly reviews or incident investigations. Confirm whether longer history needs remote write to external long-term storage, and who owns that system and its cost.

Must alerts survive a node loss?

Confirm whether a missed call-quality alert is acceptable if one monitoring node fails. Alertmanager can run as a cluster for high availability, and Prometheus should be configured to send alerts to every Alertmanager instance rather than through a load balancer. Also decide how the local Prometheus storage is protected, because it is not clustered or replicated by default.

Which Grafana version and edition?

Confirm the Grafana version and edition you will run, and check its support window before you commit dashboards to it. Minor releases receive support for a limited period, so a version chosen during build may be out of support during operation. Also confirm which authentication methods your edition supports, since SAML and team sync are limited to Grafana Enterprise and Grafana Cloud.

Minor release support
9 months
Grafana upgrade guidance

How DeployOpen scopes and delivers Calls monitoring

DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, so Calls metrics, Prometheus and Grafana run where your security and operations teams can review them. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Inventory which Calls plugin and RTCD metrics endpoints on ports 8067 and 8045 your deployment exposes and who needs access to them.
  • Agree the Prometheus and Grafana hosting model, storage retention and whether a remote write target is required.
  • Confirm node exporter coverage for Mattermost, RTCD and TURN hosts, and which call quality signals your team needs to watch.

How we build

  • Configure Prometheus scrape targets for the Calls plugin and RTCD endpoints, using service discovery or static configuration in your environment.
  • Deploy node exporter on the hosts running media services and record the resource metrics that sit alongside call quality data.
  • Build Grafana dashboards and alert rules, then test them against controlled call traffic before they are relied on.

How we hand over

  • Document scrape configuration, dashboard definitions, alert rules and their owners in a handover pack your team can version.
  • Provide provisioning files for Grafana data sources and dashboards so the setup can be reproduced and reviewed.
  • Walk your operations team through alert triage, known limits of Prometheus accuracy and the steps for adding new targets.

How we support

  • Offer ongoing support, Prometheus and Grafana upgrades and monitoring checks as a retainer if your team wants continued help.
  • Review dashboards and alert thresholds again after Mattermost server upgrades or changes to the RTCD deployment.
  • Confirm with your team how Prometheus and Grafana patch cycles will be followed, since support windows depend on the versions you deploy.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.