株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

準備

EC2からメモリを送る設定を入れておく

awscliで実行

カスタムメトリクスなので、--namespace System/Linuxになります。注意

aws cloudwatch put-metric-alarm --alarm-name "MemoryUtilization80%" 
--namespace System / Linux \
--metric-name MemoryUtilization --dimensions "Name = InstanceId、Value 
= i-0219028c30d71bee2"-期間30​​0 \
--statistic Average --threshold 80 --comparison-operator 
GreaterThanOrEqualToThreshold¥
--evaluation-periods 1 --alarm-actions arn:aws:sns:ap-northeast-1:
697333814928:Default_CloudWatch_Alarms_Topic \
--ok-actions arn:aws:sns:ap-northeast-1:697333814928:Default_
CloudWatch_Alarms_Topic 

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)