ApsaraDB for MongoDB provides instance monitoring to track the status of resources on each node. You can use this feature to view metrics for common resources, such as CPU utilization and memory usage, for a combination of multiple nodes by selecting dimensions such as instance components and node roles.
Instance monitoring provides two modes to query aggregated monitoring data:
-
Multi-node Monitoring: Displays aggregated results by averaging the metric values of multiple nodes within the selected scope. This mode helps you understand the overall status across dimensions.
-
Per-node Monitoring: Displays the metric values for each selected node separately. This mode lets you compare the status of individual nodes.
Usage notes
MongoDB standalone instances do not support viewing IOPS usage and IOPS utilization. For these instances, the IOPS usage and IOPS utilization metrics on the Monitoring Data page always display 0 and do not reflect actual IOPS data.
Collection granularity
You can select the collection granularity, which is the time interval between data points. Supported granularities are 1 minute, 10 minutes, 30 minutes, 1 hour, and 1 day.
The available collection granularity options depend on the selected time range, as described in the following table:
|
Time range |
Min granularity |
Max granularity |
|
≥ 1 minute and ≤ 10 minutes |
1 minute |
1 minute |
|
> 10 minutes and ≤ 20 minutes |
1 minute |
10 minutes |
|
> 20 minutes and ≤ 1 hour |
1 minute |
30 minutes |
|
> 1 hour and ≤ 1 day |
1 minute |
1 hour |
|
> 1 day and ≤ 7 days |
30 minutes |
1 day |
|
> 7 days and ≤ 30 days |
1 day |
1 day |
For example, if you set the time range to 1 day and the collection granularity to 1 minute, the monitoring chart displays 1,440 data points.
Select an appropriate time range and collection granularity. If the selected time range is shorter than two collection intervals, the monitoring chart displays only a single data point instead of a line.
Procedure
-
Go to the ApsaraDB for MongoDB Replica Set Instances page or the ApsaraDB for MongoDB Sharded Cluster Instances page. At the top of the page, select a resource group and a region, and then click the ID of the target instance.
-
In the navigation pane on the left, click Monitoring Data.
-
On the Instance Monitoring tab, in the upper-left corner, select Multi-node Monitoring or Per-node Monitoring.
-
In the metrics panel on the right, select the metrics to display and drag to reorder them as needed.
-
Based on the instance type, select the nodes for which you want to view monitoring data.
Multi-node monitoring
Replica set
At the top of the page, the Multi-node Monitoring and Per-node Monitoring tabs let you switch display modes. You can also use the Columns setting (default is 2) to adjust the chart layout.
Parameter
Description
Roles
Select one or more roles, such as Primary, Secondary, or Readonly, to view the aggregated monitoring data for the corresponding roles.
The chart displays the aggregated result, which is the average of the metric values for all nodes with the selected roles.
Time Range
Click the time range above the chart to change the monitoring period.
-
Data older than 30 days is not available.
-
The maximum time range for a single query is 7 days.
NoteIf you select a long time range, the request may time out due to a large volume of data. In this case, shorten the time range.
Collection granularity
Click the collection granularity in the upper-left corner of the monitoring chart to change the collection granularity of the current monitoring data.
Sharded cluster
At the top of the page, you can switch between the Multi-node Monitoring and Per-node Monitoring tabs to change the viewing mode. The filter area also includes a Columns drop-down list to set the number of columns for the charts.
Parameter
Description
Shard type
Select a component: Mongos, Shard, or ConfigServer (CS).
You can use different filter combinations to view monitoring data for specific nodes. Examples:
-
Example 1: To view monitoring data for all roles across all shards, use the following combination.
Set Shard type to Shard, Instance ID to Select All, and Roles to Select All.
-
Example 2: To view monitoring data for the Primary role in a specific shard, use the following combination.
Set Shard type to Shard, select the desired shard from the Instance ID list, and set Roles to Primary.
The chart displays the aggregated result, which is the average of the metric values for all nodes within the selected scope.
Instance ID (shard ID)
Select one or more instance IDs (shard IDs).
Roles
Select one or more roles.
Time Range
Click the time range above the chart to change the monitoring period.
NoteIf you select a long time range, the request may time out due to a large volume of data. In this case, shorten the time range.
Collection granularity
Click collection granularity in the upper-left corner of the monitoring chart to change the collection granularity of the current monitoring data.
Per-node monitoring
NoteYou can select up to five nodes at a time.
Replica set
Parameter
Description
Node
Select one or more nodes to view or compare.
The chart displays a comparison of the monitoring data for the selected nodes.
Time Range
Click the time range above the chart to change the monitoring period.
-
Data older than 30 days is not available.
-
The maximum time range for a single query is 7 days.
NoteIf you select a long time range, the request may time out due to a large volume of data. In this case, shorten the time range.
Collection granularity
Click Collection Granularity in the upper-left corner of the monitoring chart to change the collection granularity of the current monitoring data.
Sharded cluster
At the top of the page, you can switch between the Multi-node Monitoring and Per-node Monitoring viewing modes. You can also use the Columns setting to adjust the chart layout.
Parameter
Description
Shard type
Select the Mongos, Shard, or ConfigServer (CS) component.
Node
Select one or more nodes to view or compare. The chart displays a comparison of the monitoring data for the selected nodes.
Time Range
Click the time range above the chart to change the monitoring period.
NoteIf you select a long time range, the request may time out due to a large volume of data. In this case, shorten the time range.
Collection granularity
Click the collection granularity in the upper-left corner of the monitoring chart to change the collection granularity of the current monitoring data.
-
-
View the monitoring data.
-
Hover over a data point on a chart's time axis to view detailed metric information for that time.
-
You can click the
icon in the upper-left corner of a chart to view the metric's description. For more information about metrics, see Monitoring items. -
You can click the
icon in the upper-right corner of a chart to view the chart in full-screen mode.
-