Monitoring Amazon EC2
Monitoring is an important part of maintaining the reliability, availability, and performance of your Amazon Elastic Compute Cloud (Amazon EC2) instances and your AWS solutions. You should collect monitoring data from all of the parts in your AWS solutions so that you can more easily debug a multi-point failure if one occurs
Automated and Manual Monitoring
AWS provides various tools that you can use to monitor Amazon EC2. You can configure some of these tools to do the monitoring for you, while some of the tools require manual intervention.
Topics
Automated Monitoring Tools
Manual Monitoring Tools
Automated Monitoring Tools
You can use the following automated monitoring tools to watch Amazon EC2 and report back to you when something is wrong:
1. System Status Checks
Monitor the AWS systems required to use your instance to ensure they are working properly. These checks detect problems with your instance that require AWS involvement to repair. When a system status check fails, you can choose to wait for AWS to fix the issue or you can resolve it yourself (for example, by stopping and restarting or terminating and replacing an instance). Examples of problems that cause system status checks to fail include:
- Loss of network connectivity
- Loss of system power
- Software issues on the physical host
- Hardware issues on the physical host that impact network reachability
For more information, see Status Checks for Your Instances.
2. Instance Status Checks
Monitor the software and network configuration of your individual instance. 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 (for example, by rebooting the instance or by making modifications in your operating system). Examples of problems that may cause instance status checks to fail include:
- Failed system status checks
- Misconfigured networking or startup configuration
- Exhausted memory
- Corrupted file system
- Incompatible kernel
For more information, see Status Checks for Your Instances.
3. Amazon CloudWatch Alarms
Watch a single metric over a time period you specify, and perform one or more actions based on the value of the metric relative to a given threshold over a number of time periods. The action is a notification sent to an Amazon Simple Notification Service (Amazon SNS) topic or Amazon EC2 Auto Scaling policy. Alarms invoke actions for sustained state changes only. CloudWatch alarms will not invoke actions simply because they are in a particular state; the state must have changed and been maintained for a specified number of periods. For more information, see Monitoring Your Instances Using CloudWatch.
4. Amazon CloudWatch Events
Automate your AWS services and respond automatically to system events. Events from AWS services are delivered to CloudWatch Events in near real time, and you can specify automated actions to take when an event matches a rule you write. For more information, see What is Amazon CloudWatch Events?.
5. Amazon CloudWatch Logs
Monitor, store, and access your log files from Amazon EC2 instances, AWS CloudTrail, or other sources. For more information, see What is Amazon CloudWatch Logs?.
6. Amazon EC2 Monitoring Scripts
Perl scripts that can monitor memory, disk, and swap file usage in your instances. For more information, see Monitoring Memory and Disk Metrics for Amazon EC2 Linux Instances.
7. AWS Management Pack for Microsoft System Center Operations Manager -
Links Amazon EC2 instances and the Windows or Linux operating systems running inside them. The AWS Management Pack is an extension to Microsoft System Center Operations Manager. It uses a designated computer in your datacenter (called a watcher node) and the Amazon Web Services APIs to remotely discover and collect information about your AWS resources. For more information, see AWS Management Pack for Microsoft System Center.
Manual Monitoring Tools
Another important part of monitoring Amazon EC2 involves manually monitoring those items that the monitoring scripts, status checks, and CloudWatch alarms don't cover. The Amazon EC2 and CloudWatch console dashboards provide an at-a-glance view of the state of your Amazon EC2 environment.
1. Amazon EC2 Dashboard shows:
- Service Health and Scheduled Events by Region
- Instance state
- Status checks
- Alarm status
- Instance metric details (In the navigation pane choose Instances, select an instance, and choose the Monitoring tab)
- Volume metric details (In the navigation pane choose Volumes, select a volume, and choose the Monitoring tab)
2. Amazon CloudWatch Dashboard shows:
- Current alarms and status
- Graphs of alarms and resources
- Service health status
In addition, you can use CloudWatch to do the following:
- Graph Amazon EC2 monitoring data to troubleshoot issues and discover trends
- Search and browse all your AWS resource metrics
- Create and edit alarms to be notified of problems
- See at-a-glance overviews of your alarms and AWS resources
Best Practices for Monitoring
Use the following best practices for monitoring to help you with your Amazon EC2 monitoring tasks.
1. Make monitoring a priority to head off small problems before they become big ones.
2. Create and implement a monitoring plan that collects monitoring data from all of the parts in your AWS solution so that you can more easily debug a multi-point failure if one occurs. Your monitoring plan should address, at a minimum, the following questions:
- What are your goals for monitoring?
- What resources you will monitor?
- How often you will monitor these resources?
- What monitoring tools will you use?
- Who will perform the monitoring tasks?
- Who should be notified when something goes wrong?
3. Automate monitoring tasks as much as possible.
4. Check the log files on your EC2 instances.
Thanks for being here : Need help for monitoring amazon ec2 instances.
Comments
Post a Comment