Monitoring Flashcards
What is CloudWatch?
It is a monitoring service that monitors your AWS resources, as well as the applications that you run on AWS.
What does CloudWatch monitor per default (host level metrics)?
- CPU
- Network
- Disk (e.g. disk I/O, not how much storage there is left)
- Status Check (e.g. health of a EC2 host or instance)
Name a CloudWatch custom metric.
RAM Utilization
What is the default monitoring for EC2 (in minutes)?
Default is 5 minutes intervals. You can enable detailed monitoring, which makes it 1 minute intervals.
What is the retention period for CloudWatch logs?
CloudWatch stores your logs indefinitely by default. You can change this. You can even retrieve data from terminated EC2 or ELB instances after its termination.
What is the minimum granularity for CloudWatch custom metrics?
1 minute.
How can you use CloudWatch to monitor?
- You can create an alarm to monitor any CloudWatch metric in your account
- e.g. EC2 CPU utilization, Elastic Load Balancer latency, charches on you AWS bill
- You can set a threshold in which to trigger the alarm, and also set what action should be taken if an alarm state is reached (SNS that sends you a notification, Lambda that terminates some instances, etc).
What is the metric granularity for Standard and Detailed monitoring?
Standard: 5 min
Detailed: 1 min
Can CloudWatch be used on premise?
Yes. Just need to download an install the SSM agent and CloudWatch agent.
What is the difference between CloudWatch, CloudTrail and Config?
- CloudWatch
- Monitors performance
- CloudTrail
- Monitors API calls in the AWS platform
- Used for auditing
- E.g. if I provision an EC2
- Tells you what time it was provisioned, what resource, whether it was provisioned successfully, who provisioned it, the IP address, etc.
- Config
- Records the state of your AWS environment and can notify you of changes
- E.g. Config can tell you what the rules was on a certain security group three weeks ago
How do I delete CloudWatch metrics?
“Metrics cannot be deleted, but they automatically expire after 15 months if no new data is published to them.”