Queries the performance monitoring data of an AnalyticDB for PostgreSQL instance within a specified time period.
Operation description
You can query monitoring information only for the last 30 days.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gpdb:DescribeDBClusterPerformance |
get |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. Note
You can call the DescribeDBInstances operation to query the details of all AnalyticDB for PostgreSQL instances in a specified region, including the instance IDs. |
gp-bp12ga6v69h86**** |
| Key |
string |
Yes |
The names of the performance metrics. Separate multiple metrics with commas (,). For more information, see Performance metric table. |
adbpg_conn_count |
| StartTime |
string |
Yes |
The start time of the query. Specify the time in the Note
You can query monitoring information only for the last 30 days. |
2021-11-03T15:00Z |
| EndTime |
string |
Yes |
The end time of the query. Specify the time in the Note
The end time must be later than the start time, and the time interval between the start time and the end time cannot exceed 7 days. |
2021-11-03T15:10Z |
| Nodes |
string |
No |
The names of the nodes for which you want to query monitoring metrics. Separate multiple node names with commas (,), such as You can also filter nodes based on the values of monitoring metrics. Valid values:
|
top10 |
| NodeType |
string |
No |
The node type. Valid values:
Note
If you do not specify this parameter, the monitoring metrics of all nodes are returned. |
master |
| ResourceGroupName |
string |
No |
The name of the resource group. |
testgroup |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PerformanceKeys |
array<object> |
The list of performance metric values for the instance. |
|
|
array<object> |
|||
| Unit |
string |
The unit of the monitoring metrics. |
% |
| Series |
array<object> |
The collection of performance metrics. |
|
|
array<object> |
|||
| Values |
array<object> |
The performance metric values. Each value corresponds to a collection time point. |
|
|
object |
|||
| Point |
array |
The performance metric value. |
|
|
string |
The detailed performance monitoring information, which consists of the time and the performance metric value. |
["2021-11-03T15:00:00+08:00","5.84"] |
|
| Role |
string |
The role of the node. Valid values:
|
standby |
| Name |
string |
The name of the compute node or compute group. |
standby-********-cpu |
| Name |
string |
The name of the performance metric. For more information, see Performance metric table. |
adbpg_group_cpu_used_percent |
| EndTime |
string |
The end time of the query in UTC. Specify the time in the |
2021-11-03T15:10Z |
| RequestId |
string |
The request ID. |
8E8990F0-C81E-4C94-8F51-5F********** |
| StartTime |
string |
The start time of the query in UTC. Specify the time in the |
2021-11-03T15:00Z |
| DBClusterId |
string |
The instance ID. |
gp-bp12ga6v69h86**** |
Examples
Success response
JSON format
{
"PerformanceKeys": [
{
"Unit": "%",
"Series": [
{
"Values": [
{
"Point": [
"[\"2021-11-03T15:00:00+08:00\",\"5.84\"]"
]
}
],
"Role": "standby",
"Name": "standby-********-cpu"
}
],
"Name": "adbpg_group_cpu_used_percent"
}
],
"EndTime": "2021-11-03T15:10Z",
"RequestId": "8E8990F0-C81E-4C94-8F51-5F**********",
"StartTime": "2021-11-03T15:00Z",
"DBClusterId": "gp-bp12ga6v69h86****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.