Monitor performance using the Metrics plugin#
Available on Enterprise plans
Cloud and self-hosted deployments
The Mattermost Metrics plugin is an alternative tool to collect application metrics from Mattermost that doesn’t require you to install and integrate Prometheus with Mattermost.
The Metrics plugin can be installed on Mattermost versions from v6.3 and collects and stores the same performance monitoring metrics as Prometheus, without having to deploy these third-party tools. Data is collected every minute and is stored where the plugin is running. The data is synchronized to either a cloud-based or local file store every hour, and retained for 15 days.
Using the Mattermost Metrics plugin, you can download and share the collected data with Mattermost to understand application performance, troubleshoot system stability and performance, as well as inform route cause analysis.
Tip
Already have Prometheus and Grafana deployed? You can also use these tools to monitor performance of your Mattermost deployment.
Install the Mattermost Metrics plugin#
Download the latest version from the Mattermost release page.
In the System Console, go to Plugins > Plugin Management to upload the plugin file. Alternatively, you can place the plugin file in the Mattermost server’s plugin directory manually.
Enable the plugin in the System Console.
Furthermore, to use the dump file generated by the plugin, you can simply clone the Dockprom repository. Change the Prometheus data volume to point to the dump that you just downloaded. The downloaded file is compressed, so to be able to use it, you need to decompress it first.
The volume configuration for Prometheus should look like the code below in the docker-compose.yml file:
volumes:
- ./prometheus:/etc/prometheus
- /Path/To/Dump/Directory:/prometheus/data
Once you set this up, run docker-compose as described in Dockprom Repository.
You can also use our Mattermost Performance Monitoring v2 dashboard by simply importing it into Grafana.
Open Grafana (
<localhost>:3000by default) and then log into it.Once you log in, go to the Plus
icon on the left sidebar, and then select Import.
Enter the dashboard ID (
15582) in the Grafana.com Dashboard field, and then select Load to fetch the dashboard.
What’s collected?#
Mattermost provides custom metrics and standard Go metrics that can be used to monitor your system’s performance.