DMCDMC Bilgi Teknolojileri

For MongoDB replica set & sharding aware

Member health via replSetGetStatus, oplog window in hours, sharding balancer status, query monitoring with currentOp and profiler, WiredTiger cache + concurrent transactions tracking.

Beta status: Provider is live and operates in production PoC scope. The 160+ async DBA action depth shipped for SQL Server is being progressively brought to PostgreSQL/MySQL/MongoDB. GA milestone: 2026-Q3.
MongoDB 4.4 5.0 / 6.0 / 7.0 MongoDB Atlas Replica Set Sharded Cluster Standalone
28+Monitoring Method
RSReplica Set health
WTWiredTiger cache
AtlasCloud compatible

currentOp, profiler, explain output

currentOp

Active operations

db.currentOp() output: active commands, ns (namespace), microsecs_running, lock dependencies, secs_running, planSummary.

  • get_diag_current_ops
  • get_active_queries
  • get_blocking_sessions
  • Long-running ops
Profiler

Database profiler

Slow queries from system.profile (above slowOpThresholdMs), planSummary (COLLSCAN warning), keysExamined / nreturned ratio.

  • get_diag_profiler
  • get_profiler_summary(db)
  • COLLSCAN detection
  • keysExamined / nreturned
Top Queries

Top queries

Profiler data grouped by command type (find/aggregate/insert/update/delete), average duration and total call count.

  • get_top_queries
  • Command type grouping
  • Workload distribution
  • Trend data
Explain

Explain output

Execution plan via explain('executionStats'): stage tree (IXSCAN, COLLSCAN, FETCH, SORT), totalKeysExamined, totalDocsExamined.

  • get_execution_plan
  • Stage tree
  • Index hit / miss
  • Stages timing
Index Stats

Index statistics

$indexStats aggregation: per-index "accesses" count, never-used indexes, most frequently used indexes.

  • get_diag_index_stats
  • $indexStats accesses.ops
  • Unused index
  • Top indexes
Server Status

Server status & health

db.serverStatus(): ops, asserts, connections, network, opcounters, mem, extra_info. Composite health score.

  • get_diag_server_status
  • get_health_check
  • opcounters trend
  • Asserts detection

replSetGetStatus, oplog window

RS Status

Replica set status

Member list, state (PRIMARY/SECONDARY/ARBITER/RECOVERING), health, uptime, optimeDate, pingMs. Election history, sync source.

  • get_replica_set_status
  • Member state
  • Optime lag
  • Sync source
Oplog Window

Oplog window analysis

Difference between oldest and newest timestamp in local.oplog.rs — window in hours. Insufficient window breaks initial sync.

  • get_oplog_window
  • Window time
  • Oplog size + used
  • Initial sync risk
Replication Lag

Replication lag

Difference between primary and secondary optime (seconds), per-member secondaryDelay, lag warning / critical thresholds.

  • get_replication_status
  • Per-member lag
  • secondaryDelay
  • HA_LAG_*_THRESHOLD
Connection Detail

Connection details

Active connections, available, totalCreated, ssl-only ratio, user / app distribution, max connections usage.

  • get_connection_detail
  • Active vs available
  • SSL connection ratio
  • App-name distribution

Balancer, chunks, shard map

Cluster Map

Sharded cluster map

Config server, shards, mongos router, chunk distribution, balanced or not (variance %), database-shard assignments.

  • get_sharding_status
  • config.shards
  • config.databases
  • Chunk variance %
Balancer

Balancer status

Is balancer running, last round migration count, failed migrations, operations exceeding the balancer window.

  • Balancer enabled
  • Last round info
  • Failed migrations
  • Migration window
Collection Stats

Collection & DB stats

collstats: shard key distribution, chunk count per collection, indexes, storage size, document count. dbstats: per-DB totals.

  • get_diag_collection_stats
  • get_diag_db_stats
  • Shard key cardinality
  • Chunk per collection

Cache, eviction, concurrent transactions

WT Cache

WiredTiger cache

cacheSizeGB, bytes used, dirty bytes, eviction frequency, target dirty ratio, eviction workers, modified pages evicted by application threads.

  • get_diag_wt_cache
  • Cache fill ratio
  • Dirty cache
  • App thread eviction
Concurrent Tx

Concurrent transactions

WiredTiger ticket system: read tickets (out / available), write tickets, queue length. Ticket exhaustion = throughput cap.

  • get_wt_concurrent_transactions
  • Read tickets out
  • Write tickets out
  • Queue length
Storage

Storage metrics

WiredTiger compression ratio, on-disk size vs uncompressed size, journal size, checkpoint duration.

  • get_storage_metrics
  • Compression ratio
  • Journal size
  • Checkpoint duration
Disk Volumes

Disk & data files

dbPath drive fullness, file count, biggest files, growth trend. Configured disk metrics for Atlas.

  • get_disk_volumes
  • get_database_files
  • get_io_latency(hours)
  • Atlas disk metrics

Users, roles, audit log

Security Checks

Security audits

Is authentication enabled, TLS required, localhost auth bypass check, root role usage, are there users in default DBs?

  • get_security_checks
  • Auth enabled check
  • TLS requirement
  • Root role audit
Users & Roles

Users & roles

db.system.users: user list, assigned roles, db scope, mechanism (SCRAM-SHA-1, SCRAM-SHA-256, x.509). Custom role definitions.

  • get_diag_users_roles
  • get_logins_security
  • SCRAM mechanism
  • Custom roles
Audit Log

Audit log (Enterprise)

MongoDB Enterprise audit log: connection events, authcheck, authorization failures, schema changes. Last N events with filter.

  • get_audit_logs(limit)
  • Connection audit
  • Auth failures
  • Schema changes
Active Waits

Active waits & locks

Locks from currentOp, waitingForLock = true, lock dependencies, queue lengths (Global/Database/Collection).

  • get_active_waits
  • get_query_wait_stats
  • WaitingForLock
  • Lock queue length

MongoDB provider monitoring methods

Capability Description Command / Source
Performance & Query
currentOpActive operationsdb.currentOp()
Profilersystem.profile slow opsdb.system.profile
Top queriesCommand type groupingprofiler aggregation
ExplainexecutionStats stage treecursor.explain()
Index stats$indexStats accesses$indexStats
Server statusopcounters, network, memserverStatus
Replica Set
Replica set statusMembers + statereplSetGetStatus
Oplog windowTime calculationlocal.oplog.rs
Replication lagPer-member optime diffreplSetGetStatus
Connection detailActive / availableconnPoolStats
Sharding
Sharding statusCluster map + chunkssh.status()
BalancerMigration historyconfig.actionlog
Collection statscollstats per collectioncollStats
DB statsPer-DB totalsdbStats
WiredTiger
WT cacheCache fill, dirty, evictionserverStatus.wiredTiger.cache
Concurrent transactionsRead/write ticketsconcurrentTransactions
Storage metricsCompression + journalserverStatus
I/O latencyDisk read/write latencyOS metrics
Security
Security checksAuth + TLS + root rolecomposite
Users & rolesSCRAM, x.509, custom rolesdb.system.users
Audit logEnterprise auditauditLog destination
Active waitscurrentOp lock waitscurrentOp

Monitor MongoDB with replica set awareness

Replica set, sharded cluster, Atlas — every MongoDB topology on one platform.