All Products
Search
Document Center

ApsaraDB for MongoDB:Metric descriptions

Last Updated:Mar 28, 2026

ApsaraDB for MongoDB exposes metrics across four monitoring views: instance monitoring, node monitoring, advanced monitoring, and Performance Trend. This page describes each metric — its key, unit, meaning, and when a high or abnormal value warrants action.

Byte values in the console are automatically converted to MB, GB, or TB for readability.

Instance monitoring

For the metrics available for your instance type, see the console.

Resource utilization

MetricKeyMetric nameUnitDescriptionSupported instance types
Disk usageDiskUsagedisk_usage%The percentage of total disk capacity in use. If usage exceeds 80%, change the instance configuration. For troubleshooting, see High disk usage.Standalone, replica set, sharded cluster, Serverless
CPU usageCpuUsagecpu_usage%The sum of system CPU usage and user CPU usage. High CPU usage can cause slow reads and writes. See High CPU usage for troubleshooting steps.Standalone, replica set, sharded cluster, Serverless
CPU usage — systemMongoDB_CpuDetailcpu_sys%System-level CPU usage.Standalone, replica set, sharded cluster
CPU usage — userMongoDB_CpuDetailcpu_user%User-level CPU usage.Standalone, replica set, sharded cluster
Memory usageMemoryUsagemem_usage%Memory is primarily consumed by the WiredTiger storage engine, client connections, and request processing. See High memory usage for causes and optimization strategies.Standalone, replica set, sharded cluster, Serverless

Disk space usage

MetricKeyMetric nameUnitDescriptionSupported instance types
Used disk spaceMongoDB_DetailedSpaceUsageins_sizeBytesTotal disk space in use. For local disk instances, this is the sum of data disk and log disk space. For cloud disk instances, it also includes file system metadata.Standalone, replica set, sharded cluster
Used data disk spaceMongoDB_DetailedSpaceUsagedata_sizeBytesSpace used by the data disk, excluding the local database. Includes physical data files (prefixed with "collection"), index files (prefixed with "index"), and metadata files such as WiredTiger.wt.Standalone, replica set, sharded cluster
Used log disk spaceMongoDB_DetailedSpaceUsagelog_sizeBytesPhysical size of the local database.Standalone, replica set, sharded cluster

IOPS and disk throughput

MetricKeyMetric nameUnitDescriptionSupported instance types
IOPS usageMongoDB_IOPSiopstimes/sCurrent IOPS usage. The data_iops and log_iops metrics from earlier monitoring versions are merged into this metric.
Note

Replica set and sharded cluster instances running MongoDB 4.2 with cloud disks do not support this metric.

Standalone, replica set, sharded cluster
IOPS usage rateIOPSUsageiops_usage%The ratio of current IOPS usage to the maximum IOPS for the instance type. If this value reaches or approaches 100%, the instance may respond slowly or become unavailable. See High IOPS usage for causes and solutions.
Note

Not supported for replica set and sharded cluster instances running MongoDB 4.2 with cloud disks.

Standalone, replica set, sharded cluster
Disk read throughputMongoDB_Disk_Detailread_io_bandwidth_mbpsMB/sRate of data read from disk.Standalone, replica set, sharded cluster
Disk write throughputMongoDB_Disk_Detailwrite_io_bandwidth_mbpsMB/sRate of data written to disk.Standalone, replica set, sharded cluster
Total disk throughputMongoDB_Disk_Detailio_bandwidth_mbpsMB/sSum of disk read and write throughput.Standalone, replica set, sharded cluster
BPS usage rateMongoDB_MbpsUsagetotal_mbps_usage%The ratio of total disk throughput to the maximum BPS for the instance type. If this value reaches or approaches 100%, the instance may respond slowly or become unavailable. For cloud disk BPS limits, see Instance types.
Note

Supported only for cloud disk instances.

Standalone, replica set, sharded cluster (shard nodes only)

Connections

MetricKeyMetric nameUnitDescriptionSupported instance types
Current active connectionsMongoDB_TotalConnsconnections_activecountThe number of client connections currently performing operations.Standalone, replica set, sharded cluster
Current connectionsMongoDB_TotalConnscurrent_conncountThe total number of client connections to the server. Includes connections from other replica set nodes and connections between mongos and shard nodes.Standalone, replica set, sharded cluster
New connections per secondMongoDB_TotalConnsconnections_totalCreated_pscountTotal new connections established per second.Standalone, replica set, sharded cluster
Available connectionsMongoDB_TotalConnsconnections_availablecountThe number of connections available for new clients.Standalone, replica set, sharded cluster
Connection usageConnectionUsageconn_usage%The ratio of current connections to the maximum connections for the instance type. Monitor this metric to determine whether the connection limit is sufficient. The maximum varies by instance type — see Instance types. To increase the limit, change the instance configuration. Alternatively, adjust the number of client connections by following Query and limit the number of connections.Standalone, replica set, sharded cluster

