Real-time performance monitoring

Updated at: 2024-07-09 08:18

Database Autonomy Service (DAS) provides the real-time performance monitoring feature that allows you to view the performance metrics and trends of your database instance in real time. This way, you can perform real-time diagnostics and optimization on the database instance, and identify and handle performance issues at the earliest opportunity.

Prerequisites

The database instance that you want to monitor is connected to DAS and is in the Normal Access state.

Limits

To monitor the performance of an ApsaraDB for MongoDB standalone instance, you must grant the required permissions to the database account of the instance. To do so, perform the following steps:

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

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

    2. Run the following commands to create an account for the admin database and grant permissions to the account:

      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

      In this example, the username das_test and the password password are used. Replace the username and password based on your business requirements.

  2. Authorize the account in DAS.

    1. Log on to the DAS console.

    2. In the left-side navigation pane, click Instance Monitoring.

    3. On the Instance Monitoring page, find the database instance that you want to monitor and choose Actions > Authorization in the Actions column.

      image

    4. In the Authorization dialog box, configure the Database Account and Password parameters and click Authorize.

    5. After the Access Status column displays Connected, click OK.

Procedure

  1. Log on to the DAS console.

  2. In the left-side navigation pane, click Instance Monitoring.

  3. On the page that appears, find the database instance that you want to manage and click the instance ID. The instance details page appears.

  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 view modes:

    • On the Real-time Charts tab, you can view the metric trends of the instance in real time.

    • On the Mongostat tab, you can view the performance metrics of the instance at specific points in time.

  • On this page (1, O)
  • Prerequisites
  • Limits
  • Procedure
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare