Table: aws_rds_db_instance_metric_cpu_utilization_daily - Query AWS RDS DB Instances using SQL
The AWS RDS DB Instance is a part of Amazon Relational Database Service (RDS), a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizable capacity for an industry-standard relational database and manages common database administration tasks. The 'cpu_utilization_daily' metric provides the percentage of CPU utilization for an Amazon RDS instance, averaged over a 24-hour period.
Table Usage Guide
The aws_rds_db_instance_metric_cpu_utilization_daily
table in Steampipe provides you with information about the daily CPU utilization metrics of AWS RDS DB Instances. This table allows you, as a DevOps engineer, database administrator, or other technical professional, to query CPU-specific details, including maximum and average CPU utilization, and timestamps. You can utilize this table to monitor and analyze the CPU usage patterns of RDS DB Instances over time. The schema outlines the various attributes of the CPU utilization metrics for you, including the DB instance identifier, timestamp, maximum utilization, and average utilization.
The aws_rds_db_instance_metric_cpu_utilization_daily
table provides you with metric statistics at 24 hour intervals for the last year.
Examples
Basic info
Analyze the daily CPU utilization of your AWS RDS database instances to understand their performance trends and identify any instances that may be under or over-utilized. This will assist in optimizing resource allocation and potentially reducing costs.
select db_instance_identifier, timestamp, minimum, maximum, average, sample_countfrom aws_rds_db_instance_metric_cpu_utilization_dailyorder by db_instance_identifier, timestamp;
select db_instance_identifier, timestamp, minimum, maximum, average, sample_countfrom aws_rds_db_instance_metric_cpu_utilization_dailyorder by db_instance_identifier, timestamp;
CPU Over 80% average
Explore which AWS RDS database instances have an average CPU utilization exceeding 80%, allowing you to proactively manage and optimize your resources for better performance and cost efficiency.
select db_instance_identifier, timestamp, round(minimum :: numeric, 2) as min_cpu, round(maximum :: numeric, 2) as max_cpu, round(average :: numeric, 2) as avg_cpu, sample_countfrom aws_rds_db_instance_metric_cpu_utilization_dailywhere average > 80order by db_instance_identifier, timestamp;
select db_instance_identifier, timestamp, round(minimum, 2) as min_cpu, round(maximum, 2) as max_cpu, round(average, 2) as avg_cpu, sample_countfrom aws_rds_db_instance_metric_cpu_utilization_dailywhere average > 80order by db_instance_identifier, timestamp;
CPU daily average < 2%
Explore which database instances have a daily average CPU utilization less than 2%. This can help in identifying underutilized resources and potentially save costs.
select db_instance_identifier, timestamp, round(minimum :: numeric, 2) as min_cpu, round(maximum :: numeric, 2) as max_cpu, round(average :: numeric, 2) as avg_cpu, sample_countfrom aws_rds_db_instance_metric_cpu_utilization_dailywhere average < 2order by db_instance_identifier, timestamp;
select db_instance_identifier, timestamp, round(minimum, 2) as min_cpu, round(maximum, 2) as max_cpu, round(average, 2) as avg_cpu, sample_countfrom aws_rds_db_instance_metric_cpu_utilization_dailywhere average < 2order by db_instance_identifier, timestamp;
Schema for aws_rds_db_instance_metric_cpu_utilization_daily
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
account_id | text | =, !=, ~~, ~~*, !~~, !~~* | The AWS 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_identifier | text | The friendly name to identify the DB Instance. | |
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. | |
partition | text | The AWS partition in which the resource is located (aws, aws-cn, or aws-us-gov). | |
region | text | The AWS Region in which the resource is located. | |
sample_count | double precision | The number of metric values that contributed to the aggregate value of this data point. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
sum | double precision | The sum of the metric values for the data point. | |
timestamp | timestamp with time zone | The time stamp used for the data point. | |
unit | text | The standard unit 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)" -- aws
You can pass the configuration to the command with the --config
argument:
steampipe_export_aws --config '<your_config>' aws_rds_db_instance_metric_cpu_utilization_daily