Slide 6 of 11

MongoDB integration

MongoDB integration

The MongoDB integration provides database monitoring for MongoDB deployments, from simple standalone instances to complex sharded clusters.

What it’s forMonitoring operations, connections, replication, and sharding health
Who uses itDBAs, backend developers, DevOps teams managing MongoDB databases
Under the hoodMakes MongoDB’s internal complexity accessible through clear dashboards

Metrics collected

The integration collects metrics across operations, connections, and storage:

  • Operations: Queries, inserts, updates, deletes
  • Connections: Current, available, usage
  • Replication: Oplog window, member state
  • Sharding: Chunk distribution, balancer
  • WiredTiger: Cache usage, tickets

What to know

  • Prebuilt dashboards: overview, replication, sharding
  • Prebuilt alerts: replication lag, connections
  • Replica set and sharding visibility
  • Oplog window monitoring for disaster recovery
  • WiredTiger cache and ticket metrics

Set it up

Open this learning path in your Grafana Cloud stack for a fully interactive experience, or read through it to understand the process first.

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.

Script

MongoDB ranges from standalone instances to sharded clusters, and the integration handles all of them. Operation metrics break down by type to show workload patterns, and connection tracking matters because MongoDB’s default limits are low.

Memory needs a closer look, since the WiredTiger storage engine manages its own cache separate from system memory. For replica sets, watch the oplog window and member states, which are critical for disaster recovery. For sharded clusters, you get chunk distribution and balancer activity.

MongoDB’s internal complexity is real, but the dashboards make it accessible without deep MongoDB expertise.