All Products
Search
Document Center

ApsaraDB for MongoDB:Monitoring items and metrics

Last Updated:Feb 24, 2025

This topic describes the monitoring items and metrics supported by the instance monitoring, node monitoring, advanced monitoring, and performance trends features of ApsaraDB for MongoDB.

Note

To better display the monitoring items and metrics, some byte values in the ApsaraDB for MongoDB console are automatically converted to values measured in MB, GB, or TB.

Instance monitoring

Note

The monitoring items vary based on the instance architecture. You can log on to the ApsaraDB for MongoDB console to view monitoring items supported by an instance architecture.

Monitoring item

key

Metric

Description

Unit

Supported instance architecture

Disk utilization

DiskUsage

disk_usage

The disk utilization of the instance.

%

  • Standalone instance

  • Replica set instance

  • Sharded cluster instance

  • Serverless instance

Network traffic

MongoDB_Network

bytes_in

The inbound network traffic of the instance.

Bytes

bytes_out

The outbound network traffic of the instance.

Bytes

num_requests

The number of requests allocated to the instance.

Requests

QPS

MongoDB_Opcounters

insert

The number of insert operations performed on the instance per second.

Operations

query

The number of query operations performed on the instance per second.

Operations

update

The number of update operations performed on the instance per second.

Operations

delete

The number of delete operations performed on the instance per second.

Operations

getmore

The number of read operations performed on the instance per second.

Operations

command

The number of command operations performed on the instance per second.

Operations

Connections

MongoDB_TotalConns

connections_active

The number of active connections to the instance

Connections

current_conn

The number of current connections to the instance.

Connections

connections_totalCreated_ps

The total number of new connections to the instance per second.

Connections

  • Standalone instance

  • Replica set instance

  • Sharded cluster instance

connections_available

The number of available connections to the instance.

Connections

Connection utilization

ConnectionUsage

conn_usage

The connection utilization of the instance.

%

CPU utilization

CpuUsage

cpu_usage

The CPU utilization of the instance.

%

Memory utilization

MemoryUsage

mem_usage

The memory utilization of the instance.

%

IOPS usage

MongoDB_IOPS

iops

The IOPS usage of the instance.

Note
  • The IOPS usage and IOPS utilization of a replica set or sharded cluster instance that runs MongoDB 4.2 and uses cloud disks cannot be queried.

  • The data_iops and log_iops metrics in the previous version of the monitoring system are merged into the iops metric in the new version of the system.

Count/s

IOPS utilization

IOPSUsage

iops_usage

The IOPS utilization of the instance.

Note

The IOPS usage and IOPS utilization of a replica set or sharded cluster instance that runs MongoDB 4.2 and uses cloud disks cannot be queried.

%

Disk usage

MongoDB_DetailedSpaceUsage

ins_size

The total disk space occupied by the instance.

Bytes

data_size

The disk space used by data files such as physical data files whose names start with collection, physical index files whose names start with index, and some physical metadata files such as WiredTiger.wt. The data files exclude the local database.

Bytes

log_size

The physical size of the local database, Mongodb running logs, and some audit logs.

Bytes

Operation details

MongoDB_OperationDetails

operation_exactIDCount_ps

The number of count operations performed on the ID.

Operations

operation_scanAndOrder_ps

The number of sort operations that do not use indexes.

Operations

operation_writeConflicts_ps

The number of write conflicts.

Conflicts

MBPS

MongoDB_Disk_Detail

read_io_bandwidth_mbps

The throughput of disk read operations.

MB/s

write_io_bandwidth_mbps

The throughput of disk write operations.

MB/s

io_bandwidth_mbps

The total disk throughput of the instance.

MB/s

Transaction operations

MongoDB_Transactions

trans_totalPrepared_ps

The number of transactions that are prepared.

Transactions

trans_totalPreparedThenCommited_ps

The number of committed transactions in the prepared transactions.

Transactions

trans_totalPreparedThenAborted_ps

The number of transactions that are rolled back from the prepared transactions.

Transactions

trans_totalStarted_ps

The number of transactions that are started.

Transactions

trans_totalCommited_ps

