Cloud Watch Flashcards
What is Cloud Watch?
Alarms and checks to ensure that we catch warning signs before they become bigger problems
Cloud Watch System Metrics
the more managed the service is [i.e. RDS], the more data you get
Cloud Watch Application Metrics
you install the CloudWatch agent on the EC2 instance
Cloud Watch Alarms
tell you when something goes wrong
Restrictions on Default Cloud Watch metrics
- can be checked every minute
Restrictions on Custom Cloud Watch metrics
- you install the agent
- can be checked every 10 seconds
Which CloudWatch metrics are default?
- CPU Utilization
- Network Throughput
Which CloudWatch metrics are custom?
- EC2 Memory Utilization
- EBS Storage Capacity
Exam tip: What tool do you use for monitoring?
Cloud Watch
Are there any default Cloud Watch alarms?
No
At what intervals are CloudWatch alarms provided
- Standard metrics = 5 minutes
- Detailed metrics - 1 minute
CloudWatch logs
when you start getting a lot of logs, you will become overwhelmed with logs.
CloudWatch logs is a tool that allows you to monitor, store and access log files from a variety of sources (EC2, Lambda, RDS, etc.)
Log Event
a record of what happened
Log Stream
a collection of log events from the same source
Log Group
all of the log streams of all services/apps that log
CloudWatch Log Filter Patterns
let you look for specific terms in your logs (ex: 404 errors)
CloudWatch Logs Insights
use sql-like commands to look for general trends across all your services
CloudWatch Logs Insights
- CloudWatch Logs + SQL
- use sql-like commands to look for general trends across all your services
EC2 CloudWatch Setup
- Install the agent
- run the config wizard command
- Do you want to monitor a log file? Yes, give it a path to the log
- Then it creates a JSON document
- Run the agent and pull in the JSON config file
- You have to give CloudWatch Logs a role to do this.
EC2 CloudWatch Setup
- Install the agent
- run the config wizard command
- Do you want to monitor a log file? Yes, give it a path to the log
- Then it creates a JSON document
- Run the agent and pull in the JSON config file
- You have to give CloudWatch Logs a role to do this.
For exam questions about logs …
Choose CloudWatch Logs:
- unless you don’t need to process them (use S3)
- unless they’re streaming logs or real-time solution (then use Kinesis)