大网数据广告活动
服务器运维问答

Is it possible to have a Cloudwatch alarm of the 'free memory' of a ElastiCache Redis cluster?

· 52CE 我爱测

I'm looking to set up a cloudwatch alarm on a Redis cluster in ElastiCache rather than each individual node. Is this possible in cloudwatch? so far I've only found ways to set alarms on each individual node, however that isn't ve…

问题原文

原帖链接 · Matthew Bidewell · CC BY-SA 4.0

I'm looking to set up a cloudwatch alarm on a Redis cluster in ElastiCache rather than each individual node.

Is this possible in cloudwatch? so far I've only found ways to set alarms on each individual node, however that isn't very scalable if in the event we add/remove nodes.

TIA

已采纳解答

原帖链接 · M. Glatki · CC BY-SA 4.0

The straight-forward solution, i.e. a CloudWatch metric FreeableMemory aggregated over a single Redis cluster does not exist. It follows, that there is no simple CloudWatch alarm you can establish to do that.

However, there are some workarounds:

  • You can create a lambda function, that retrieves the FreeableMemorymetric for all nodes, and pushes a new aggregated metric. This is actually very doable and reliable. You could possibly use CloudWatch math expressions for that, too.
  • You can use the metric Aggregated across Clusters > FreeableMemory which does seem to aggregate over all existing clusters - however, this will cease working as soon as you start a second ElastiCache cluster.
  • Sadly, you can not use CloudWatch math expressions in CloudWatch alarms. However, as far as I know it is a feature currently in development. In any case, it would probably help to contact AWS Support to add your voice to the feature request.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-07-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。