Network traffic

MetricKeyMetric nameUnitDescriptionSupported instance types
Inbound trafficMongoDB_Networkbytes_inBytesInbound network traffic.Standalone, replica set, sharded cluster, Serverless
Outbound trafficMongoDB_Networkbytes_outBytesOutbound network traffic.Standalone, replica set, sharded cluster, Serverless
Requests processedMongoDB_Networknum_requestscountTotal number of requests processed.Standalone, replica set, sharded cluster, Serverless

Operation QPS

All sub-metrics in MongoDB_Opcounters count all operations received by the instance, regardless of whether they succeeded. Bulk.insert() batch operations count as a single operation. For per-document counts, see the Number of affected documents section. For background on how opcounters work, see Opcounters and Repl Opcounters metrics.

MetricKeyMetric nameUnitSupported instance types
Insert QPSMongoDB_OpcountersinsertcountStandalone, replica set, sharded cluster, Serverless
Query QPSMongoDB_OpcountersquerycountStandalone, replica set, sharded cluster, Serverless
Update QPSMongoDB_OpcountersupdatecountStandalone, replica set, sharded cluster, Serverless
Delete QPSMongoDB_OpcountersdeletecountStandalone, replica set, sharded cluster, Serverless
Getmore QPSMongoDB_OpcountersgetmorecountStandalone, replica set, sharded cluster, Serverless
Command QPSMongoDB_OpcounterscommandcountStandalone, replica set, sharded cluster, Serverless

Average response time

MetricKeyMetric nameUnitDescriptionSupported instance types
Total average response timeMongoDB_RTavg_rtμsOverall average response time across all operation types.Standalone, replica set, sharded cluster
Read response timeMongoDB_RTreads_avg_rtμsAverage response time for read operations.Standalone, replica set, sharded cluster
Write response timeMongoDB_RTwrites_avg_rtμsAverage response time for write operations.Standalone, replica set, sharded cluster
Command response timeMongoDB_RTcommands_avg_rtμsAverage response time for command operations.Standalone, replica set, sharded cluster
Transaction response timeMongoDB_RTtrans_avg_rtμsAverage response time for transaction operations.Standalone, replica set, sharded cluster

Operation latency

MetricKeyMetric nameUnitDescriptionSupported instance types
Read request latencyMongoDB_Latenciesreads_latency_psμsLatency of all successful read requests.Standalone, replica set, sharded cluster
Write request latencyMongoDB_Latencieswrites_latency_psμsLatency of all successful write requests.Standalone, replica set, sharded cluster
Command latencyMongoDB_Latenciescommands_latency_psμsLatency of all successful command requests.Standalone, replica set, sharded cluster
Transaction latencyMongoDB_Latenciestrans_latency_psμsProcessing time for all successful transaction requests.Standalone, replica set, sharded cluster

Number of affected documents

MetricKeyMetric nameUnitDescriptionSupported instance types
Documents deletedMongoDB_Documentsdocument_deleted_pscountNumber of documents deleted per second.Standalone, replica set, sharded cluster
Documents insertedMongoDB_Documentsdocument_inserted_pscountNumber of documents inserted per second.Standalone, replica set, sharded cluster
Documents returnedMongoDB_Documentsdocument_returned_pscountNumber of documents returned per second.Standalone, replica set, sharded cluster
Documents updatedMongoDB_Documentsdocument_updated_pscountNumber of documents updated per second.Standalone, replica set, sharded cluster

Query executors

MetricKeyMetric nameUnitDescriptionSupported instance types
Documents scannedMongoDB_QueryExecutorsqueryExecutor_scannedObject_pscountTotal documents scanned during query execution and plan evaluation. Equivalent to totalDocsExamined in explain() output. A large value means the database is scanning many non-indexed entries — add an index for fields with high scan counts.Standalone, replica set, sharded cluster
Index entries scannedMongoDB_QueryExecutorsqueryExecutor_scanned_pscountTotal index entries scanned during query execution and plan evaluation. Equivalent to totalKeysExamined in explain() output. If this is large but the number of returned documents is small, the index is inefficient — adjust existing indexes or create new ones.Standalone, replica set, sharded cluster

Operation details

