Change the collection interval
Log on to the PolarDB console. In the left-side navigation pane, click Clusters. Select a region in the upper-left corner, then click the cluster ID to go to the Basic Information page.
In the left-side navigation pane, click Performance Monitoring.
In the Time Granularity drop-down list, select 5 Seconds or 1 Minute (default).
The display interval adjusts automatically based on the query time range. Selecting 5 Seconds does not guarantee 5-second data across all time ranges — the console scales the display interval as the range widens. You see 5-second data only when the query range is 1 hour or less.
The following table shows the actual display interval for each query time range under both granularity settings:
| Query time range | 5 Seconds | 1 Minute |
|---|---|---|
| ≤ 1 hour | 5 seconds | 1 minute |
| ≤ 1 day | 1 minute | 1 minute |
| ≤ 7 days | 10 minutes | 10 minutes |
| ≤ 30 days | 1 hour | 1 hour |
| > 30 days | 1 day | 1 day |
API reference
| Operation | Description |
|---|---|
| ModifyDBClusterMonitor | Changes the interval at which the monitoring data of a specified PolarDB cluster is collected. |