Queries the performance monitoring data of an AnalyticDB for PostgreSQL instance within a specified time range.
Operation description
Monitoring information can be queried 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 IDs of all AnalyticDB for PostgreSQL instances in a region. |
gp-bp12ga6v69h86**** |
| Key |
string |
Yes |
The performance metric to query. Separate multiple values with commas (,). For more information, see Performance parameters. |
adbpg_conn_count |
| StartTime |
string |
Yes |
The beginning of the time range to query. Specify the time in the ISO 8601 standard in the Note
Only monitoring data within the last 30 days can be queried. |
2021-11-03T15:00Z |
| EndTime |
string |
Yes |
The end of the time range to query. Specify the time in the ISO 8601 standard in the Note
The end time must be later than the start time. The maximum query time range is seven days. |
2021-11-03T15:10Z |
| Nodes |
string |
No |
The nodes to query for performance metrics. Separate multiple values with commas (,). Example: You can also filter nodes by metric value. Valid values:
|
top10 |
| NodeType |
string |
No |
The node type. Valid values:
Note
If you do not specify this parameter, performance 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 name of the performance metric. For more information, see Performance parameters. |
|
|
array<object> |
The value of the performance metric and the time when the metric value was collected. |
||
| Unit |
string |
The unit of the performance metric. |
% |
| Series |
array<object> |
The performance metric details of a node. |
|
|
array<object> |
|||
| Values |
array<object> |
The value of the performance metric collected at a point in time. |
|
|
object |
|||
| Point |
array |
The value of the performance metric and the time when the metric value was collected. |
|
|
string |
Performance monitoring data, consisting of a timestamp and a 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 parameters. |
adbpg_group_cpu_used_percent |
| EndTime |
string |
The end time of the query. The time is in the ISO 8601 standard in the |
2021-11-03T15:10Z |
| RequestId |
string |
The request ID. |
8E8990F0-C81E-4C94-8F51-5F********** |
| StartTime |
string |
The start time of the query. The time is in the ISO 8601 standard 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.