Use Real-time Monitoring to continuously monitor an instance's performance, for example, to diagnose and optimize the database. This feature provides real-time performance metrics and trends to help you quickly identify and resolve performance issues.
Prerequisites
The target database instance must be connected to DAS and have an Normal Access of Normal Access.
Limitations
To use this feature for an ApsaraDB for MongoDB standalone instance, you must grant the required permissions to a database account.
-
Create an account in ApsaraDB for MongoDB and grant the necessary permissions.
-
Connect to the ApsaraDB for MongoDB instance. For more information, see Connect to an ApsaraDB for MongoDB instance.
-
Run the following command to switch to the admin database, create an account, and grant permissions.
use admin;
db.createUser({user:'das_test',pwd:'password',roles:[{role:'readAnyDatabase', db:'admin'}, {role:'clusterMonitor', db:'admin'}, {role: 'hostManager', db: 'admin'},{db: 'local', role: 'dbAdmin'},{db: 'config', role: 'dbAdmin'},{db: 'admin', role: 'dbAdminAnyDatabase'}]});
Note
The username das_test and password are examples. Replace them with your actual username and password.
-
Authorize the account in DAS.
Log on to the DAS console.
In the navigation pane on the left, click .
-
Find the target instance and in the Actions column, click Authorize Account.
-
In the Authorization dialog box, enter the Database Account and Password, and then click Authorize.
-
When the Connection Status changes to Normal Connection, click OK.
Procedure
Log on to the DAS console.
In the navigation pane on the left, click .
Find the target instance and click the instance ID to open the instance details page.
-
In the left-side navigation pane, click Real-time Monitoring.
-
On the Real-time Monitoring page, you can select one of the following views: