Real-time performance

更新时间:
复制 MD 格式

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.

  1. Create an account in ApsaraDB for MongoDB and grant the necessary permissions.

    1. Connect to the ApsaraDB for MongoDB instance. For more information, see Connect to an ApsaraDB for MongoDB instance.

    2. 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.

  2. Authorize the account in DAS.

    1. Log on to the DAS console.

    2. In the navigation pane on the left, click Intelligent O&M Center > Instance Monitoring .

    3. Find the target instance and in the Actions column, click Authorize Account.

    4. In the Authorization dialog box, enter the Database Account and Password, and then click Authorize.

    5. When the Connection Status changes to Normal Connection, click OK.

Procedure

  1. Log on to the DAS console.

  2. In the navigation pane on the left, click Intelligent O&M Center > Instance Monitoring .

  3. Find the target instance and click the instance ID to open the instance details page.

  4. In the left-side navigation pane, click Real-time Monitoring.

  5. On the Real-time Monitoring page, you can select one of the following views:

    • Real-time Charts tab: View real-time metric trends.

    • Mongostat tab: View performance metrics across different time ranges.