Configure performance monitoring by going to System Console > Environment > Performance Monitoring, or by editing the config.json file as described in the following tables. Changes to configuration settings in this section require a server restart before taking effect.

Enable performance monitoring#

Also available in legacy Mattermost Enterprise Edition E20

Enable or disable performance monitoring.

  • true: Performance monitoring data collection and profiling is enabled.

  • false: (Default) Mattermost performance monitoring is disabled.

  • System Config path: Environment > Performance Monitoring

  • config.json setting: ".MetricsSettings.Enable": false",

  • Environment variable: MM_METRICSSETTINGS_ENABLE

See the performance monitoring documentation to learn more.

Listen address for performance#

Also available in legacy Mattermost Enterprise Edition E20

The port the Mattermost server will listen on to expose performance metrics, when enabled.

Numerical input. Default is 8067.

  • System Config path: Environment > Performance Monitoring

  • config.json setting: ".MetricsSettings.ListenAddress": 8067",

  • Environment variable: MM_METRICSSETTINGS_LISTENADDRESS

Enable notification metrics#

Enable or disable notification metrics data collection.

  • true: (Default) Mattermost notification data collection is enabled for client-side web and desktop app users.

  • false: Mattermost notification data collection is disabled.

  • System Config path: Environment > Performance Monitoring

  • config.json setting: ".MetricsSettings.EnableNotificationMetrics": true",

  • Environment variable: MM_METRICSSETTINGS_ENABLENOTIFICATIONMETRICS

See the performance monitoring documentation to learn more about Mattermost Notification Health metrics.