MetricKeyMetric nameUnitDescriptionSupported instance types
Count operations for a specific IDMongoDB_OperationDetailsoperation_exactIDCount_pscountNumber of single update operations that use _id instead of a shard key on a sharded collection distributed across multiple shards. Each such operation traverses all chunks. A large chunk count can lead to full CPU utilization.Standalone, replica set, sharded cluster
Sort operations without an indexMongoDB_OperationDetailsoperation_scanAndOrder_pscountSorted queries that cannot use an index for sorting. A high value degrades performance. See Best practices for creating indexes for solutions.Standalone, replica set, sharded cluster
Write conflictsMongoDB_OperationDetailsoperation_writeConflicts_pscountQueries that encountered write conflicts. A small number has minimal impact, but a sustained high value degrades database performance.Standalone, replica set, sharded cluster

GlobalLock

MetricKeyMetric nameUnitDescriptionSupported instance types
Active readersMongoDB_GlobalLocksgl_ac_readerscountActive client connections performing read operations.Standalone, replica set, sharded cluster
Active writersMongoDB_GlobalLocksgl_ac_writerscountActive client connections performing write operations.Standalone, replica set, sharded cluster
Operations queued for a write lockMongoDB_GlobalLocksgl_cq_writerscountOperations waiting for a write lock.Standalone, replica set, sharded cluster
Operations queued for a read lockMongoDB_GlobalLocksgl_cq_readerscountOperations waiting for a read lock.Standalone, replica set, sharded cluster
Total operations queued for a lockMongoDB_GlobalLocksgl_cq_totalcountSum of operations queued for both read and write locks. A large value means client operations are delayed, which increases application response time.Standalone, replica set, sharded cluster

Cursors

MetricKeyMetric nameUnitDescriptionSupported instance types
Open cursorsMongoDB_AllCursorstotal_opencountTotal number of currently open cursors.Standalone, replica set, sharded cluster (shard and ConfigServer nodes only)
Cursors closed due to timeoutMongoDB_AllCursorstimed_outcountNumber of cursors that timed out and were closed. A large value indicates that client-side data-processing code may not be closing cursors promptly.Standalone, replica set, sharded cluster (shard and ConfigServer nodes only)
Cursors closed due to session closureMongoDB_AllCursorsjob_cursors_closedcountNumber of cursors closed because their session was closed.Standalone, replica set, sharded cluster (shard and ConfigServer nodes only)
Pinned cursorsMongoDB_AllCursorspinned_opencountCursors currently pinned to prevent deletion while fetching the next batch. For example, find and getMore operations pin a cursor while fetching results, then unpin it after returning results.Standalone, replica set, sharded cluster (shard and ConfigServer nodes only)
Non-timed-out cursorsMongoDB_AllCursorsnoTimeout_opencountOpen cursors using the noCursorTimeout option. This option prevents a cursor from timing out after a period of inactivity, but the session timeout still applies. See the noCursorTimeout documentation for details.Standalone, replica set, sharded cluster (shard and ConfigServer nodes only)

Transactions

MetricKeyMetric nameUnitDescriptionSupported instance types
Prepared transactionsMongoDB_Transactionstrans_totalPrepared_pscountNumber of transactions in the prepared state.Replica set, sharded cluster (shard nodes only)
Prepared transactions committedMongoDB_Transactionstrans_totalPreparedThenCommited_pscountPrepared transactions that were successfully committed.Replica set, sharded cluster (shard nodes only)
Prepared transactions rolled backMongoDB_Transactionstrans_totalPreparedThenAborted_pscountPrepared transactions that were successfully rolled back.Replica set, sharded cluster (shard nodes only)
Started transactionsMongoDB_Transactionstrans_totalStarted_pscountNumber of transactions started.Standalone, replica set, sharded cluster
Committed transactionsMongoDB_Transactionstrans_totalCommited_pscountTransactions successfully committed.Standalone, replica set, sharded cluster
Rolled back transactionsMongoDB_Transactionstrans_totalAborted_pscountTransactions successfully rolled back.Standalone, replica set, sharded cluster

TTL

MetricKeyMetric nameUnitDescriptionSupported instance types
Documents deleted by TTL indexMongoDB_TTLsttl_deletedDocuments_pscountDocuments deleted per second by TTL indexes. A large value indicates heavy TTL deletion activity, which may affect instance performance. See the TTL index documentation.Standalone, replica set, sharded cluster
TTL background thread passesMongoDB_TTLsttl_passes_pscountNumber of times the TTL background process checked for expired documents. Each pass, the TTL monitor attempts to delete as many eligible documents as possible from all TTL indexes.Standalone, replica set, sharded cluster

Repl Opcounters

During replication, MongoDB serializes operations, which can affect per-operation counts. As a result, values for MongoDB_ReplOpcounters may differ from MongoDB_Opcounters. For background, see Opcounters and Repl Opcounters metrics.

