Databases & Data Systems
    MongoDB logo

    MongoDB Monitoring

    Monitor MongoDB document operations, replica set health, connections, and storage metrics in real time with zero configuration.

    Why monitor MongoDB?

    MongoDB is the leading NoSQL document database, powering modern applications with flexible schemas and horizontal scalability. Monitoring MongoDB is critical to track query performance, detect replication lag, manage connection pools, and prevent storage exhaustion. Xitoring's MongoDB integration provides deep visibility into your database cluster health.

    Auto-discovery via Xitogent — no manual configuration required
    Real-time document operation metrics (insert, update, delete, query)
    Replica set health and replication lag monitoring
    Connection pool usage and active connection tracking
    WiredTiger cache utilization and eviction metrics
    Storage size and index performance monitoring
    Works on both Linux and Windows servers
    1-minute metric collection intervals
    Metrics

    What we monitor

    Document Operations

    Rate of insert, update, delete, and query operations per second.

    Connections

    Current active, available, and total connections to the MongoDB instance.

    Replication Lag

    Time delay between primary and secondary replica set members.

    Oplog Window

    Duration of operations retained in the oplog for replication.

    WiredTiger Cache

    Bytes currently in cache, dirty bytes, and cache hit ratio.

    Page Faults

    Number of page faults indicating data not in memory.

    Cursors

    Number of open cursors including those with no timeout.

    Network I/O

    Bytes in/out and number of requests to the MongoDB instance.

    Lock Queue

    Number of operations waiting to acquire read or write locks.

    Index Counters

    Index access, hits, and misses indicating index effectiveness.

    Storage Size

    Total data size, index size, and free space on disk.

    Assertions

    Count of assert messages including regular, warning, and rollover.

    Triggers & Alerts

    Configurable alert triggers

    Set up custom triggers in your dashboard to get notified the moment MongoDB metrics cross your defined thresholds.

    MongoDB monitoring trigger configuration dashboard

    Replication Lag

    critical

    Fires when secondary members fall behind the primary, risking data inconsistency during failover.

    Connection Count

    warning

    Triggers when active connections approach the maximum, indicating potential connection pool exhaustion.

    WiredTiger Cache Usage

    warning

    Alerts when cache utilization exceeds threshold, leading to increased disk I/O and slower queries.

    Page Faults

    critical

    Fires when page fault rate spikes, indicating working set exceeds available memory.

    Lock Queue Length

    warning

    Triggers when operations queue for locks, indicating contention and potential performance degradation.

    Storage Space

    critical

    Alerts when disk space usage exceeds threshold, risking database writes being blocked.

    01

    Importance of MongoDB Monitoring

    MongoDB powers mission-critical applications handling millions of documents. Without monitoring, replication drift, connection exhaustion, and cache pressure can silently degrade performance and lead to data loss.

    • Detect replication lag before failover causes data inconsistency
    • Monitor document operation rates to identify performance bottlenecks
    • Track WiredTiger cache efficiency to optimize memory allocation
    • Identify connection pool exhaustion from application clients
    • Ensure storage capacity for uninterrupted database operations
    MongoDB monitoring dashboard with document operations and replica set metrics
    MongoDB performance alerts and connection monitoring
    02

    Why Choose Xitoring

    Xitoring delivers enterprise-grade MongoDB monitoring with zero-config setup. Our lightweight agent auto-discovers your MongoDB instances, starts collecting metrics in under 60 seconds, and integrates with your existing notification channels.

    • One-command install — no complex YAML or config files
    • 50+ global monitoring nodes for low-latency checks
    • Unified dashboard for servers, databases, and uptime
    • Flexible alerting via Slack, PagerDuty, Telegram & more
    • Historical data retention for capacity planning & audits
    Xitoring MongoDB cluster monitoring overview
    Alert notification channels configuration
    Setup Guide

    Get started in minutes

    1

    Install Xitogent on your server

    If you haven't already, install the lightweight Xitogent monitoring agent on your server.

    curl -s https://xitoring.com/install.sh | sudo bash
    2

    Ensure MongoDB is accessible

    Xitogent uses the MongoDB serverStatus command. Make sure your instance allows local connections:

    mongosh --eval "db.serverStatus()" | head -10
    3

    Enable the MongoDB integration

    Use the Xitoring dashboard or CLI to enable the MongoDB integration. Xitogent will auto-detect your MongoDB instance.

    sudo xitogent integrate mongodb --enable
    4

    Configure alert thresholds (optional)

    Set custom thresholds for metrics like replication lag, connection count, or storage usage to get notified when something needs attention.

    Frequently asked questions

    Start monitoring MongoDB today

    Set up in under 60 seconds. No credit card required. Full metrics from day one.

    Start Free Trial

    Keep exploring

    Related Integrations