Dump file downloaded from Metrics Plugin does not contain Mattermost metrics and only Prometheus scrape metadata visible after import

Description

When downloading the dump file from the Mattermost Metrics Plugin and importing it into Prometheus by mounting it as the TSDB data directory, no Mattermost-specific metrics are visible in the metrics explorer. Only the 5 default Prometheus internal scrape metadata metrics are present:

  • scrape_duration_seconds
  • scrape_samples_post_metric_relabeling
  • scrape_samples_scraped
  • scrape_series_added
  • up

No mattermost_* or go_* metrics are present in the imported data.

Steps to reproduce

  1. Install and enable the Mattermost Metrics Plugin on a Mattermost Entry Edition instance hosted by Mattermost
  2. Navigate to the plugin settings and download the dump file
  3. Decompress the downloaded archive
  4. Mount the extracted directory as Prometheus TSDB data volume in docker-compose.yml:
    volumes:
    • /path/to/extracted/dump:/prometheus/data
  5. Start Prometheus and open the metrics explorer
  6. Observe that only 5 Prometheus-internal scrape metrics are available and no mattermost_* metrics appear

Expected behavior
After importing the dump file into Prometheus, all collected Mattermost metrics should be visible and queryable in the metrics explorer, including but not limited to:

  • mattermost_api_time
  • mattermost_http_requests_total
  • mattermost_db_store_time
  • mattermost_post_total
  • mattermost_websocket_broadcasts_total
  • Standard Go runtime metrics (go_goroutines, go_memstats_alloc_bytes, etc.)

Mattermost Server Version : 10.11.19

Refer GitHub Issues : Dump file downloaded from Metrics Plugin does not contain Mattermost metrics and only Prometheus scrape metadata visible after import · Issue #45 · mattermost/mattermost-plugin-metrics · GitHub