Skip to content

ElastiCache Metrics Reference ​

DB Optimizer collects the following CloudWatch metrics for every registered ElastiCache cluster (Redis and Valkey), at a 60-second period aligned to minute boundaries.

Collected metrics ​

MetricStatisticUnitDescription
EngineCPUUtilizationAveragePercentCPU used by the Redis/Valkey engine thread
DatabaseMemoryUsagePercentageAveragePercentMemory used vs. maxmemory
CacheHitsSumCountSuccessful key lookups (keyspace_hits)
CacheMissesSumCountFailed key lookups (keyspace_misses)
EvictionsSumCountKeys removed due to maxmemory policy
CurrConnectionsMaximumCountCurrent client connections
NetworkBytesInSumBytesBytes received
NetworkBytesOutSumBytesBytes sent
ReplicationLagMaximumSecondsReplica delay behind primary
BytesUsedForCacheMaximumBytesAbsolute memory used for cached data

That table is the whole set

Ten metrics, one statistic each. Nothing else is requested — no Reclaimed, SwapUsage, CurrItems, GetTypeCmds or SetTypeCmds, no serverless metrics such as ElastiCacheProcessingUnits, and no derived CacheHitRatio. CacheHits and CacheMisses are stored as collected, so any hit ratio is computed by whoever reads them.

Dimensions ​

CacheClusterId only.

Replication group metadata ​

For clusters in a replication group, each metric row carries:

  • Replication group ID
  • Node role: primary or replica
  • Shard ID (always recorded; empty string for single-shard groups)

Data retention ​

ElastiCache metrics are retained for 15 days. There is no longer-term rollup for them.

Redis vs. Valkey ​

Redis and Valkey clusters use the same metric set — the engine value reported by the ElastiCache API is recorded on the instance record as either redis or valkey, but the metrics collected are identical.

Every figure in KubeSpend traces to a real cloud price. Where we cannot measure something, we say so.