Slide 6 of 15

MongoDB integration

MongoDB integration

The MongoDB integration provides database monitoring for MongoDB deployments, from simple standalone instances to complex sharded clusters. Connection tracking matters here because connection exhaustion is a common MongoDB failure mode.

What it’s forMonitoring operations, connections, replication, and sharding health
Under the hoodMakes MongoDB’s internal complexity accessible through clear dashboards

Metrics collected

The integration collects metrics across operations, connections, replication, and sharding:

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

What to know

This integration offers:

  • Prebuilt dashboards: MongoDB Cluster, MongoDB Instance, MongoDB ReplicaSet
  • Prebuilt alerts: replication lag, connections
  • Replica set and sharding visibility
  • Oplog window monitoring for disaster recovery

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.

Path completed

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 connection exhaustion is a common MongoDB failure mode.

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.