steampipe plugin install aws

Table: aws_elasticache_redis_metric_curr_connections_hourly - Query AWS ElastiCache Redis using SQL

The AWS ElastiCache Redis service provides a fully managed in-memory data store, compatible with Redis or Memcached. It improves the performance of web applications by retrieving data from fast, managed, in-memory data stores, instead of relying on slower disk-based databases. ElastiCache Redis supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams.

Table Usage Guide

The aws_elasticache_redis_metric_curr_connections_hourly table in Steampipe provides you with information about the hourly current connections metrics of ElastiCache Redis within AWS. This table allows you, as a DevOps engineer, database administrator, or other technical professional, to query the current number of client connections, excluding connections from read replicas, to a Redis instance. You can utilize this table to monitor usage patterns, detect possible connection leaks, and optimize resource allocation based on connection demands. The schema outlines the various attributes of the ElastiCache Redis current connections metrics for you, including the timestamp, average, maximum, minimum, and sample count.

The aws_elasticache_redis_metric_curr_connections_hourly table provides you with metric statistics at 1 hour intervals for the most recent 60 days.

Examples

Basic info

Explore which AWS ElastiCache Redis clusters have the most connections over time. This information can help you understand the load on your clusters and identify any unusual spikes in connections that could indicate a problem.

select
cache_cluster_id,
timestamp,
minimum,
maximum,
average,
sum,
sample_count
from
aws_elasticache_redis_metric_curr_connections_hourly
order by
cache_cluster_id,
timestamp;
select
cache_cluster_id,
timestamp,
minimum,
maximum,
average,
sum,
sample_count
from
aws_elasticache_redis_metric_curr_connections_hourly
order by
cache_cluster_id,
timestamp;

currconnections Over 100 average

Explore the performance of your AWS ElastiCache Redis clusters by identifying instances where the average number of connections exceeds 100 in an hour. This can help in understanding the load on your clusters and take necessary actions if they are consistently over-utilized.

select
cache_cluster_id,
timestamp,
round(minimum :: numeric, 2) as min_currconnections,
round(maximum :: numeric, 2) as max_currconnections,
round(average :: numeric, 2) as avg_currconnections,
sample_count
from
aws_elasticache_redis_metric_curr_connections_hourly
where
average > 100
order by
cache_cluster_id,
timestamp;
select
cache_cluster_id,
timestamp,
round(minimum, 2) as min_currconnections,
round(maximum, 2) as max_currconnections,
round(average, 2) as avg_currconnections,
sample_count
from
aws_elasticache_redis_metric_curr_connections_hourly
where
average > 100
order by
cache_cluster_id,
timestamp;

Schema for aws_elasticache_redis_metric_curr_connections_hourly

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
account_idtext=, !=, ~~, ~~*, !~~, !~~*The AWS Account ID in which the resource is located.
averagedouble precisionThe average of the metric values that correspond to the data point.
cache_cluster_idtextThe cache cluster id.
maximumdouble precisionThe maximum metric value for the data point.
metric_nametextThe name of the metric.
minimumdouble precisionThe minimum metric value for the data point.
namespacetextThe metric namespace.
partitiontextThe AWS partition in which the resource is located (aws, aws-cn, or aws-us-gov).
regiontextThe AWS Region in which the resource is located.
sample_countdouble precisionThe number of metric values that contributed to the aggregate value of this data point.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
sumdouble precisionThe sum of the metric values for the data point.
timestamptimestamp with time zoneThe time stamp used for the data point.
unittextThe 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_curr_connections_hourly