First Weapon of John: CloudWatch
- Cloudwatch will help john to monitor AWS resources & applications
- Cloudwatch is a metrics repository & AWS Services can add/send metrics into the repository or you can send custom metrics into repository
- Now we can retrieve statistics based on metrics. Using statistics we can create notifications for failures, warnings etc
Terms in Cloudwatch
- Metrics: Metric represents a time-ordered set of data points that are published to Cloudwatch.
- Timestamp: Each metric will be associated with a timestamp
- Namespace: Namespace is container for Cloudwatch metrics. You should specify the namespace for data point which you publish. AWS namespaces use the following naming conventions
AWS/service
Eg.AWS/EC2
- Statistics: Data aggregations supported over specific periods of time. Lets look at the possible statistics
- Minimum: lowest value observed during specific period
- Maximum
- Sum
- Average
- Sample Count: The number of data points used in this statistic
- pNN.NN: The percentile
- Alarm: We use alarms to automatically initiate actions (restart the machine, send an email/sms, call some code etc..).
- Every Metric is one of
- Standard Resolution: Metric data with granularity of one-minute
- High Resolution: Metric data with granularity of one-second
Lets see the available Metrics
- Login into AWS Console & Navigate to CloudWatch
- Select the Metrics and Have a look at the Sections
Quick Exercise
- Create an ec2 instance and Navigate to the monitoring section
- Select any graph and view in metrics
Pricing of Amazon CloudWatch
- Refer Here for official pricing