MetricKeyMetric nameUnitSupported instance types
Replication command operationsMongoDB_ReplOpcountersrepl_commandcountReplica set, sharded cluster
Replication delete operationsMongoDB_ReplOpcountersrepl_deletecountReplica set, sharded cluster
Replication getmore operationsMongoDB_ReplOpcountersrepl_getmorecountReplica set, sharded cluster
Replication insert operationsMongoDB_ReplOpcountersrepl_insertcountReplica set, sharded cluster
Replication query operationsMongoDB_ReplOpcountersrepl_querycountReplica set, sharded cluster
Replication update operationsMongoDB_ReplOpcountersrepl_updatecountReplica set, sharded cluster

Primary-secondary latency

MetricKeyMetric nameUnitDescriptionSupported instance types
Replication lagMongoDB_Repl_Lagrepl_lagsData synchronization latency between the primary and secondary nodes. The heartbeat interval between replica set members is 2 seconds, so a repl_lag value between -2 and 2 is normal. A negative value for a secondary node does not mean it is ahead of the primary. For the current replication status, run rs.printSecondaryReplicationInfo() on the primary node.Replica set, sharded cluster (shard and ConfigServer nodes only)

Oplog

MetricKeyMetric nameUnitDescriptionSupported instance types
Oplog retention periodMongoDB_OplogTimeIntervaloplog_time_intervalHoursHow long the oplog retains entries. For MongoDB 4.4 and later, set the storage.oplogMinRetentionHours parameter on the instance product page.Replica set, sharded cluster

Replication buffer

MetricKeyMetric nameUnitDescriptionSupported instance types
Current replication buffer sizeMongoDB_Repl_Bufferrepl_buffer_sizeMBCurrent size of the replication buffer in the replica set.Replica set, sharded cluster
Maximum replication buffer sizeMongoDB_Repl_Bufferrepl_buffer_max_sizeMBMaximum size of the replication buffer in the replica set.Replica set, sharded cluster

WiredTiger cache

MetricKeyMetric nameUnitDescriptionSupported instance types
Bytes read into cacheMongoDB_Wt_Cachebytes_read_into_cacheBytesData read from disk into the WiredTiger cache.Standalone, replica set, sharded cluster
Bytes written from cacheMongoDB_Wt_Cachebytes_written_from_cacheBytesData written from the WiredTiger cache to disk.Standalone, replica set, sharded cluster
Maximum cache sizeMongoDB_Wt_Cachemaximum_bytes_configuredBytesMaximum bytes configured for the WiredTiger cache. ApsaraDB for MongoDB sets the WiredTiger cache size to approximately 60% of the requested instance memory for compatibility and security. See High memory usage.Standalone, replica set, sharded cluster
WiredTiger cache usageMongoDB_WTCacheUsagewt_cache_usage%Percentage of the maximum cache size currently in use. Monitor this to detect memory pressure. See High memory usage.Standalone, replica set, sharded cluster
WiredTiger dirty cache usageMongoDB_WTCacheUsagewt_cache_dirty_usage%Percentage of the cache occupied by dirty pages (modified in memory but not yet flushed to disk). A sustained high value in write-heavy workloads indicates data waiting to be flushed. See High memory usage.Standalone, replica set, sharded cluster
WiredTiger update cache utilizationMongoDB_WTCacheUsagewt_cache_updates_usage%Proportion of the maximum cache size allocated for update operations.Standalone, replica set, sharded cluster

WT concurrent transactions

Before MongoDB 7.0, the limit for concurrent read and write transactions was 128. If the availability counter stayed at 0 for an extended period, it indicated overload. Starting in MongoDB 7.0, the database dynamically adjusts the maximum number of concurrent storage engine transactions to optimize throughput — a sustained availability of 0 no longer necessarily indicates overload. See the MongoDB 7.0 release notes.

MetricKeyMetric nameUnitSupported instance types
Current concurrent write transactionsMongoDB_Wt_Concurrent_Transwrite_concurrent_trans_outcountStandalone, replica set, sharded cluster
Available concurrent write transactionsMongoDB_Wt_Concurrent_Transwrite_concurrent_trans_availablecountStandalone, replica set, sharded cluster
Current concurrent read transactionsMongoDB_Wt_Concurrent_Transread_concurrent_trans_outcountStandalone, replica set, sharded cluster
Available concurrent read transactionsMongoDB_Wt_Concurrent_Transread_concurrent_trans_availablecountStandalone, replica set, sharded cluster

WiredTiger lock acquisitions

