Tech Junkie Blog - Real World Tutorials, Happy Coding!: Iaas With AWS: Create A CloudWatch Alarm on Linux Instance

Wednesday, August 4, 2021

Iaas With AWS: Create A CloudWatch Alarm on Linux Instance

 CloudWatch is a service on AWS that is used to monitor services on AWS via metrics.  In addition to monitoring resources.  CloudWatch can be used to set alarms and perform some actions on the instance when a certain condition is met.  In this post we are going to set an alarm on our instance if CPU utilization gets to a certain threshold.  Which is a typical safeguard that most environments have, there are several actions that you can take when the threshold is met, in our case we are going to terminate the instance if the CPU utilization reaches 75%. 

The following shows you how to set a CloudWatch alarm on our Linux instance:

1. Click on "Monitoring" tab in the "Instances" page, then click on the "Create Alarm" button

2.  On the "Create Alarm" pop-up you want to check the "Take the action" checkbox and select the "Terminate this instance" radio button.  Leave the everything on default and type 75 on the percentage field.  Then click "Create Alarm".
3. A confirmation pop-up is presented, click "Close"
4. Now you see your alarm on the "Monitoring" tab and the instance will be terminated when the threshold in the alarm is reached

8 comments:

  1. DPT 3 Filing is a return structure to be recorded by relationship, to serve their surprising credits that are not considered as stores. It is required for all relationship to report structure DPT 3, close to government relationship, for inevitable credits or receipts. This structure is recorded by Rule 16 of the Companies Rules, 2014.

    ReplyDelete
  2. Your blog is very informative and interesting to read, finally, I found exactly what I search for. There are lots of users of Macfee antivirus in the world because of its features and easy interface. If you want to explore more interesting facts about Mcafee antivirus or want to resolve your technical issues then must visit Mcafee ondersteuning nummer.

    ReplyDelete
  3. Thank you for sharing such a useful information. It will really help me.

    Pharmacy Social Media Marketing

    ReplyDelete
  4. Created a new website for your business and looking for a good web host to put it on the World Wide Web? Are you planning to switch from one web hosting company to another? Then, this article is for you. Here, we will discuss some common mistakes that people often make and that you should avoid while choosing a web hosting company. https://onohosting.com/

    ReplyDelete
  5. Web hosting can seem somewhat complicated and difficult to understand. Learn about some of the basic options available so you can find the right host for your website. https://hostinglelo.in/

    ReplyDelete

Search This Blog