EC2 Instance Monitoring
Welcome to CloudAffaire and this is Debjeet
In the last blog post, we have discussed auto scaling groups.
In this blog post, we are going to discuss EC2 instance monitoring
EC2 instance monitoring
Monitoring is an important part of maintaining the reliability, availability, and performance of your EC2 instance. AWS provides multiple options to monitor your EC2 instance like health checks, cloud watch metrics etc. When you create an EC2 instance, by default AWS start monitoring your instance through health checks and collect some basic metrics for your instance free of charge. You can also enable additional monitoring with some additional charges using AWS CloudWatch service.
You can monitor your EC2 instance health using below options
System Status Checks:
Monitor the AWS systems on which your instance runs. When a system status check fails, you can choose to wait for AWS to fix the issue, or you can resolve it yourself by restarting your instance provided your instance is using EBS volume.
The following are examples of problems that can cause system status checks to fail:
- Loss of network connectivity
- Loss of system power
- Software issues on the physical host
- Hardware issues on the physical host that impact network reachability
Instance Status Checks:
Monitor the software and network configuration of your individual instance. Amazon EC2 checks the health of the instance by sending an address resolution protocol (ARP) request to the ENI. These checks detect problems that require your involvement to repair. When an instance status check fails, typically you will need to address the problem yourself by rebooting the instance or by making instance configuration changes.
The following are examples of problems that can cause instance status checks to fail:
- Failed system status checks
- Incorrect networking or startup configuration
- Exhausted memory
- Corrupted file system
- Incompatible kernel
You can also create a status check alarms to get notified and take action whenever status check fails.
You can monitor your EC2 instances using CloudWatch. CloudWatch collects and processes raw data from Amazon EC2 into readable, near real-time metrics. These statistics are recorded for a period of 15 months so that you can access historical information and gain a better perspective on how your instance is performing. By default, AWS enables free default monitoring to your EC2 instance and collect metric data with 5 minute periods. You can also enable detailed monitoring or use your own custom metric with the paid version of CloudWatch.
Service health and events:
AWS also provides updates and notifications for the region and availability zone in the form of events and service health. AWS publishes most up-to-the-minute information on service availability in the form of service health. You will get service health notification in your EC2 dashboard if there is any interruption of service in your region or availability zone. AWS also notifies scheduled planned downtime for your region in the form of events which you can view in your EC2 dashboard.
We will cover CloudWatch in details in its separate blog series.
Hope you have enjoyed this article, we are almost done with AWS EC2 service introductory series. If I have missed any part, feel free contact us. In the next blog, we will start with a new AWS service.