MetricKeyMetric nameUnitDescriptionSupported instance types
Checkpoint lock acquisitionsMongoDB_WtLockAcquisitionswt_checkPoint_lockcountNumber of checkpoint lock acquisitions.Standalone, replica set, sharded cluster
Data handle read lock acquisitionsMongoDB_WtLockAcquisitionswt_dhandle_read_lockcountInstances with too many databases and collections can cause clients to wait long periods for a handle lock, affecting performance. See Instance stuttering caused by too many collections.Standalone, replica set, sharded cluster
Data handle write lock acquisitionsMongoDB_WtLockAcquisitionswt_dhandle_write_lockcountNumber of write lock acquisitions for data handles.Standalone, replica set, sharded cluster
Metadata lock acquisitionsMongoDB_WtLockAcquisitionswt_metadata_lockcountNumber of metadata lock acquisitions.Standalone, replica set, sharded cluster
Schema lock acquisitionsMongoDB_WtLockAcquisitionswt_schema_lockcountFrequent creation or deletion of databases, collections, or indexes — as well as having too many of them — increases schema lock overhead and affects performance. See Instance stuttering caused by too many collections.Standalone, replica set, sharded cluster
Table read lock acquisitionsMongoDB_WtLockAcquisitionswt_table_read_lockcountNumber of table read lock acquisitions.Standalone, replica set, sharded cluster
Table write lock acquisitionsMongoDB_WtLockAcquisitionswt_table_write_lockcountNumber of table write lock acquisitions.Standalone, replica set, sharded cluster
Transaction global read lock acquisitionsMongoDB_WtLockAcquisitionswt_txn_global_read_lockcountNumber of global read lock acquisitions for transactions.Standalone, replica set, sharded cluster
Transaction global write lock acquisitionsMongoDB_WtLockAcquisitionswt_txn_global_write_lockcountNumber of global write lock acquisitions for transactions.Standalone, replica set, sharded cluster

WiredTiger cache page evictions

MetricKeyMetric nameUnitDescriptionSupported instance types
Pages forcibly evictedMongoDB_WtCacheEvictionpages_selected_countcountNumber of pages forcibly evicted from the WiredTiger cache.Standalone, replica set, sharded cluster
Pages that cannot be evictedMongoDB_WtCacheEvictionpages_selected_unable_to_evict_countcountNumber of pages selected for eviction that could not be evicted.Standalone, replica set, sharded cluster
Page evictions blocked by hazard pointersMongoDB_WtCacheEvictionhazard_pointer_blocked_page_evictioncountNumber of page evictions blocked because of hazard pointers.Standalone, replica set, sharded cluster
Maximum page size during evictionMongoDB_WtCacheEvictionmax_page_sizeMBThe largest page size encountered during the eviction process.Standalone, replica set, sharded cluster
Pages evicted by user threadsMongoDB_WtCacheEvictionpages_evicted_by_application_threadscountNumber of WiredTiger cache pages evicted by application (user) threads.Standalone, replica set, sharded cluster

Eviction scan count

MetricKeyMetric nameUnitDescriptionSupported instance types
Hazard pointer array scanned during evictionMongoDB_WtCacheHPCheckEntriesWalkedwiredTiger_cache_hazardPointerCheckEntriesWalkedcountItems in the hazard pointer array scanned during eviction. A large value indicates that many page evictions were blocked by hazard pointers.Standalone, replica set, sharded cluster

Thread yielding

MetricKeyMetric nameUnitDescriptionSupported instance types
Blocked waiting for page evictionMongoDB_WtCache_Thread_Yieldpage_acquire_eviction_blockedcountNumber of times a thread was blocked waiting for page eviction to complete.Standalone, replica set, sharded cluster
Waits for a locked target pageMongoDB_WtCache_Thread_Yieldpage_acquire_locked_blockedcountNumber of times a thread waited for a locked target page.Standalone, replica set, sharded cluster
Total thread sleep duration during page fetchMongoDB_WtCache_Thread_Yieldpage_acquire_time_sleepingμsTotal time threads spent sleeping while waiting to fetch a page.Standalone, replica set, sharded cluster

Write concern

MetricKeyMetric nameUnitDescriptionSupported instance types
Average write concern latencyMongoDB_GetLastErrorWtimemetrics_getLastError_avg_wtimemsAverage time to complete a write concern operation.Standalone, replica set, sharded cluster (mongod only)
Write concern timeoutsMongoDB_GetLastErrorWtimemetrics_getLastError_wtimeoutscountNumber of write concern operations that exceeded the wtimeout threshold.Standalone, replica set, sharded cluster

Data handles

MetricKeyMetric nameUnitDescriptionSupported instance types
Active handle countMongoDB_DataHandleopened_fd_numcountNumber of active connection data handles in the WiredTiger cache.Standalone, replica set, sharded cluster
Closed handle countMongoDB_DataHandleclosed_fd_numcountNumber of closed data handles scanned in the WiredTiger cache.Standalone, replica set, sharded cluster
Memory used by active handlesMongoDB_DataHandleopened_fd_memMBMemory consumed by currently active connection data handles in the WiredTiger cache.Standalone, replica set, sharded cluster