The number of transactions that are committed.

Transactions

trans_totalAborted_ps

The number of transactions that are rolled back.

Transactions

Cursors

MongoDB_AllCursors

total_open

The number of open cursors in the instance.

Cursors

timed_out

The number of cursors that are disabled due to timeout in the instance.

Cursors

job_cursors_closed

The number of cursors that are disabled due to terminated sessions in the instance.

Cursors

pinned_open

The number of open cursors that time out in the instance.

Cursors

noTimeout_open

The number of open cursors that do not time out in the instance.

Cursors

  • Standalone instance

  • Replica set instance

  • Sharded cluster instance (valid only for shard and ConfigServer components in a sharded cluster instance)

WiredTiger

MongoDB_Wt_Cache

bytes_read_into_cache

The number of bytes written to the cache.

Bytes

bytes_written_from_cache

The number of bytes read from the cache.

Bytes

maximum_bytes_configured

The maximum cache size.

Bytes

Concurrent transactions in WiredTiger

MongoDB_Wt_Concurrent_Trans

write_concurrent_trans_out

The number of concurrent write transactions in the WiredTiger request queue.

Transactions

write_concurrent_trans_available

The number of concurrent write transactions available in the WiredTiger request queue.

Transactions

read_concurrent_trans_out

The number of concurrent read transactions in the WiredTiger request queue.

Transactions

read_concurrent_trans_available

The number of concurrent read transactions available in the WiredTiger request queue.

Transactions

WiredTigerUsage

MongoDB_WTCacheUsage

wt_cache_dirty_usage

The utilization of the dirty cache in WiredTiger.

%

wt_cache_usage

The utilization of the cache in WiredTiger.

%

Average response time

MongoDB_RT

avg_rt

The average response time of the instance.

Microseconds

reads_avg_rt

The average response time of the read operation.

Microseconds

writes_avg_rt

The average response time of the write operation.

Microseconds

commands_avg_rt

The average response time of the command operation.

Microseconds

trans_avg_rt

The average response time of the transaction operation.

Microseconds

Affected documents

MongoDB_Documents

document_deleted_ps

The number of deleted documents for the instance.

Documents

document_inserted_ps

The number of inserted documents for the instance.

Documents

document_returned_ps

The number of returned documents for the instance.

Documents

document_updated_ps

The number of updated documents for the instance.

Documents

GlobalLock

MongoDB_GlobalLocks

gl_ac_readers

The number of active connections that perform read operations.

Connections

gl_ac_writers

The number of active connections that perform write operations.

Connections

gl_cq_writers

The number of operations queuing for the write lock.

Operations

gl_cq_readers

The number of operations queuing for the read lock.

Operations

gl_cq_total

The total number of operations queuing for the lock.

Operations

Indexes and documents that are queried and scanned

MongoDB_QueryExecutors

queryExecutor_scannedObject_ps

The number of documents that are queried and scanned.

Documents

queryExecutor_scanned_ps

The number of indexes that are queried and scanned.

Indexes

TTL

MongoDB_TTLs

ttl_deletedDocuments_ps

The number of documents that are deleted due to time-to-Live (TTL) indexes.

Documents

ttl_passes_ps

The number of delete operations that the background TTL threads perform.

Operations

Repl Opcounters

MongoDB_ReplOpcounters

repl_command

The number of operations performed to replicate the Command command.

Operations

repl_delete

The number of operations performed to replicate the Delete command.

Operations

repl_getmore

The number of operations performed to replicate the Getmore command.

Operations

repl_insert

The number of operations performed to replicate the Insert command.

Operations

repl_query

The number of operations performed to replicate the Query command.

Operations

repl_update

The number of operations performed to replicate the Update command.

Operations

The number of scan operations during eviction.

MongoDB_WtCacheHPCheckEntriesWalked

wiredTiger_cache_hazardPointerCheckEntriesWalked

The number of entries scanned for the hazard pointer array.

Entries

Lock Acquisitions

MongoDB_WtLockAcquisitions

wt_checkPoint_lock

The number of checkpoint locks that are obtained.

Locks

wt_dhandle_read_lock

The number of data handle read locks that are obtained.

