AWS Certification: Cloudwatch Essentials, Concepts and References

116 views August 18, 2016 scriptcrunch 0

Cloudwatch is a monitoring service from AWS.  By default, cloud watch is enabled for your ec2 instances which monitor your instances every five minutes. You can also enable detailed monitoring (Costs extra money ) which monitors your instances every one minute.

cloudwatch essentials

Cloudwatch Metrics:

Cloudwatch let you monitor your instances using metrics. Following are the few metrics available. It is not limited to those, you can get metrics of other services as well.

  1. EBS Metrics
  2. EC2 Metrics
  3. S3 Metrics

Following are the metrics available for ec2.

  1. CPU Utilization/Credits
  2. Network In/Out
  3. Disk read/write
  4. Status Checks

Following are the metrics available for S3

  1. No of objects
  2. Bucket size

EBS has many metrics like read, write, queue length etc.

Using these metrics you can create monitoring dashboards with widgets displaying graphs and text data.

Cloudwatch Events

This is basically an event notifier for your AWS resources. You can set event notifiers like when an ec2 instance is in running state notify the lambda function to notify DNS entries.

Cloudwatch Logs

This option lets you aggregate system logs or application logs on cloudwatch and process it. To do this you need to install an agent on your ec2 instance and set a role to write permissions to cloudwatch logs.

Cloudwatch Alarms

You can set specific alarms based on available cloudwatch metrics. Once such example is an alarm to notify CPU utilization. You can set up an alarm with an SNS topic to receive alerts on your email address.

Based on alarm you can also set autoscaling actions (scaling up or down)  or an ec2 instance action (stop, reboot or terminate)

Key Points

  1. Default standard monitoring is 5 minutes and detailed monitoring is 1 minute.
  2. Alarms are for threshold notifications.
  3. Event for AWS resource even event notification
  4. Custom log analysis using cloudwatch logs.




Was this helpful?