ApsaraDB for MongoDB provides the monitoring data feature to monitor the running status of nodes in an instance. You can view metrics such as the CPU utilization and memory usage of commonly used resources in the Monitoring Data module.
- When you receive an alert message from Alibaba Cloud, such as a message which indicates that the CPU utilization of your instance exceeds 80%, you can view 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. You cannot view the monitoring data that was generated more than 30 days ago.
- In the new ApsaraDB for MongoDB console, the instance sampling granularity of standalone instances is fixed at 60 seconds, and that of replica set instances and sharded cluster instances is fixed at 5 seconds.
- In the old ApsaraDB for MongoDB console, the instance sampling granularity can be set to 1 second or 300 seconds. For more information, see Set collection frequency of monitoring data.
- Log on to the ApsaraDB for MongoDB console.
- In the upper-left corner of the page, select the resource group and the region of the target instance.
- In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances.
- Find the target instance and click its ID.
- In the left-side navigation pane, click Monitoring Data.
- View monitoring data based on instance categories:
- Standalone instances
You can view the monitoring data of a primary node.
- Replica set instances
In the upper-right corner of the page, you can select a primary, secondary, or read-only node to view the corresponding monitoring data.
- Sharded cluster instances
In the upper-right corner of the page, you can select a mongos node that starts with s-, a shard node that starts with d-, or a Configserver node that starts with -cs to view the corresponding monitoring data.If a shard node is selected, you can select a primary, secondary, hidden, or read-only node to view the corresponding monitoring data.
- Standalone instances
- Click the time range picker in the upper-right corner to specify a time range. Note By default, the monitoring data of the last day is displayed. You can specify a period of time within the last 30 days to view the monitoring data of an instance.
- View monitoring information. You can move the pointer over a point in time of a metric
to view the details of the instance metric at the point in time. For more information
about the displayed metrics, see Metrics.