Locks

wt_dhandle_write_lock

The number of data handle write locks that are obtained.

Locks

wt_metadata_lock

The number of metadata locks that are obtained.

Locks

wt_schema_lock

The number of mode locks that are obtained.

Locks

wt_table_read_lock

The number of collection-level read locks that are obtained.

Locks

wt_table_write_lock

The number of collection-level write locks that are obtained.

Locks

wt_txn_global_read_lock

The number of transaction-level global read locks that are obtained.

Locks

wt_txn_global_write_lock

The number of transaction-level global write locks that are obtained.

Locks

MBPS utilization

MongoDB_MbpsUsage

total_mbps_usage

The bandwidth utilization of disk reads/writes.

Note

The metric is supported only for instances that use cloud disks.

%

  • Standalone instance

  • Replica set instance

  • Sharded cluster instance (valid only for shards in a sharded cluster instance)

Primary/secondary latency

MongoDB_Repl_Lag

repl_lag

The latency in data synchronization between the primary and secondary nodes of the instance.

Note
  • The heartbeat interval between the primary and secondary nodes in a replica set instance is 2 seconds. Therefore, the repl_lag value of a replica set or sharded cluster instance can range from -2 to 2.

  • The repl_lag value of a secondary node in a replica set instance may be a negative value. This does not mean that the secondary node leads the primary node in the instance in the terms of data updates. To obtain the latest status of the primary/secondary latency in a replica set instance, run the rs.printSecondaryReplicationInfo() command on the primary node in the instance.

Seconds

  • Replica set instance

  • Sharded cluster instance (valid only for shard and ConfigServer components in a sharded cluster instance)

Retention period of oplogs

MongoDB_OplogTimeInterval

oplog_time_interval

The retention period of binary logs.

Hours

moveChunk

MongoDB_MoveChunks

moveChunk_donor_started_ps

The number of times that the current node is used as the moveChunk source shard.

Times

  • Sharded cluster instance (valid only for shard and mongos components in a sharded cluster instance)

moveChunk_recip_stared_ps

The number of times that the current node is used as the moveChunk destination shard.

Times

Requests

-

sl_qps

The number of requests per second.

Requests

  • Serverless instance

Node monitoring (previously basic monitoring)

Note

The monitoring items vary based on the instance architecture. You can log on to the ApsaraDB for MongoDB console to view monitoring items supported by an instance architecture.

Monitoring item

key

Metric

Description

Unit

Supported instance architecture

Disk utilization

DiskUsage

disk_usage

The disk utilization of the instance.

%

  • Standalone instance

  • Replica set instance

  • Sharded cluster instance

  • Serverless instance

Network traffic

MongoDB_Network

bytes_in

The inbound network traffic of the instance.

Bytes

bytes_out

The outbound network traffic of the instance.

Bytes

num_requests

The number of requests allocated to the instance.

Requests

QPS

MongoDB_Opcounters

insert

The number of insert operations performed on the instance per second.

Operations

query

The number of query operations performed on the instance per second.

Operations

update

The number of update operations performed on the instance per second.

Operations

delete

The number of delete operations performed on the instance per second.

Operations

getmore

The number of read operations performed on the instance per second.

Operations

command

The number of command operations performed on the instance per second.

Operations

Connections

MongoDB_TotalConns

connections_active

The number of active connections to the instance

Connections

current_conn

The number of current connections to the instance.

Connections

connections_totalCreated_ps

The total number of new connections to the instance per second.

Connections

  • Standalone instance

  • Replica set instance

  • Sharded cluster instance

connections_available

The number of available connections to the instance.

Connections

Connection utilization

ConnectionUsage

conn_usage

The connection utilization of the instance.

%

CPU utilization

CpuUsage

cpu_usage

The CPU utilization of the instance.

%

Memory utilization

MemoryUsage

mem_usage

The memory utilization of the instance.

%

IOPS usage

MongoDB_IOPS

iops

The IOPS usage of the instance.

Note
  • The IOPS usage and IOPS utilization of a replica set or sharded cluster instance that runs MongoDB 4.2 and uses cloud disks cannot be queried.

  • The data_iops and log_iops metrics in the previous version of the monitoring system are merged into the iops metric in the new version of the system.

