This topic describes how to change the interval at which monitoring data is collected.

Procedure

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region where the cluster that you want to manage is deployed.
  3. Find the cluster that you want to manage and click the cluster ID.
  4. In the left-side navigation pane, choose Diagnostics and Optimization > Monitoring.
  5. Click Change Data Collection Interval.
    Change the interval at which monitoring data is collected - 1
  6. In the Change Data Collection Interval dialog box, set Data Collection Interval to 5s or use the default value 60s based on your business requirements.
    Change the interval at which monitoring data is collected
    • When Data Collection Interval is set to 5s, the interval at which monitoring data is displayed is determined based on the following rules:
      • If the time range within which data is queried is less than or equal to 1 hour, the monitoring data is displayed at an interval of 5s.
      • If the time range within which data is queried is less than or equal to one day, the monitoring data is displayed at an interval of 1 minute.
      • If the time range within which data is queried is less than or equal to seven days, the monitoring data is displayed at an interval of 10 minutes.
      • If the time range within which data is queried is less than or equal to 30 days, the monitoring data is displayed at an interval of 1 hour.
      • If the time range within which data is queried is more than 30 days, the monitoring data is displayed at an interval of one day.
    • When Data Collection Interval is set to 60s, the interval at which monitoring data is displayed is determined based on the following rules:
      • If the time range within which data is queried is less than or equal to one day, the monitoring data is displayed at an interval of 1 minute.
      • If the time range within which data is queried is less than or equal to seven days, the monitoring data is displayed at an interval of 10 minutes.
      • If the time range within which data is queried is less than or equal to 30 days, the monitoring data is displayed at an interval of 1 hour.
      • If the time range within which data is queried is more than 30 days, the monitoring data is displayed at an interval of one day.
  7. Click OK.

Related API operations

Operation Description
ModifyDBClusterMonitor Changes the interval at which the monitoring data of a specified PolarDB cluster is collected.