Assertions

MetricKeyMetric nameUnitDescriptionSupported instance types
Normal assertionsMongoDB_AssertsRegularcountNumber of assertions that passed.Standalone, replica set, sharded cluster
Warning assertionsMongoDB_AssertswarningcountNumber of warning-level assertions. This value is always 0.Standalone, replica set, sharded cluster
Message assertionsMongoDB_AssertsmsgcountNumber of message-level assertions.Standalone, replica set, sharded cluster
User assertionsMongoDB_AssertsusercountNumber of user-level assertions.Standalone, replica set, sharded cluster

TCMalloc

MetricKeyMetric nameUnitDescriptionSupported instance types
TCMalloc memory fragmentation ratioMongoDB_TcmallocCacheMemRatiotcmalloc_cache_mem_ratio%Memory fragmentation ratio reported by TCMalloc. Monitor this to detect inefficient memory allocation patterns.Standalone, replica set, sharded cluster

moveChunk

MetricKeyMetric nameUnitDescriptionSupported instance types
Migrations as sourceMongoDB_MoveChunksmoveChunk_donor_started_pscountNumber of times the current node acted as the migration source. This counter increments regardless of whether the migration succeeded.Sharded cluster (shard nodes only)
Migrations as targetMongoDB_MoveChunksmoveChunk_recip_stared_pscountNumber of times the current node acted as the migration target.Sharded cluster (shard nodes only)
Pending chunk range deletion tasksMongoDB_MoveChunksmoveChunk_deleter_taskcountNumber of chunk range deletion tasks that are pending or running.Sharded cluster

Query executor information

MetricKeyMetric nameUnitDescriptionSupported instance types
Full table scans (non-tailable cursors)MongoDB_QueryExecutorscollscans_nontailablecountNumber of full collection scans for non-tailable cursors.Replica set, sharded cluster (excluding mongos)
Total full table scansMongoDB_QueryExecutorscollscans_totalcountTotal number of full collection scans.Replica set, sharded cluster (excluding mongos)

Number of databases and collections

MetricKeyMetric nameUnitDescriptionSupported instance types
User collections in admin databaseMongoDB_CollectionNumsadmin_user_collcountNumber of user collections in the admin database.Replica set (versions 4.2 and earlier), sharded clusters

Classic multi-planner

MetricKeyMetric nameUnitDescriptionSupported instance types
Classic multi-planner tasksMongoDB_MultiPlanner_Workermetrics_query_multiplanner_classicworkscountTotal tasks executed by the classic multi-planner.Replica set, sharded cluster (mongod only)

Logical session cache

MetricKeyMetric nameUnitDescriptionSupported instance types
Logical sessions in cacheMongoDB_LogicalSessionactive_sessions_countcountTotal logical sessions in the cache since the last refresh.Replica set, sharded cluster

Serverless

MetricKeyMetric nameUnitDescriptionSupported instance types
Accesses per secondsl_qpscountNumber of item accesses per second.Serverless

Node monitoring (formerly basic monitoring)

For the metrics available for your instance type, see the console.

Node monitoring exposes the same metrics as instance monitoring. All metric groups, keys, descriptions, and supported instance types listed in the Instance monitoring section apply here.

Advanced monitoring

Advanced monitoring is supported only for standalone, replica set, and sharded cluster instances. For the specific metrics available for your instance type, see the console.
Supported instancesMetricMetric nameUnitDescription
Standalone, replica set, sharded clusterCPU usagecpu_usage%CPU usage of the instance.
Memory usagemem_usage%Memory usage of the instance.
Used disk spaceins_sizeBytesTotal disk space used.
Used data disk spacedata_sizeBytesData disk space used.
Used log disk spacelog_sizeBytesLog disk space used.
Connection usageconn_usage%Ratio of current connections to the maximum connections.
Open non-timed-out cursorsopen_no_timedoutcountNumber of open cursors without a timeout.
Pinned cursorspinned_opencountNumber of cursors currently in use.
Open cursors (total)open_totalcountTotal number of open cursors.
Cursors closed by timeoutclosed_by_timeoutcountCursors closed because they timed out.
Cursors closed by sessionclosed_by_sessioncountCursors closed because their session was closed.
Operations waiting for a lock (total)currentQueue_totalcountTotal operations waiting for a lock.
Operations waiting for a read lockcurrentQueue_readerscountOperations waiting for a read lock.
Operations waiting for a write lockcurrentQueue_writerscountOperations waiting for a write lock.
Active reader connectionsactive_readerscountActive client connections performing read operations.
Active writer connectionsactive_writerscountActive client connections performing write operations.
Total average response timeavg_RTμsOverall average response time.
Read response timereads_avg_rtμsAverage response time for read operations.
Write response timewrites_avg_rtμsAverage response time for write operations.
Command response timecommands_avg_rtμsAverage response time for command operations.
Transaction response timetrans_avg_rtμsAverage response time for transaction operations.
Current concurrent write requestswrite_concurrent_trans_outcountNumber of concurrent write requests in the WiredTiger request queue.
Current concurrent read requestsread_concurrent_trans_outcountNumber of concurrent read requests in the WiredTiger request queue.
Available concurrent write requestswrite_concurrent_trans_availablecountAvailable slots for concurrent write requests.
Available concurrent read requestsread_concurrent_trans_availablecountAvailable slots for concurrent read requests.
I/O latencyiocheck_costmsCurrent I/O response performance.
Note