Count/s

IOPS utilization

IOPSUsage

iops_usage

The IOPS utilization of the instance.

Note

The IOPS usage and IOPS utilization of a replica set or sharded cluster instance that runs MongoDB 4.2 and uses cloud disks cannot be queried.

%

Disk usage

MongoDB_DetailedSpaceUsage

ins_size

The total disk space occupied by the instance.

Bytes

data_size

The disk space used by data files such as physical data files whose names start with collection, physical index files whose names start with index, and some physical metadata files such as WiredTiger.wt. The data files exclude the local database.

Bytes

log_size

The physical size of the local database, Mongodb running logs, and some audit logs.

Bytes

Operation details

MongoDB_OperationDetails

operation_exactIDCount_ps

The number of count operations performed on the ID.

Operations

operation_scanAndOrder_ps

The number of sort operations that do not use indexes.

Operations

operation_writeConflicts_ps

The number of write conflicts.

Conflicts

MBPS

MongoDB_Disk_Detail

read_io_bandwidth_mbps

The throughput of disk read operations.

MB/s

write_io_bandwidth_mbps

The throughput of disk write operations.

MB/s

io_bandwidth_mbps

The total disk throughput of the instance.

MB/s

Transaction operations

MongoDB_Transactions

trans_totalPrepared_ps

The number of transactions that are prepared.

Transactions

trans_totalPreparedThenCommited_ps

The number of committed transactions in the prepared transactions.

Transactions

trans_totalPreparedThenAborted_ps

The number of transactions that are rolled back from the prepared transactions.

Transactions

trans_totalStarted_ps

The number of transactions that are started.

Transactions

trans_totalCommited_ps

The number of transactions that are committed.

Transactions

trans_totalAborted_ps

The number of transactions that are rolled back.

Transactions

Cursors

MongoDB_AllCursors

total_open

The number of open cursors in the instance.

Cursors

timed_out

The number of cursors that are disabled due to timeout in the instance.

Cursors

job_cursors_closed

The number of cursors that are disabled due to terminated sessions in the instance.

Cursors

pinned_open

The number of open cursors that time out in the instance.

Cursors

noTimeout_open

The number of open cursors that do not time out in the instance.

Cursors

  • Standalone instance

  • Replica set instance

  • Sharded cluster instance (valid only for shard and ConfigServer components in a sharded cluster instance)

WiredTiger

MongoDB_Wt_Cache

bytes_read_into_cache

The number of bytes written to the cache.

Bytes

bytes_written_from_cache

The number of bytes read from the cache.

Bytes

maximum_bytes_configured

The maximum cache size.

Bytes

Concurrent transactions in WiredTiger

MongoDB_Wt_Concurrent_Trans

write_concurrent_trans_out

The number of concurrent write transactions in the WiredTiger request queue.

Transactions

write_concurrent_trans_available

The number of concurrent write transactions available in the WiredTiger request queue.

Transactions

read_concurrent_trans_out

The number of concurrent read transactions in the WiredTiger request queue.

Transactions

read_concurrent_trans_available

The number of concurrent read transactions available in the WiredTiger request queue.

Transactions

WiredTigerUsage

MongoDB_WTCacheUsage

wt_cache_dirty_usage

The utilization of the dirty cache in WiredTiger.

%

wt_cache_usage

The utilization of the cache in WiredTiger.

%

Average response time

MongoDB_RT

avg_rt

The average response time of the instance.

Microseconds

reads_avg_rt

The average response time of the read operation.

Microseconds

writes_avg_rt

The average response time of the write operation.

Microseconds

commands_avg_rt

The average response time of the command operation.

Microseconds

trans_avg_rt

The average response time of the transaction operation.

Microseconds

Affected documents

MongoDB_Documents

document_deleted_ps

The number of deleted documents for the instance.

Documents

document_inserted_ps

The number of inserted documents for the instance.

Documents

document_returned_ps

The number of returned documents for the instance.

Documents

document_updated_ps

The number of updated documents for the instance.

Documents

