MongoDB & Replica Set — Full Overview

All-in-one MongoDB + Replica Set + Database Activity overview.

MongoDB & Replica Set — Full Overview screenshot 1
MongoDB & Replica Set — Full Overview screenshot 2
MongoDB & Replica Set — Full Overview screenshot 3

MongoDB & Replica Set — Full Overview

A Grafana dashboard for monitoring a MongoDB replica set via the Percona mongodb_exporter + Prometheus.

Requirements

  • Prometheus scraping a Percona mongodb_exporter
  • The exporter started with these flags:
    --compatible-mode
    --collector.replicasetstatus
    --collector.dbstats
    --collector.topmetrics
    --collector.indexstats
    --collector.diagnosticdata
    

Import

  1. In Grafana: Dashboards → New → Import
  2. Upload mongodb-dashboard-clean.json (or paste its contents)
  3. When prompted, select your Prometheus data source
  4. Open the dashboard and set the Instance variable (top left) to your target host

What's in it

SectionShows
OverviewUp/down, this node's role, connections, page faults, replica member status table
Replica SetMember state, health, ping, replication lag
Sync StatusIn-sync / lagging / out-of-sync per member, plus last-synced timestamp
Database ActivityReads/sec and writes/sec per database, DB sizes
OperationsCommand ops, document ops, query efficiency, queued ops
ResourcesMemory, WiredTiger cache, connections trend, asserts
CursorsOpen cursor counts

Notes

  • All queries filter on instance="$instance" — make sure that variable is set or panels will show no data.
  • Some panels use label names specific to this exporter build (e.g. mongodb_ss_metrics_document with a doc_op_type label). If your exporter version differs, a panel may need its query adjusted.

Enjoy. Reza.Gh(Paz.Gh) Github: https://github.com/harpy-py

Revisions
RevisionDescriptionCreated
MongoDB

MongoDB

by Grafana Labs
Grafana Labs solution

Easily monitor MongoDB, a general purpose, document-based, distributed database, with Grafana Cloud's out-of-the-box monitoring solution.

Learn more

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies