Domain 5: Monitoring Flashcards
What is AWS CloudWatch?
AWS CloudWatch is a monitoring/management service which provides monitoring of metrics
What is a CloudWatch alarm?
Trigger an event when a given metric is exceeded and trigger an event. E.g. an SNS notification
What are the CloudWatch EC2 default host level metrics?
CPU, Network, Disk IO & Status Check (health)
What are the CloudWatch EC2 custom metrics?
RAM utilization, remaining disk space
What is the default CloudWatch EC2 monitoring inteval?
5 minutes
What is the default CloudWatch EC2 detailed monitoring inteval?
1 minute
What is the minimum CloudWatch granularity of custom metrics?
1 minute
To create custom metrics from an EC2 instance what are some of the things you need to do?
- Attach a role with the policy CloudWatchFullAccess to the EC2 instance
- Configure the EC2 instance to write CloudWatch logs every 5 minutes (minimum 1 minute) (can use cron job)
What is AWS X-Ray?
Service collects data about requests that your application serves
Describe the X-Ray architecture
X-Ray SDK is installed on your EC2 instance which runs the X-Ray Daemon this communicates with the X-Ray API for information which can be viewed in the X-Ray Console
What services does X-Ray integrate with?
Elastic Load Balancing Lambda API G/W EC2 AWS Elastic Beanstalk DynamoDB
What does the X-Ray SDK provide?
Interceptors to add to your code to trace HTTP requests
Client handlers to instrument AWS SDK
What languages are supported with X-Ray?
Java, Go, Ruby, NodeJS, Python, .NET, C#
How to integrate ECS with X-Ray?
Run the X-Ray Daemon in it’s own Docker image running alongside your application
What is AWS CloudTrail?
Great for auditing, provides logs of
IP address of client, success or failed, which user/role