问题原文
原帖链接 · 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 > FreeableMemorywhich 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