GlobalLock

MongoDB_GlobalLocks

gl_ac_readers

The number of active connections that perform read operations.

Connections

gl_ac_writers

The number of active connections that perform write operations.

Connections

gl_cq_writers

The number of operations queuing for the write lock.

Operations

gl_cq_readers

The number of operations queuing for the read lock.

Operations

gl_cq_total

The total number of operations queuing for the lock.

Operations

Indexes and documents that are queried and scanned

MongoDB_QueryExecutors

queryExecutor_scannedObject_ps

The number of documents that are queried and scanned.

Documents

queryExecutor_scanned_ps

The number of indexes that are queried and scanned.

Indexes

TTL

MongoDB_TTLs

ttl_deletedDocuments_ps

The number of documents that are deleted due to time-to-Live (TTL) indexes.

Documents

ttl_passes_ps

The number of delete operations that the background TTL threads perform.

Operations

Repl Opcounters

MongoDB_ReplOpcounters

repl_command

The number of operations performed to replicate the Command command.

Operations

repl_delete

The number of operations performed to replicate the Delete command.

Operations

repl_getmore

The number of operations performed to replicate the Getmore command.

Operations

repl_insert

The number of operations performed to replicate the Insert command.

Operations

repl_query

The number of operations performed to replicate the Query command.

Operations

repl_update

The number of operations performed to replicate the Update command.

Operations

The number of scan operations during eviction.

MongoDB_WtCacheHPCheckEntriesWalked

wiredTiger_cache_hazardPointerCheckEntriesWalked

The number of entries scanned for the hazard pointer array.

Entries

Lock Acquisitions

MongoDB_WtLockAcquisitions

wt_checkPoint_lock

The number of checkpoint locks that are obtained.

Locks

wt_dhandle_read_lock

The number of data handle read locks that are obtained.

Locks

wt_dhandle_write_lock

The number of data handle write locks that are obtained.

Locks

wt_metadata_lock

The number of metadata locks that are obtained.

Locks

wt_schema_lock

The number of mode locks that are obtained.

Locks

wt_table_read_lock

The number of collection-level read locks that are obtained.

Locks

wt_table_write_lock

The number of collection-level write locks that are obtained.

Locks

wt_txn_global_read_lock

The number of transaction-level global read locks that are obtained.

Locks

wt_txn_global_write_lock

The number of transaction-level global write locks that are obtained.

Locks

MBPS utilization

MongoDB_MbpsUsage

total_mbps_usage

The bandwidth utilization of disk reads/writes.

Note

The metric is supported only for instances that use cloud disks.

%

  • Standalone instance

  • Replica set instance

  • Sharded cluster instance (valid only for shards in a sharded cluster instance)

Primary/secondary latency

MongoDB_Repl_Lag

repl_lag

The latency in data synchronization between the primary and secondary nodes of the instance.

Note
  • The heartbeat interval between the primary and secondary nodes in a replica set instance is 2 seconds. Therefore, the repl_lag value of a replica set or sharded cluster instance can range from -2 to 2.

  • The repl_lag value of a secondary node in a replica set instance may be a negative value. This does not mean that the secondary node leads the primary node in the instance in the terms of data updates. To obtain the latest status of the primary/secondary latency in a replica set instance, run the rs.printSecondaryReplicationInfo() command on the primary node in the instance.

Seconds

  • Replica set instance

  • Sharded cluster instance (valid only for shard and ConfigServer components in a sharded cluster instance)

Retention period of oplogs

MongoDB_OplogTimeInterval

oplog_time_interval

The retention period of binary logs.

Hours

moveChunk

MongoDB_MoveChunks

moveChunk_donor_started_ps

The number of times that the current node is used as the moveChunk source shard.

Times

  • Sharded cluster instance (valid only for shard and mongos components in a sharded cluster instance)

moveChunk_recip_stared_ps

The number of times that the current node is used as the moveChunk destination shard.

Times

Requests

-

sl_qps

The number of requests per second.

Requests

  • Serverless instance

Advanced monitoring

