Amazon CloudWatch
CloudWatch is an AWS service which lets you monitor the performance and availability of your AWS resources. The resources include Amazon EC2 instances, Amazon DynamoDB tables, Amazon RDS DB instances, as well as custom metrics and logs generated by your own applications and services. It can also be used to monitor the billing costs.
CloudWatch can be used to collect and track metrics, collect and monitor logs, set alarms and automatically react to changes in your AWS resources.
No additional software is required for CloudWatch monitoring. However, when you launch a new EC2 instance, you have a choice of enabling detailed monitoring. Detailed monitoring has an additional charge while non-detailed monitoring is free and enabled by default. However, you can choose to enable or disable detailed monitoring at any time and only pay for what you use. This can come in handy if you want more granularity while you are troubleshooting issues with your applications running on your EC2 instances.
Monitoring data is retained for two weeks even after your instance has been terminated.
You can view the CloudWatch metrics when you highlight an instance and select the Monitoring tab. In this view, you can also create Alarms.
Another way to view the CloudWatch metrics is to go to the CloudWatch service directly using the AWS Management Console. In this section you can create a dashboard and add the metrics you want to the dashboard. You can also create Alarms.
Amazon CloudWatch Events
CloudWatch Events was recently added as a feature of CloudWatch that enables you to create rules based on events generated by your AWS resources. These rules can then route these events to AWS Lambda, Amazon Kinesis streams, Amazon SNS topics, and built-in targets. It's not available to all regions at the moment. At the start of 2016 it was available in US East (Northern Virginia), US West (Oregon), Europe (Ireland), and Asia Pacific (Tokyo) regions. Obviously more regions will be added to the list as time goes.
Amazon CloudWatch Logs
CloudWatch Logs can be used to monitor, store and access log files in your EC2 instances, AWS CloudTrail Logged Events, and custom sources. I am not sure what is meant by custom sources at the moment as the documentation didn't really go through what these custom sources are but I will assume that they are other AWS resources. You can search the stored logs for error messages or warnings or any particular pattern of text you want. This can aid in troubleshooting and more importantly can help system administrators to be more pro-active and recognize a potential problem occurring.
To use CloudWatch Logs on EC2 instances, you will need to install the CloudWatch Logs agent if you are running Linux :
http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CWL_GettingStarted.html
If you are running Windows, you will need to use the EC2Config Service and enable the CloudWatch Logs integration :
http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/send_logs_to_cwl.html#enable_cwl_integration
More information can be found here :
https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/WhatIsCloudWatch.html
https://aws.amazon.com/cloudwatch/details/#amazon-ec2-monitoring
CloudWatch is an AWS service which lets you monitor the performance and availability of your AWS resources. The resources include Amazon EC2 instances, Amazon DynamoDB tables, Amazon RDS DB instances, as well as custom metrics and logs generated by your own applications and services. It can also be used to monitor the billing costs.
CloudWatch can be used to collect and track metrics, collect and monitor logs, set alarms and automatically react to changes in your AWS resources.
No additional software is required for CloudWatch monitoring. However, when you launch a new EC2 instance, you have a choice of enabling detailed monitoring. Detailed monitoring has an additional charge while non-detailed monitoring is free and enabled by default. However, you can choose to enable or disable detailed monitoring at any time and only pay for what you use. This can come in handy if you want more granularity while you are troubleshooting issues with your applications running on your EC2 instances.
Monitoring data is retained for two weeks even after your instance has been terminated.
You can view the CloudWatch metrics when you highlight an instance and select the Monitoring tab. In this view, you can also create Alarms.
Another way to view the CloudWatch metrics is to go to the CloudWatch service directly using the AWS Management Console. In this section you can create a dashboard and add the metrics you want to the dashboard. You can also create Alarms.
Amazon CloudWatch Events
CloudWatch Events was recently added as a feature of CloudWatch that enables you to create rules based on events generated by your AWS resources. These rules can then route these events to AWS Lambda, Amazon Kinesis streams, Amazon SNS topics, and built-in targets. It's not available to all regions at the moment. At the start of 2016 it was available in US East (Northern Virginia), US West (Oregon), Europe (Ireland), and Asia Pacific (Tokyo) regions. Obviously more regions will be added to the list as time goes.
Amazon CloudWatch Logs
CloudWatch Logs can be used to monitor, store and access log files in your EC2 instances, AWS CloudTrail Logged Events, and custom sources. I am not sure what is meant by custom sources at the moment as the documentation didn't really go through what these custom sources are but I will assume that they are other AWS resources. You can search the stored logs for error messages or warnings or any particular pattern of text you want. This can aid in troubleshooting and more importantly can help system administrators to be more pro-active and recognize a potential problem occurring.
To use CloudWatch Logs on EC2 instances, you will need to install the CloudWatch Logs agent if you are running Linux :
http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CWL_GettingStarted.html
If you are running Windows, you will need to use the EC2Config Service and enable the CloudWatch Logs integration :
http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/send_logs_to_cwl.html#enable_cwl_integration
More information can be found here :
https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/WhatIsCloudWatch.html
https://aws.amazon.com/cloudwatch/details/#amazon-ec2-monitoring
Comments
Post a Comment