Table: aws_elasticache_redis_metric_new_connections_hourly - Query AWS ElastiCache Redis Metrics using SQL
The AWS ElastiCache Redis Metrics provides a robust monitoring solution for your applications. It allows you to collect, view, and analyze metrics for your ElastiCache Redis instances through SQL queries. The 'new_connections_hourly' metric specifically measures the number of new connections made to the Redis server per hour, aiding in capacity planning and performance tuning.
Table Usage Guide
The aws_elasticache_redis_metric_new_connections_hourly
table in Steampipe provides you with information about AWS ElastiCache Redis Metrics. This table allows you, as a DevOps engineer or system administrator, to query hourly data about new connections to your AWS ElastiCache Redis instances. You can utilize this table to monitor connection trends, analyze system performance, and identify potential issues. The schema outlines the various attributes of the metrics, including the cache node ID, timestamp, maximum number of connections, and more.
The aws_elasticache_redis_metric_new_connections_hourly
table provides you with metric statistics at 1 hour intervals for the most recent 60 days.
Examples
Basic info
Determine the areas in which AWS ElastiCache Redis clusters have experienced new connections over time. This can help in understanding usage patterns and identifying potential periods of high demand or unusual activity.
select cache_cluster_id, timestamp, minimum, maximum, averagefrom aws_elasticache_redis_metric_new_connections_hourlyorder by cache_cluster_id, timestamp;
select cache_cluster_id, timestamp, minimum, maximum, averagefrom aws_elasticache_redis_metric_new_connections_hourlyorder by cache_cluster_id, timestamp;
newconnections sum over 10
This query is useful for identifying instances where the total number of new connections to your AWS ElastiCache Redis clusters exceeds 10 within an hour. It allows you to monitor and manage your connection usage, helping to ensure optimal performance and avoid potential overloads.
select cache_cluster_id, timestamp, round(minimum :: numeric, 2) as min_newconnections, round(maximum :: numeric, 2) as max_newconnections, round(average :: numeric, 2) as avg_newconnections, round(sum :: numeric, 2) as sum_newconnectionsfrom aws_elasticache_redis_metric_new_connections_hourlywhere sum > 10order by cache_cluster_id, timestamp;
select cache_cluster_id, timestamp, round(minimum, 2) as min_newconnections, round(maximum, 2) as max_newconnections, round(average, 2) as avg_newconnections, round(sum, 2) as sum_newconnectionsfrom aws_elasticache_redis_metric_new_connections_hourlywhere sum > 10order by cache_cluster_id, timestamp;
Schema for aws_elasticache_redis_metric_new_connections_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_new_connections_hourly