Supported only for standalone instances and replica set instances running MongoDB 4.0 or earlier.

WiredTiger cache usagewt_cache_usage%WiredTiger cache usage.
WiredTiger dirty cache usagewt_cache_dirty_usage%WiredTiger dirty cache usage.
Documents deleteddeletedDocumentscountNumber of documents deleted.
Documents insertedinsertedDocumentscountNumber of documents inserted.
Documents returnedreturnDocumentscountNumber of documents returned.
Documents updatedupdatedDocumentscountNumber of documents updated.
Sort operations without an indexscanAndOrdercountRequests that cannot use an index for sorting.
Write conflictswriteConflictscountNumber of write conflicts.
Count operations for a specific IDexactIDCountcountRequests that must broadcast to get matching _id information.
Index keys scannedscannedKeyscountIndex keys scanned during queries.
Documents scannedscannedDocscountDocuments scanned during queries.
Documents deleted by TTL indexttlDeletedDocumentscountDocuments deleted by a TTL index.
TTL background thread passesttlPassescountNumber of times the background TTL thread performed deletions.
Schema lock acquisitionswiredTiger_schema_lock_deltacountNumber of schema lock acquisitions.
Metadata lock acquisitionswiredTiger_metadata_lock_deltacountNumber of metadata lock acquisitions.
Table read lock acquisitionswiredTiger_table_read_lock_deltacountNumber of table read lock acquisitions.
Table write lock acquisitionswiredTiger_table_write_lock_deltacountNumber of table write lock acquisitions.
Transaction global read lock acquisitionswiredTiger_txn_global_read_lock_deltacountNumber of global read lock acquisitions for transactions.
Transaction global write lock acquisitionswiredTiger_txn_global_write_lock_deltacountNumber of global write lock acquisitions for transactions.
Disk read throughputread_io_bandwidth_mbpsMB/sRate of data read from disk.
Disk write throughputwrite_io_bandwidth_mbpsMB/sRate of data written to disk.
Total disk throughputio_bandwidth_mbpsMB/sTotal disk read and write throughput.
Prepared transactionstrans_totalPrepared_pscountNumber of prepared transactions.
Prepared transactions committedtrans_totalPreparedThenCommited_pscountPrepared transactions successfully committed.
Prepared transactions rolled backtrans_totalPreparedThenAborted_pscountPrepared transactions successfully rolled back.
Started transactionstrans_totalStarted_pscountNumber of started transactions.
Committed transactionstrans_totalCommited_pscountTransactions successfully committed.
Rolled back transactionstrans_totalAborted_pscountTransactions successfully rolled back.
BPS usage ratetotal_mbps_usage%Disk read/write bandwidth usage rate.
Note

Supported only for disk-based instances. For sharded cluster instances, valid only for the shard component.

Bytes read into cachebytes_read_into_cacheBytesData read into the WiredTiger cache.
Bytes written from cachebytes_written_from_cacheBytesData written from the WiredTiger cache to disk.
Maximum cache sizemaximum_bytes_configuredBytesMaximum configured WiredTiger cache size.
Disk usagedisk_usage%Ratio of total disk space used to the maximum available.
Insert QPSinsertcountNumber of insert operations per second.
Query QPSquerycountNumber of query operations per second.
Update QPSupdatecountNumber of update operations per second.
Delete QPSdeletecountNumber of delete operations per second.
Getmore QPSgetmorecountNumber of getmore operations per second.
Command QPScommandcountNumber of command operations per second.
Current connectionscurrent_conncountTotal current connections to the instance.
Active connectionsactive_conncountActive connections to the instance.
Inbound trafficbytes_inBytesInbound network traffic.
Outbound trafficbytes_outBytesOutbound network traffic.
Replica set, sharded clusterIOPS usagedata_iops(iops)times/sIOPS usage. The data_iops and log_iops metrics from earlier monitoring versions are merged into this metric.
Note

Not supported for disk-based instances running MongoDB 4.2.

IOPS usage rateiops_usage%Ratio of IOPS used to maximum available IOPS.
Note

