Serverless metrics and events for Memcached
This section describes the metrics and events that you can monitor when working with serverless caches.
Serverless cache metrics
This section describes the metrics and events that you can monitor when working with Memcached serverless caches.
The AWS/ElastiCache
namespace includes the following CloudWatch metrics for your Memcached serverless caches.
Metric | Description | Unit |
---|---|---|
BytesUsedForCache |
The total number of bytes used by the data stored in your cache. |
Bytes |
ElastiCacheProcessingUnits |
The total number of ElastiCacheProcessingUnits (ECPUs) consumed by the requests executed on your cache |
Count |
SuccessfulReadRequestLatency |
Latency of successful read requests. |
Microseconds |
SuccessfulWriteRequestLatency |
Latency of successful write requests |
Microseconds |
TotalCmdsCount |
Total count of all commands executed on your cache |
Count |
CurrConnections |
The number of client connections to your cache. |
Count |
ThrottledCmds |
The number of requests that were throttled by ElastiCache because the workload was scaling faster than ElastiCache can scale. |
Count |
NewConnections |
The total number of connections that have been accepted by the server during this period. |
Count |
CurrItems |
The number of items in the cache. |
Count |
NetworkBytesIn |
Total bytes transferred in to cache |
Bytes |
NetworkBytesOut |
Total bytes transferred out of cache |
Bytes |
Evictions |
The count of keys evicted by the cache |
Count |
Reclaimed |
The number of keys expired by the cache |
Count |
Command level metrics
ElastiCache also emits the following Memcached command level metrics
Metric | Description | Unit |
---|---|---|
CmdGet |
The number of get commands the cache has received. |
Count |
CmdSet |
The number of set commands the cache has received. |
Count |
CmdTouch |
The number of touch commands the cache has received. |
Count |
GetHits |
The number of get requests the cache has received where the key requested was found. |
Count |
GetMisses |
The number of get requests the cache has received where the key requested was not found. |
Count |
IncrHits |
The number of increment requests the cache has received where the key requested was found. |
Count |
IncrMisses |
The number of increment requests the cache has received where the key requested was not found. |
Count |
DecrHits |
The number of decrement requests the cache has received where the requested key was found. |
Count |
DecrMisses |
The number of decrement requests the cache has received where the requested key was not found. |
Count |
DeleteHits |
The number of delete requests the cache has received where the requested key was found. |
Count |
DeleteMisses |
The number of delete requests the cache has received where the requested key was not found. |
Count |
TouchHits |
The number of keys that have been touched and were given a new expiration time. |
Count |
TouchMisses |
The number of keys that have been touched, but were not found. |
Count |
CasHits |
The number of cas requests the cache has received where the requested key was found and the cas value matched. |
Count |
CasMisses |
The number of cas requests the cache has received where the key requested was not found. |
Count |
CasBadval |
The number of cas requests the cache has received where the cas value did not match the cas value stored. |
Count |
CmdFlush |
The number of flush commands the cache has received. |
Count |
Serverless cache events
ElastiCache logs events that relate to your serverless cache. This information includes the date and time of the event,
the source name and source type of the event, and a description of the event. You can easily retrieve events from the log
using the ElastiCache console, the AWS CLI describe-events command, or the ElastiCache API action DescribeEvents
.
You can choose to monitor, ingest, transform, and act on ElastiCache events using Amazon EventBridge. Learn more in the Amazon EventBridge https://docs.aws.amazon.com/eventbridge/latest/userguide/.
Viewing ElastiCache events (Console)
To view events using the ElastiCache console:
Sign in to the AWS Management Console and open the ElastiCache console at https://console.aws.amazon.com/elasticache/
To see a list of all available events, in the navigation pane, choose Events.
On the Events screen each row of the list represents one event and displays the event source, the event type, the GMT time of the event, and a description of the event. Using the Filter you can specify whether you want to see all events, or just events of a specific type in the event list.
Viewing ElastiCache events (AWS CLI)
To generate a list of ElastiCache events using the AWS CLI, use the command describe-events. You can use optional parameters to control the type of events listed, the time frame of the events listed, the maximum number of events to list, and more.
The following code lists up to 40 serverless cache events.
aws elasticache describe-events --source-type serverless-cache --max-items 40
The following code lists all events for serverless caches for the past 24 hours (1440 minutes).
aws elasticache describe-events --source-type serverless-cache --duration 1440
Serverless Events
This section documents the different types of events that you may receive for your serverless caches.
Serverless Cache Creation Events
Detail-Type | Description | Unit | Source | Message |
---|---|---|---|---|
Cache created |
Cache arn |
creation |
serverless-cache |
Cache <cache-name> is created and ready to use. |
Cache creation failed |
Cache arn |
failure |
serverless-cache |
Failed to create cache <cache-name>. Insufficient free IP addresses to create VPC endpoint. |
Cache creation failed |
Cache arn |
failure |
serverless-cache |
Failed to create cache <cache-name>. Invalid subnets provided in the request. |
Cache creation failed |
Cache arn |
failure |
serverless-cache |
Failed to create cache <cache-name>. Quota limit reached for creating VPC endpoint. |
Cache creation failed |
Cache arn |
failure |
serverless-cache |
Failed to create cache <cache-name>. You do not have permissions to create a VPC endpoint. |
Serverless Cache Update Events (Memcached)
Detail-Type | Resources list | Category | Source | Message |
---|---|---|---|---|
Cache updated |
Cache arn |
configuration change |
serverless-cache |
SecurityGroups updated for the cache <cache-name>. |
Cache updated |
Cache arn |
configuration change |
serverless-cache |
Tags updated for the cache <cache-name>. |
Cache updated failed |
Cache arn |
configuration change |
serverless-cache |
An update to the cache <cache-name> failed. SecurityGroups update failed. |
Cache updated failed |
Cache arn |
configuration change |
serverless-cache |
An update to the cache <cache-name> failed. SecurityGroups update failed because of insufficient permissions. |
Cache updated failed |
Cache arn |
configuration change |
serverless-cache |
An update to the cache <cache-name> failed. SecurityGroups update failed because the SecurityGroups are invalid. |
Serverless Cache Deletion Events (Memcached)
Detail-Type | Resources list | Category | Source | Message |
---|---|---|---|---|
Cache deleted |
Cache arn |
deletion |
serverless-cache |
Cache <cache-name> was deleted. |
Serverless Cache Usage Limit Events (Memcached)
Detail-Type | Description | Unit | Source | Message |
---|---|---|---|---|
Cache updated |
Cache arn |
configuration change |
serverless-cache |
Limits updated for the cache <cache-name>. |
Cache updated failed |
Cache arn |
failure |
serverless-cache |
A limit update to the cache <cache-name> failed because the cache was deleted. |
Cache updated failed |
Cache arn |
failure |
serverless-cache |
A limit update to the cache <cache-name> failed due to invalid configuration. |
Serverless Cache Snapshot Events (Memcached)
Detail-Type | Resources-list | Category | Source | Message |
---|---|---|---|---|
Snapshot created |
Cache arn Snapshot arn |
creation |
serverless-cache-snapshot |
Snapshot <snapshot-name> created for cache <cache-name>. |
Snapshot creation failed |
Cache arn Snapshot arn |
failure |
serverless-cache-snapshot |
Failed to create snapshot for cache <cache-name>. Snapshot <snapshot-name> creation failed with Customer Managed Key <key-id> <reason>. Failure reason messages:
|
Snapshot creation failed |
Cache arn Snapshot arn |
failure |
serverless-cache-snapshot |
Failed to create snapshot for cache <cache-name>. Snapshot <snapshot-name> creation failed because <reason>. Default reason:
|
Snapshot export failed |
Snapshot arn |
failure |
serverless-cache-snapshot |
Failed to export snapshot for cache <cache-name>. Could not export snapshot to bucket %s because ElastiCache does not have permissions to the bucket. |
Snapshot export failed |
Snapshot arn |
failure |
serverless-cache-snapshot |
Failed to export snapshot for cache <cache-name>. Could not export snapshot to bucket '%s' because there is already an object with the same name in the bucket. |
Snapshot export failed |
Snapshot arn |
failure |
serverless-cache-snapshot |
Failed to export snapshot for cache <cache-name>. Could not export snapshot to bucket '%s' because bucket owner account Id has changed. |
Snapshot export failed |
Snapshot arn |
failure |
serverless-cache-snapshot |
Failed to export snapshot for cache <cache-name>. Could not export snapshot to bucket '%s' because the S3 bucket is not accessible. |
Snapshot export failed |
Snapshot arn |
failure |
serverless-cache-snapshot |
Failed to export snapshot for cache <cache-name>. Could not export snapshot to bucket '%s' because the bucket is not accessible. |
Snapshot export failed |
Snapshot arn |
failure |
serverless-cache-snapshot |
Failed to export snapshot for cache <cache-name>. Could not export snapshot to bucket '%s' because bucket does not exist. |
Snapshot export failed |
Snapshot arn |
failure |
serverless-cache-snapshot |
Failed to export snapshot for cache <cache-name>. Could not export snapshot to bucket '%s' with source snapshot Customer Managed Key %s <reason>. |
Snapshot export failed |
Snapshot arn |
failure |
serverless-cache-snapshot |
Failed to export snapshot for cache <cache-name>. Could not export snapshot to bucket '%s'. |
Snapshot copy failed |
Snapshot arn-1 Snapshot arn-2 |
failure |
serverless-cache-snapshot |
Failed to copy snapshot <snapshot-name>. Could not copy snapshot '%s' to snapshot '%s' with source snapshot Customer Managed Key <key-id> <reason-name>. |
Snapshot copy failed |
Snapshot arn-1 Snapshot arn-2 |
failure |
serverless-cache-snapshot |
Failed to copy snapshot <snapshot-name>. Could not copy snapshot '%s' to snapshot '%s' with target snapshot Customer Managed Key '%s' '%s'. |