为AWS ElastiCache添加CPU和内存利用率告警

CPUUtilization

4个vCPU以上的实例就需要使用------EngineCPUUtilization指标,如果是4个vCPU以下的使用------CPUUtilization指标。

bash 复制代码
aws cloudwatch put-metric-alarm \
  --alarm-name elasticache-high-cpu \
  --alarm-description "ElastiCache CPU above 80%" \
  --metric-name CPUUtilization \
  --namespace AWS/ElastiCache \
  --statistic Average \
  --period 300 \
  --threshold 80 \
  --comparison-operator GreaterThanThreshold \
  --dimensions Name=CacheClusterId,Value=my-redis-001 \
  --evaluation-periods 3  \
  --alarm-actions arn:aws:sns:us-east-1:123456789012:cache-alerts

DatabaseMemoryUsagePercentage

bash 复制代码
# Alarm: High Memory Usage
aws cloudwatch put-metric-alarm \
  --alarm-name elasticache-high-memory \
  --alarm-description "ElastiCache memory above 80%" \
  --metric-name DatabaseMemoryUsagePercentage \
  --namespace AWS/ElastiCache \
  --statistic Maximum \
  --period 300 \
  --threshold 80 \
  --comparison-operator GreaterThanThreshold \
  --dimensions Name=CacheClusterId,Value=my-redis-001 \
  --evaluation-periods 2 \
  --alarm-actions arn:aws:sns:us-east-1:123456789012:cache-alerts

参考

相关推荐
SaaS_Product3 小时前
企业网盘哪个好?企业网盘选型需求分析
大数据·云计算·saas·onedrive
独自破碎E4 小时前
告别腾讯云 COS,用 GitHub + jsDelivr 搭建零成本图床
云计算·github·腾讯云
TG_yunshuguoji4 小时前
阿里云代理商:怎么创建和连接RDS云数据库?
数据库·阿里云·云计算
gaize12134 小时前
阿里云通用算力 u1|均衡性能省心之选
阿里云·云计算
weixin_457341894 小时前
2026年阿里云ECS服务器全攻略:从基础认知和价格体系到购买以及部署流程
服务器·阿里云·云计算
沐欣工作室_lvyiyi5 小时前
基于腾讯云的智能家居监控系统的设计开发(论文+源码)
单片机·云计算·毕业设计·智能家居·腾讯云
systemlover16 小时前
ai编码实现bookstack外挂阿里云oss实现图片附件托管到阿里云oss
阿里云·云计算
亚马逊云开发者1 天前
血的教训!OpenClaw 从月烧 200 刀到 30 刀,我都踩了哪些坑?
aws