Not supported for disk-based instances running MongoDB 4.2.

Replication lagrepl_lagsData synchronization latency between primary and secondary nodes. A heartbeat interval of 2 seconds means a value between -2 and 2 is normal. A negative value for a secondary node does not mean it is ahead of the primary. Run rs.printSecondaryReplicationInfo() on the primary node to get the current status.
Sharded clusterPrimary node insert QPSinsert_primarycountInsert operations on the primary node.
Primary node query QPSquery_primarycountQuery operations on the primary node.
Primary node update QPSupdate_primarycountUpdate operations on the primary node.
Primary node delete QPSdelete_primarycountDelete operations on the primary node.
Primary node getmore QPSgetmore_primarycountGetmore operations on the primary node.
Primary node command QPScommand_primarycountCommand operations on the primary node.
Secondary node insert QPSinsert_secondarycountInsert operations on secondary nodes.
Secondary node query QPSquery_secondarycountQuery operations on secondary nodes.
Hidden node insert QPSinsert_hiddencountInsert operations on hidden nodes.
Hidden node query QPSquery_hiddencountQuery operations on hidden nodes.
Hidden node update QPSupdate_hiddencountUpdate operations on hidden nodes.
Hidden node delete QPSdelete_hiddencountDelete operations on hidden nodes.
Hidden node getmore QPSgetmore_hiddencountGetmore operations on hidden nodes.
Hidden node command QPScommand_hiddencountCommand operations on hidden nodes.
Mongos insert QPSinsertcountInsert operations on the mongos component.
Mongos query QPSquerycountQuery operations on the mongos component.
Mongos update QPSupdatecountUpdate operations on the mongos component.
Mongos delete QPSdeletecountDelete operations on the mongos component.
Mongos getmore QPSgetmorecountGetmore operations on the mongos component.
Mongos command QPScommandcountCommand operations on the mongos component.
moveChunk — times as sourcedonorCountcountNumber of times the node acted as the source for a moveChunk or moveRange operation.
moveChunk — times as targetrecipientCountcountNumber of times the node acted as the destination shard to receive chunks.

Performance Trend

For the metrics available for each instance type, see the console.
Supported instancesMetricMetric IDs and descriptions
Standalone, replica set, sharded clusterCPU usagemongodb.cpu_usage: CPU usage of the instance.
Memory usagemongodb.mem_usage: Memory usage of the instance.
Disk space usagemongodb.detailed_space_usage.ins_size: Total disk space used. mongodb.detailed_space_usage.data_size: Data disk space used. mongodb.detailed_space_usage.log_size: Log disk space used.
Cursorsmongodb.metrics.cursor.timedOut: Number of cursors that timed out. mongodb.metrics.cursor.open.total: Number of currently open cursors.
WiredTiger request queuemongodb.wiredTiger.write_concurrent_trans_out: Concurrent write requests. mongodb.wiredTiger.read_concurrent_trans_out: Concurrent read requests. mongodb.wiredTiger.write_concurrent_trans_available: Available concurrent write slots. mongodb.wiredTiger.read_concurrent_trans_available: Available concurrent read slots.
Note

Supported only for Standard Edition replica set instances.

WiredTiger cachemongodb.wiredTiger.cache.pages.read.into.cache: Data read into the cache. mongodb.wiredTiger.cache.pages.written.from.cache: Data written from the cache. mongodb.wiredTiger.cache.maximum.bytes.configured: Maximum cache size.
Note

Supported only for Standard Edition replica set instances.

Standalone, replica set, sharded cluster, ServerlessDisk usagemongodb.disk_usage: Disk usage of the instance.
Operation QPSmongodb.opcounters.insert: Insert operations. mongodb.opcounters.query: Query operations. mongodb.opcounters.update: Update operations. mongodb.opcounters.delete: Delete operations. mongodb.opcounters.getmore: Getmore operations. mongodb.opcounters.command: Command operations.
Connectionsmongodb.connections.current: Total current connections to the instance.
Network trafficmongodb.network.bytesIn: Inbound traffic. mongodb.network.bytesOut: Outbound traffic. mongodb.network.numRequests: Requests processed.
Replica set, sharded clusterIOPS usagemongodb.iops.data_iops: Read and write operations on the data disk. mongodb.iops.log_iops: Read and write operations on the log disk.
IOPS usage ratemongodb.iops_usage: IOPS usage rate.
Note

Not supported for replica set and sharded cluster instances running MongoDB 4.2 with cloud disks.

Replica setGlobalLockmongodb.globalLock.currentQueue.total: Total global lock queue length. mongodb.globalLock.currentQueue.writers: Write queue length. mongodb.globalLock.currentQueue.readers: Read queue length.