Table: aws_elasticache_redis_metric_get_type_cmds_hourly - Query AWS ElastiCache Redis Metrics using SQL
The AWS ElastiCache Redis Metrics service provides valuable insights into the performance of your Redis data stores. It allows you to monitor key performance metrics, including the number of 'get type' commands executed per hour. These metrics can help you optimize the performance and efficiency of your Redis data stores.
Table Usage Guide
The aws_elasticache_redis_metric_get_type_cmds_hourly
table in Steampipe provides you with information about the GET type commands executed in your selected AWS ElastiCache Redis cluster during the last hour. This table allows you, whether you're a DevOps engineer, database administrator, or other IT professional, to query and analyze the hourly GET type command metrics. This gives you insights into the performance and usage patterns of your ElastiCache Redis clusters. The schema outlines the various attributes of the ElastiCache Redis Metrics for you, including the average, maximum, minimum, sample count, and sum of GET type commands.
Your aws_elasticache_redis_metric_get_type_cmds_hourly
table provides metric statistics at 1 hour intervals for the most recent 60 days.
Examples
Basic info
Analyze the performance of your AWS ElastiCache Redis clusters over time to ensure optimal resource utilization and response times. This practical application allows you to monitor and manage your clusters effectively, leading to improved performance and cost efficiency.
select cache_cluster_id, timestamp, minimum, maximum, average, sample_countfrom aws_elasticache_redis_metric_get_type_cmds_hourlyorder by cache_cluster_id, timestamp;
select cache_cluster_id, timestamp, minimum, maximum, average, sample_countfrom aws_elasticache_redis_metric_get_type_cmds_hourlyorder by cache_cluster_id, timestamp;
gettypecmds sum 0ver 100
Explore the performance of your AWS ElastiCache Redis clusters by identifying instances where the sum of 'get type' commands exceeds 100 in an hour. This can help in understanding usage patterns and planning for capacity upgrades or optimizations.
select cache_cluster_id, timestamp, round(minimum :: numeric, 2) as min_gettypecmds, round(maximum :: numeric, 2) as max_gettypecmds, round(average :: numeric, 2) as avg_gettypecmds, round(sum :: numeric, 2) as sum_gettypecmdsfrom aws_elasticache_redis_metric_get_type_cmds_hourlywhere sum > 100order by cache_cluster_id, timestamp;
select cache_cluster_id, timestamp, round(minimum, 2) as min_gettypecmds, round(maximum, 2) as max_gettypecmds, round(average, 2) as avg_gettypecmds, round(sum, 2) as sum_gettypecmdsfrom aws_elasticache_redis_metric_get_type_cmds_hourlywhere sum > 100order by cache_cluster_id, timestamp;
Schema for aws_elasticache_redis_metric_get_type_cmds_hourly
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. | |
cache_cluster_id | text | The cache cluster id. | |
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_elasticache_redis_metric_get_type_cmds_hourly