Note
  • The advanced monitoring feature is supported only by standalone, replica set, and sharded cluster instances.

  • The monitoring items vary based on the instance architecture. You can log on to the ApsaraDB for MongoDB console to view monitoring items supported by an instance architecture.

Instance architecture

Monitoring item

Metric

Description

Unit

  • Standalone instance

  • Replica set instance

  • Sharded cluster instance

CPU utilization

cpu_usage

The CPU utilization of the instance.

%

Memory utilization

mem_usage

The memory utilization of the instance.

%

Disk usage

ins_size

The total disk usage of the instance.

Bytes

data_size

The disk space occupied by data.

Bytes

log_size

The disk space occupied by logs.

Bytes

Connection utilization

conn_usage

The proportion of the current connections to the maximum connections.

%

cursors

open_no_timedout

The number of open cursors that have timeout disabled.

Cursors

open_with_timedout

The number of open cursors that have timeout enabled.

Cursors

open_total

The number of currently used cursors.

Cursors

closed_by_timeout

The number of cursors that are disabled due to timeout.

Cursors

closed_by_session

The number of cursors that are disabled due to terminated sessions.

Cursors

Read/write queue length

currentQueue_total

The total number of operations queuing for the lock.

Operations

currentQueue_readers

The number of operations queuing for the read lock.

Operations

currentQueue_writers

The number of operations queuing for the write lock.

Operations

active_readers

The number of active connections that perform read operations.

Connections

active_writers

The number of active connections that perform write operations.

Connections

Average response time (MongoDB_RT)

avg_RT

The average response time of the instance.

Microseconds

reads_avg_rt

The average response time of the read operation.

Microseconds

writes_avg_rt

The average response time of the write operation.

Microseconds

commands_avg_rt

The average response time of the command operation.

Microseconds

trans_avg_rt

The average response time of the transaction operation.

Microseconds

WiredTiger transactions

write_concurrent_trans_out

The number of concurrent write requests that are being handled.

Requests

read_concurrent_trans_out

The number of concurrent read requests that are being handled.

Requests

write_concurrent_trans_available

The number of concurrent write requests available in the WiredTiger request queue.

Requests

read_concurrent_trans_available

The number of concurrent read requests available in the WiredTiger request queue.

Requests

I/O latency

iocheck_cost

The length of time that is required to wait for responses from the current I/O system. This metric is used to indicate the responsiveness of the current I/O system.

Note

This metric is supported only for standalone instances and replica set instances that run MongoDB 4.0 or earlier.

Milliseconds

WiredTiger cache utilization

wt_cache_usage

The cache utilization of the WiredTiger engine.

%

wt_cache_dirty_usage

The dirty cache utilization of the WiredTiger engine.

%

Affected documents

deletedDocuments

The number of deleted documents.

Documents

insertedDocuments

The number of inserted documents.

Documents

returnDocuments

The number of returned documents.

Documents

updatedDocuments

The number of updated documents.

Documents

Operation details

scanAndOrder

The number of requests that cannot be sorted by index.

Requests

writeConflicts

The number of write conflicts.

Conflicts

exactIDCount

The number of requests that are sent to query matched IDs by using broadcast.

Requests

Indexes and documents that are queried and scanned

scannedKeys

The number of indexes that are queried and scanned.

Indexes

scannedDocs

The number of documents that are queried and scanned.

Documents

TTL

ttlDeletedDocuments

The number of documents that are deleted due to TTL indexes.

Documents

ttlPasses

The number of delete operations that the background TTL threads perform.

Operations

Lock Acquisitions

wiredTiger_schema_lock_delta

The number of mode locks that are obtained.

Locks

wiredTiger_metadata_lock_delta

The number of metadata locks that are obtained.

Locks

wiredTiger_table_read_lock_delta

The number of collection-level read locks that are obtained.

Locks

wiredTiger_table_write_lock_delta

The number of collection-level write locks that are obtained.

Locks

wiredTiger_txn_global_read_lock_delta

The number of transaction-level global read locks that are obtained.

Locks

wiredTiger_txn_global_write_lock_delta

The number of transaction-level global write locks that are obtained.

Locks

MBPS

read_io_bandwidth_mbps

The throughput of disk read operations.

MB/s

