---
title: "MongoDB integration | Grafana Labs"
description: "Monitoring MongoDB databases"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# MongoDB integration

The MongoDB integration provides database monitoring for MongoDB deployments, from standalone instances to sharded clusters. It collects connection metrics and includes a too-many-connections alert.

|                    |                                                                      |
|--------------------|----------------------------------------------------------------------|
| **What it’s for**  | Monitoring operations, connections, replication, and sharding health |
| **Under the hood** | Collects operations, connections, replication, and sharding metrics  |

## 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 overview, MongoDB instance, MongoDB replica set, and MongoDB cluster
- 10 prebuilt alerts, including replication lag and connections
- Replica set and sharding visibility
- Oplog window and member state

## Set it up

View the [MongoDB integration documentation](https://grafana.com/docs/grafana-cloud/monitor-infrastructure/integrations/integration-reference/integration-mongodb/).

Open this 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.

17 min

Beginner

Docs &amp; blog posts

#### Open in Grafana Cloud

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

[Open in Grafana Cloud]()

[View on website](/docs/learning-paths/mongodb-integration/)

[Path completed](/docs/learning-hub/intro-to-db-olly/03-database-integrations/19-resources/)
