All Products
Search
Document Center

ApsaraDB for MongoDB:ApsaraDB for MongoDB replica set instances

Last Updated:Mar 28, 2026

This page lists the CloudMonitor metrics available for ApsaraDB for MongoDB replica set instances. Use these metrics to configure alert rules and monitor instance health.

Before you begin

When calling CloudMonitor API operations, set the following parameters:

  • Namespace: acs_mongodb

  • Period: an integer multiple of 60. Default: 60. Unit: seconds.

All metrics share the same Dimensions (userId, instanceId, role) and Statistics (Maximum, Minimum, Average).

Dimensions

Each metric supports the following dimensions for filtering CloudMonitor data:

DimensionDescription
userIdFilters data for a specific Alibaba Cloud account.
instanceIdFilters data for a specific replica set instance.
roleFilters data by node role. Use this dimension to monitor primary and secondary nodes separately.

Resource utilization metrics

Metric in alert rulesIndicatorUnitMetricNameDescription
CPU utilizationcpu_usage%CPUUtilizationMonitor to detect sustained high CPU load that may degrade query performance.
Memory usagemem_usage%MemoryUtilizationMonitor to identify memory pressure that could cause increased disk I/O or OOM conditions.
Disk usagedisk_usage%DiskUtilizationMonitor to prevent the instance from running out of disk space and becoming unavailable.
IOPS usageiops_usage%IOPSUtilizationMonitor to detect when disk throughput approaches the provisioned limit.
Disk size occupied by datadata_sizeByteDataDiskAmountMonitor to track data growth and plan capacity scaling.
Disk size occupied by instancesins_sizeByteInstanceDiskAmountMonitor to understand total instance disk consumption across data, logs, and indexes.
Disk size occupied by logslog_sizeByteLogDiskAmountMonitor to detect abnormal log growth caused by replication errors or high write loads.

Connection metrics

Metric in alert rulesIndicatorUnitMetricNameDescription
Number of used connectionscurrent_connCountConnectionAmountMonitor to determine whether the current connection limit is sufficient for your workload.
Connection usageconn_usage%ConnectionUtilizationMonitor to detect when the instance is approaching its maximum connection count.

Traffic metrics

Metric in alert rulesIndicatorUnitMetricNameDescription
Internal inbound trafficbytes_inByteIntranetInMonitor to track data ingestion rates and detect unexpected traffic spikes.
Internal outbound trafficbytes_outByteIntranetOutMonitor to track data egress and identify read-heavy workloads or hot data access patterns.

Operations metrics

QPS is the sum of all six operation types: insert, delete, update, query, getmore, and command.

Metric in alert rulesIndicatorUnitMetricNameDescription
Queries per second (QPS)insert+delete+update+query+getmore+commandCount/sQPSMonitor overall throughput. A sudden spike or drop may indicate a workload change or an incident.
Number of requestsnum_requestsCountNumberRequestsMonitor total request volume to understand cumulative load on the instance.
Number of insert operationsinsertCount/sOpInsertMonitor to track write load. Combine with update and delete metrics to analyze the read/write ratio.
Number of query operationsqueryCount/sOpQueryMonitor to identify query-heavy workloads that may benefit from index optimization.
Number of update operationsupdateCount/sOpUpdateMonitor alongside insert and delete to understand mutation patterns.
Number of delete operationsdeleteCount/sOpDeleteMonitor for unexpected deletion spikes that may indicate application bugs or data pipeline issues.
Number of getMore operationsgetmoreCount/sOpGetmoreMonitor to detect cursor-heavy workloads that can exhaust memory on large result sets.
Number of command operationscommandCount/sOpCommandMonitor to track administrative and aggregation commands that may affect overall performance.

Replication metrics

Metric in alert rulesIndicatorUnitMetricNameDescription
Replication lagrepl_lagSecondsReplicationLagMonitor to detect when secondary nodes fall behind the primary. High lag may indicate replication issues that require investigation.