MongoDB Profiler Exporter
901

Created 1/31/2024
Updated 8/9/2024
Revision 7
Categories
Databases
Grafana Version >=9.2.15
Datasources
Prometheus

This exporter regularly retrieves data from the system.profile collection and consolidates it into metrics. Additionally, the exporter fetches query shape examples for each queryHash, enabling the creation of an informative table detailing slow queries.

Install MongoDB Profiler Exporter

add prometheus job:

scrape_configs:
- job_name: "mongodb-profiler-exporter"
  scrape_interval: 10s
  metrics_path: /metrics
  static_configs:
    - targets: ['127.0.0.1:9179']

Read More

Get Dashboard
Download
Copy to Clipboard
Source Grafana.com

Used Metrics 12

  • slow_queries_count_total

  • op

  • plan_summary

  • query_framework

  • query_shape

  • topk

  • slow_queries_info

  • slow_queries_duration_total

  • slow_queries_nreturned_total

  • slow_queries_docs_examined_total

  • Inf

  • slow_queries_keys_examined_total