Monitor ElastiCache memcached clusters with CloudWatch metrics, alarms and SNS

Michael Wittig – 23 Jan 2018 (updated 17 Aug 2021)

The caching layer is a critical component of each system that needs monitoring. Amazon ElastiCache provides Redis and memcached as a Service. Monitoring an ElastiCache memcached cluster touches multiple parts of AWS. In this post, you learn how to monitor ElastiCache memcached clusters.

CloudWatch metrics

Each cluster node sends metrics to CloudWatch that we can monitor with CloudWatch alarms. We recommend creating alarms for the following metrics:

  • CPUUtilization: The percentage of CPU utilization.
  • SwapUsage: The amount of swap used in bytes.
  • Evictions: The number of non-expired items the cache evicted to allow space for new writes.

Event notifications

Besides metrics, ElastiCache sends out event notifications if the state of the cluster has changed. E.g., because of a cache node failure.

ElastiCache does not support filtering the notifications. You get all of them or none. You likely want to filter out the important ones from the noise.

Set up instructions

Monitoring Setup Assistant
Monitor ElastiCache memcached and receive alerts in Slack or Microsoft Teams! marbot does the notifications filtering for you as well!

  1. Add marbot to Slack or Microsoft Teams.
  2. Invite marbot to a channel.
  3. In the channel, type:
    @marbot Monitor ElastiCache memcached
  4. Hit enter and follow the wizard.
Michael Wittig

Michael Wittig

Consultant focusing on Amazon Web Services (AWS). Entrepreneur building marbot.io. Author of Amazon Web Services in Action, Rapid Docker on AWS, and cloudonaut.io.

You can contact me via Email, Twitter, and LinkedIn.

Published on and updated on

marbot teaser

Chatbot for AWS Monitoring

Configure monitoring for Amazon Web Services: CloudWatch, EC2, RDS, EB, Lambda, and more. Receive and manage alerts via Slack. Solve incidents as a team.

Slack
Add to Slack
Microsoft Teams
Add to Teams