ApsaraDB for MongoDB provides an optional monitoring granularity setting feature for you to set a finer granularity for collecting routine monitoring data and correctly locating O&M problems.
- Standalone instances do not support this feature.
- The database version of ApsaraDB for MongoDB instances must be MongoDB 3.4 (upgraded to the latest minor database version) or MongoDB 4.0.
Note The monitoring granularity of every second depends on the latest minor database version of ApsaraDB for MongoDB 3.4. The latest minor database version is compatible with all earlier minor database versions.
- ApsaraDB for MongoDB instances whose database version is MongoDB 3.2 do not support the monitoring granularity of every second. You need to upgrade their database version to MongoDB 3.4 to use this feature. For more information, see Upgrade the database version.
- For ApsaraDB for MongoDB instances created after December 5, 2017 with the database version of MongoDB 3.4, you can directly set the monitoring granularity to every second. All metrics take effect immediately.
- For ApsaraDB for MongoDB instances created before December 5, 2017 with the database version of MongoDB 3.4, if they have been restarted once since December 5, 2017, they can be automatically upgraded to the latest minor database version. If they have never been restarted since December 5, 2017, you need to restart them during off-peak hours. All metrics take effect after their restart.
- Currently, ApsaraDB for MongoDB provides the monitoring granularity of every second free of charge.
|Metric||Every second||Every 300s|
|Disk Space Usage||N/A||Supported in MongoDB 3.2, MongoDB 3.4, and MongoDB 4.0.|
|Disk Space Usage|
|CPU Usage||Supported in MongoDB 3.4 (upgraded to the latest minor database version) and MongoDB 4.0.|
- Log on to the ApsaraDB for MongoDB console.
- In the upper-left corner of the home page, select the region where the target instance is located.
- In the left-side navigation pane, click Replica Set Instances or Sharding Instances based on the architecture of the target instance.
- Locate the target instance and click its instance ID.
- In the left-side navigation pane, click Monitoring Info.
- On the Monitoring Info page that appears, click Monitor Granularity Setting.
- In the Monitor Granularity Setting dialog box that appears, select a monitoring granularity.
- Click OK.