Table: alicloud_rds_instance_metric_cpu_utilization - Query Alicloud RDS Instance Metrics using SQL
Alicloud Relational Database Service (RDS) is a stable and reliable online database service that supports MySQL, SQL Server, and PostgreSQL. RDS handles routine database tasks such as patching and backup, freeing up time to focus on application development. It provides high performance and high availability with automatic failover.
Table Usage Guide
The alicloud_rds_instance_metric_cpu_utilization
table provides insights into the CPU utilization of Alicloud RDS instances. As a database administrator, you can gain detailed information about the CPU usage of your RDS instances, helping you to monitor performance and identify potential bottlenecks or over-utilization. This table is particularly useful for optimizing resource allocation and maintaining efficient database operations.
Examples
Basic info
Explore the utilization of CPU resources over time for various database instances. This information can help in optimizing resource allocation, identifying performance bottlenecks, and planning for capacity.
select db_instance_id, timestamp, minimum, maximum, averagefrom alicloud_rds_instance_metric_cpu_utilizationorder by db_instance_id, timestamp;
select db_instance_id, timestamp, minimum, maximum, averagefrom alicloud_rds_instance_metric_cpu_utilizationorder by db_instance_id, timestamp;
CPU over 80% average
Determine the areas in your Alicloud RDS instances where the average CPU utilization exceeds 80%. This can be useful for identifying potential performance issues, enabling proactive management and optimization of resources.
select db_instance_id, timestamp, round(minimum :: numeric, 2) as min_cpu, round(maximum :: numeric, 2) as max_cpu, round(average :: numeric, 2) as avg_cpufrom alicloud_rds_instance_metric_cpu_utilizationwhere average > 80order by db_instance_id, timestamp;
select db_instance_id, timestamp, round(minimum, 2) as min_cpu, round(maximum, 2) as max_cpu, round(average, 2) as avg_cpufrom alicloud_rds_instance_metric_cpu_utilizationwhere average > 80order by db_instance_id, timestamp;
Schema for alicloud_rds_instance_metric_cpu_utilization
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
account_id | text | =, !=, ~~, ~~*, !~~, !~~* | The Alicloud Account ID in which the resource is located. |
average | double precision | The average of the metric values that correspond to the data point. | |
db_instance_id | text | The ID of the single instance to query. | |
maximum | double precision | The maximum metric value for the data point. | |
metric_name | text | The name of the metric. | |
minimum | double precision | The minimum metric value for the data point. | |
namespace | text | The metric namespace. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
timestamp | timestamp with time zone | The timestamp used for the data point. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- alicloud
You can pass the configuration to the command with the --config
argument:
steampipe_export_alicloud --config '<your_config>' alicloud_rds_instance_metric_cpu_utilization