All Products
Search
Document Center

ApsaraDB for MongoDB:Node monitoring (previously basic monitoring)

Last Updated:Feb 24, 2025

ApsaraDB for MongoDB provides the node monitoring feature to monitor the resource running status of each node in an ApsaraDB for MongoDB instance, such as the CPU and memory utilization.

Usage notes

  • When you receive an alert message from Alibaba Cloud, such as a message indicating that the CPU utilization of your instance exceeds 80%, you can view the monitoring data of the instance in the ApsaraDB for MongoDB console to troubleshoot the issue. You can filter the nodes of the instance to check the status of each node and locate the node where the issue occurs.

  • Monitoring data is retained for up to 30 days. The monitoring data that was generated more than 30 days ago cannot be viewed.

  • The IOPS Usage and IOPS Usage (%) metrics of the following instances cannot be displayed in the ApsaraDB for MongoDB console: standalone instances, replica set instances that run MongoDB 4.2 and use cloud disks, and sharded cluster instances that run MongoDB 4.2 and use cloud disks.

    The IOPS Usage and IOPS Usage (%) metrics of the preceding instances are displayed as 0 on the Monitoring Data page in the console, which do not indicate the actual IOPS usage.

Collection granularity

ApsaraDB for MongoDB allows you to select a collection granularity (interval between two monitoring time points) in the ApsaraDB for MongoDB console. The following collection granularity is available: 5 seconds, 30 seconds, 1 minute, 10 minutes, 30 minutes, 1 hour, and 1 day.

If you set the query time range to 1 day and the collection granularity to 1 minute, the monitoring curve consists of 1,440 time points.

The collection granularity range depends on the query time range. The following table describes the query time ranges and corresponding collection granularity ranges.

Query time range

Minimum collection granularity

Maximum collection granularity

From 1 minute to 10 minutes

5 seconds

1 minute

Greater than 10 minutes and less than or equal to 30 minutes

5 seconds

10 minutes

Greater than 30 minutes and less than or equal to 1 hour

5 seconds

30 minutes

Greater than 1 hour and less than or equal to 1 day

1 minute

1 hour

Greater than 1 day and less than or equal to 30 days

30 minutes

1 day

Note

Select a proper query time range and collection granularity. If the selected query time range is less than two times of the selected collection granularity, a monitoring chart contains only a monitoring time point that cannot form a curve.

Procedure

  1. Go to the Replica Set Instances or Sharded Cluster Instances page. In the top navigation bar, select the region in which an instance resides. Then, find the instance and click the ID of the instance.

  2. In the left-side navigation pane of the instance details page, click Monitoring Data.

  3. Click the Node Monitoring tab.

  4. Select the node whose monitoring data you want to view based on instance architecture.:

    Replica set instance

    In the upper-left corner of the Node Monitoring tab, you can select a primary, secondary, or read-only node to view the corresponding monitoring data.

    Note

    If you select a role but not a node, a monitoring chart displays the aggregation results of the average metric values of all nodes that belong to the role.

    Sharded cluster instance

    In the upper part of the Node Monitoring tab, you can select a mongos, shard, or ConfigServer node to view the corresponding monitoring data.

    If you click Shard, you can select a primary, secondary, or read-only node to view the corresponding monitoring data.

    Note

    If you select a role but not a node, a monitoring chart displays the aggregation results of the average metric values of all nodes that belong to the role.

    Standalone instance

    You can view the monitoring data of a primary node.

  5. Click the time range picker in the upper-right corner to specify a time range.

  6. Click Instance Sampling Interval in the upper-left corner of a monitoring chart to change the collection granularity of monitoring data.

  7. View monitoring data. Move the pointer over a time point in the x-axis of a monitoring chart of a metric to view the details of the metric at the time point.

    For more information about the metrics that you can view, see Monitoring items and metrics.

References

Monitoring items and metrics