Slide 3 of 10

MongoDB integration

MongoDB integration

MongoDB is a document-based, distributed database built for modern applications. The MongoDB integration gives you visibility into operational health, replication, and resource usage.

What it monitorsOperations, connections, replication status, memory usage, document metrics
How it worksGrafana Alloy’s built-in MongoDB exporter scrapes metrics from your MongoDB instance
What you get10 alerts + 3 dashboards (Cluster, Instance, ReplicaSet)
PrerequisitesMongoDB user with monitoring privileges

What you’ll see in the dashboards

  • MongoDB Cluster — Cluster-wide node counts (up/down), operation counters, and resource usage
  • MongoDB Instance — Per-instance connection statistics, operation counters (insert, query, update, delete), and performance metrics
  • MongoDB ReplicaSet — Replication lag, member states, and oplog window

Trade-offs

StrengthsConsiderations
Purpose-built dashboards for MongoDB operationsInfrastructure metrics only — no query-level analysis
Replica set monitoring and alertingRequires a dedicated monitoring user
Minimal configuration with Alloy’s built-in exporterDoes not cover sharded cluster-specific metrics

Learning path

Monitor MongoDB with Grafana Cloud

Welcome to the MongoDB monitoring learning path that shows you how to use Grafana Alloy to send MongoDB metrics to Grafana Cloud for comprehensive database observability.

18 min
Beginner
Docs & blog posts

Open in Grafana Cloud

Complete this learning path directly in your Grafana Cloud stack with an interactive learning experience.

Path completed

Script

The MongoDB integration monitors operational health, replication, and resource usage for MongoDB instances. It uses Grafana Alloy’s built-in MongoDB exporter to scrape metrics and ships with 10 alerts and 3 dashboards.

The dashboards cover three levels. The Cluster dashboard shows cluster-wide node counts, operation counters, and resource usage. The Instance dashboard drills into per-instance connection statistics and performance metrics. And the ReplicaSet dashboard tracks replication lag and member states.

MongoDB isn’t supported by Database Observability, so the integration is the primary monitoring approach. It provides infrastructure-level metrics but not query-level analysis.

If MongoDB is what you’re running, scroll down to start the learning path and set up monitoring step by step.