WATCHLOG INTEGRATION

M

Monitor MongoDB.

Monitor MongoDB connections, query performance, slow queries, memory pressure, and replica set health from a single dashboard.

28 metrics·Replication tracking·30s setup

WHAT WATCHLOG COLLECTS

Complete MongoDB observability.

The Watchlog Agent collects these metrics automatically once the MongoDB integration is enabled.

connections.current
Active Connections
Open connections to the MongoDB instance right now
connections.available
Available Connections
Remaining slots before the connection limit is hit
opcounters.query
Query Ops/sec
Read queries executed per second
opcounters.insert|update|delete
Write Ops/sec
Combined insert, update, and delete rate
mem.resident
Resident Memory
Physical RAM allocated to the MongoDB process
wiredTiger.cache.bytes_currently_in_cache
WiredTiger Cache Bytes
Data volume held in WiredTiger engine cache
wiredTiger.cache.tracked_dirty_bytes
Cache Dirty %
Percentage of cache pages awaiting flush to disk
repl.lag_seconds
Replication Lag
Seconds a secondary node is behind the primary
profile.slow_count
Slow Queries (>100ms)
Queries exceeding the slow query threshold in the last minute
indexCounters.missRatio
Index Miss Ratio
Fraction of index lookups not found in memory
dataSize + storageSize
Storage Size
Total on-disk data and storage allocated
network.bytesIn | bytesOut
Network In / Out
Bytes received and transmitted by MongoDB per second

LIVE DASHBOARD

MongoDB at a glance.

A pre-built MongoDB dashboard activates the moment you enable the integration — no configuration required.

● MongoDB Dashboard Live
Active Connections
142 / 200
Query Ops/sec
8,432
Replication Lag
0.8s
Slow Queries (1h)
23
Resident Memory
3.2 GB
Cache Hit Rate
98.2%

USE CASES

What engineers use MongoDB monitoring for.

Slow query investigation
Detect queries exceeding your slow query threshold and correlate spikes with traffic or deploy events in real time.
Connection pool saturation
Monitor active vs. available connections. Get alerted before exhaustion causes application-level timeouts.
Replica set health
Track replication lag across primary and secondary nodes. Alert when a secondary falls behind and risks serving stale reads.
Storage capacity planning
Track database and collection growth week-over-week. Avoid emergency disk expansions with early capacity warnings.

WHY WATCHLOG

Fewer blind spots. Earlier warnings.

Engineering teams that monitor MongoDB with Watchlog catch failure signals before they become incidents.

  • See replication lag before clients start reading stale data
  • Catch connection pool exhaustion before application timeouts cascade
  • Identify the specific collection or query pattern causing slowdowns
  • Correlate MongoDB spikes with deploys, traffic surges, or schema changes
  • Alert on WiredTiger cache pressure before query latency increases

QUICK SETUP

MongoDB monitoring in under 2 minutes.

No YAML. No config files. The Watchlog Agent detects MongoDB on your host and begins collecting immediately.

01
Install the Watchlog Agent
One command on your MongoDB host. The agent detects MongoDB automatically on port 27017.
02
Enable MongoDB integration
Open Watchlog → Integrations → MongoDB and click Enable. No YAML or config files.
03
Metrics appear in under 60s
Your MongoDB dashboard populates within one minute of enabling the integration.
INSTALL WATCHLOG AGENT
sudo apiKey="$WATCHLOG_API_KEY" server="$WATCHLOG_SERVER" MEMORY="300M" bash -c "$(curl -L https://watchlog.io/ubuntu/watchlog-script.sh)

The agent automatically detects MongoDB running on your host and begins collecting metrics immediately.

GET STARTED

Start monitoring MongoDB now.

Full MongoDB visibility in under 2 minutes. No credit card required.

Questions? Contact us at [email protected]