write_io_bandwidth_mbps

The throughput of disk write operations.

MB/s

io_bandwidth_mbps

The total disk throughput of the instance.

MB/s

Transaction operations

trans_totalPrepared_ps

The number of transactions that are prepared.

Connections

trans_totalPreparedThenCommited_ps

The number of committed transactions in the prepared transactions.

Connections

trans_totalPreparedThenAborted_ps

The number of transactions that are rolled back from the prepared transactions.

Transactions

trans_totalStarted_ps

The number of transactions that are started.

Transactions

trans_totalCommited_ps

The number of transactions that are committed.

Transactions

trans_totalAborted_ps

The number of transactions that are rolled back.

Transactions

MBPS utilization

total_mbps_usage

The bandwidth utilization of disk reads/writes.

Note
  • The metric is supported only for instances that use cloud disks.

  • For a sharded cluster instance, the metric is supported only for shard components in the instance.

%

WiredTiger

bytes_read_into_cache

The size of data read to the cache.

Bytes

bytes_written_from_cache

The capacity of the disk with data written from the cache.

Bytes

maximum_bytes_configured

The maximum available disk capacity allocated to the WiredTiger cache.

Bytes

Disk utilization

disk_usage

The percentage of the total space used by the instance to the maximum available space.

%

QPS

insert

The number of insert operations.

Operations

query

The number of query operations.

Operations

update

The number of update operations.

Operations

delete

The number of delete operations.

Operations

getmore

The number of read operations.

Operations

command

The number of command operations.

Operations

Connections

current_conn

The total number of connections to the instance.

Connections

active_conn

The number of active connections to the instance

Connections

Network traffic

bytes_in

The inbound traffic.

Bytes

bytes_out

The outbound traffic.

Bytes

  • Replica set instance

  • Sharded cluster instance

IOPS usage

data_iops(iops)

The IOPS usage of the instance.

Note
  • The IOPS usage and IOPS utilization of an instance that runs MongoDB 4.2 and uses cloud disks cannot be queried.

  • The data_iops and log_iops metrics in the previous version of the monitoring system are merged into the data_iops(iops) metric in the new version of the system.

Count/s

IOPS utilization

iops_usage

The percentage of the IOPS used by the instance to the maximum available IOPS.

Note

The IOPS usage and IOPS utilization of an instance that runs MongoDB 4.2 and uses cloud disks cannot be queried.

%

Primary/secondary latency

repl_lag

The latency of data synchronization between the primary and secondary nodes of the instance.

Note
  • The heartbeat interval between the primary and secondary nodes in a replica set instance is 2 seconds. Therefore, the repl_lag value of a replica set or sharded cluster instance can range from -2 to 2.

  • The repl_lag value of a secondary node in a replica set instance may be a negative value. This does not mean that the secondary node leads the primary node in the instance in the terms of data updates. To obtain the latest status of the primary/secondary latency in a replica set instance, run the rs.printSecondaryReplicationInfo() command on the primary node in the instance.

Seconds

Sharded cluster instance

Total QPS of the shard component in the sharded cluster instance

insert_primary

The number of insert operations performed on the primary node.

Operations

query_primary

The number of query operations performed on the primary node.

Operations

update_primary

The number of update operations performed on the primary node.

Operations

delete_primary

The number of delete operations performed on the primary node.

Operations

getmore_primary

The number of read operations performed on the primary node.

Operations

command_primary

The number of command operations performed on the primary node.

Operations

insert_secondary

The number of insert operations performed on the secondary node.

Operations

query_secondary

The number of query operations performed on the secondary node.

Operations

insert_hidden

The number of insert operations performed on the hidden node.

Operations

query_hidden

The number of query operations performed on the hidden section.

Operations

update_hidden

The number of update operations performed on the hidden node.

Operations

delete_hidden

The number of delete operations performed on the hidden node.

Operations

getmore_hidden

The number of read operations performed on the hidden node.

Operations

command_hidden

The number of command operations performed on the hidden node.

Operations

Total QPS of the mongos component in the sharded cluster instance

insert

The number of insert operations.

Operations

query

The number of query operations.

Operations

update

