Practical

  1. Detailed CloudWatch

  • We can enable detailed CloudWatch either while creating an instance or clicking on action -> CloudWatch -> enable detailed monitoring

2 .Create an alarm

  • Cloudwatch -> create an alarm -> ec2 metrics -> per-

    instance metrics -> select an alarm (cpuutilization) ->

    name (highloadavg) -> description (high load avg) ->

    whenever (cpu utilization is more than 80%) -> actions ->

    whenever this alarm (state is ALARM) -> send

    notification to (loadavg) -> +EC2 option (optional option) -

    > take this action (stop this instance) -> period (if we

    want to change).

    or

  • select the instance -> action -> cloudwatch -> edit/add

    alarm -> create a alarm -> shut down the instance

    when reaching cpuutilization 60% -> save.

Last updated