The number of update operations.

Operations

delete

The number of delete operations.

Operations

getmore

The number of read operations.

Operations

command

The number of command operations.

Operations

moveChunk

donorCount

The number of times that the current node is used as the moveChunk source shard.

Times

recipientCount

The number of times that the current node is used as the moveChunk destination shard.

Times

Performance trends

Note

The monitoring items vary based on the instance architecture. You can log on to the ApsaraDB for MongoDB console to view monitoring items supported by an instance architecture.

Instance architecture

Monitoring item

Metric

  • Standalone instance

  • Replica set instance

  • Sharded cluster instance

CPU utilization

mongodb.cpu_usage: the CPU utilization of the instance.

Memory utilization

mongodb.mem_usage: the memory utilization of the instance.

Disk usage

The performance trends of the disk space used by the instance. Related metrics:

  • mongodb.detailed_space_usage.ins_size: the total disk space used by the instance.

  • mongodb.detailed_space_usage.data_size: the disk space used by data files.

  • mongodb.detailed_space_usage.log_size: the disk space used by log files.

cursors

The performance trends of cursors of the instance. Related metrics:

  • mongodb.metrics.cursor.timedOut: the number of cursors that timed out.

  • mongodb.metrics.cursor.open.total: the number of open cursors.

WiredTiger transactions

The performance trends of read/write requests and available concurrent requests. Related metrics:

  • mongodb.wiredTiger.write_concurrent_trans_out: the number of concurrent write requests.

  • mongodb.wiredTiger.read_concurrent_trans_out: the number of concurrent read requests.

  • mongodb.wiredTiger.write_concurrent_trans_available: the number of concurrent write requests that are available.

  • mongodb.wiredTiger.read_concurrent_trans_available: the number of concurrent read requests that are available.

Note

These metrics are supported only for replica set instances of the standard edition.

WiredTiger

The performance trends of the cache metrics of the WiredTiger engine used by the instance. Related metrics:

  • mongodb.wiredTiger.cache.pages.read.into.cache: the amount of data that is read into the cache.

  • mongodb.wiredTiger.cache.pages.written.from.cache: the amount of data that is written from the cache.

  • mongodb.wiredTiger.cache.maximum.bytes.configured: the maximum cache size.

Note

These metrics are supported only for replica set instances of the standard edition.

  • Standalone instance

  • Replica set instance

  • Sharded cluster instance

  • Serverless instance

Disk utilization

mongodb.disk_usage: the disk utilization of the instance.

QPS

The performance trends of the QPS of the instance. Related metrics:

  • mongodb.opcounters.insert: the number of insert operations.

  • mongodb.opcounters.query: the number of query operations.

  • mongodb.opcounters.update: the number of update operations.

  • mongodb.opcounters.delete: the number of delete operations.

  • mongodb.opcounters.getmore: the number of read operations.

  • mongodb.opcounters.command: the number of command operations.

Connections

mongodb.connections.current: the total number of connections to the instance.

Network traffic

The performance trends of the network traffic of the instance. Related metrics:

  • mongodb.network.bytesIn: the inbound network traffic.

  • mongodb.network.bytesOut: the outbound network traffic.

  • mongodb.network.numRequests: the number of requests that are processed.

  • Replica set instance

  • Sharded cluster instance

IOPS usage

The performance trends of the IOPS usage of the instance. Related metrics:

  • mongodb.iops.data_iops: the number of read/write operations performed on the data disk.

  • mongodb.iops.log_iops: the number of read/write operations performed on the log disk.

IOPS utilization

mongodb.iops_usage: the IOPS utilization of the instance.

Note

The IOPS usage and IOPS utilization of a replica set or sharded cluster instance that runs MongoDB 4.2 and uses cloud disks cannot be queried.

Replica set instance

GlobalLock

The performance trends of the global lock of the instance. Related metrics:

  • mongodb.globalLock.currentQueue.total: the number of operations queuing for the global read/write lock.

  • mongodb.globalLock.currentQueue.writers: the number of operations queuing for the global write lock.

  • mongodb.globalLock.currentQueue.readers: the number of operations queuing for the global read lock.