CloudWatch Flashcards
What is CloudWatch?
is a monitoring and management service that provides data and actionable insights for AWS, hybrid, and on-premises applications and infrastructure resources
What services obtain the benefits of CloudWatch metrics?
every service
What is a CloudWatch dimension?
is a name/value pair attribute that is part of the identity of a metric (instance id, environment, etc…)
What is a CloudWatch metric?
a variable to monitor, with data points representing the values of that variable over time
What is a CloudWatch metric namespace?
is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other
What can you create on CloudWatch from metrics?
dashboards
How often do EC2 instances have metrics?
5 minutes
Using CloudWatch detailed monitoring how fast can you get data from EC2 instances metrics?
every 1 minute at a cost
How many detailed monitoring metrics are allowed by CloudWatch in the free tier?
10
By default what is not pushed from EC2 instances to CloudWatch metrics?
Memory usage is by default not pushed (must be pushed from inside the instance as a custom metric)
What is a CloudWatch custom metric?
You can publish your own metrics to CloudWatch using the AWS CLI or an API
Can you use dimentions on custom metrics?
yes
What is the standard resolution time for custom metrics?
1 min
What is the high resolution time for custom metrics?
up to 1 second using StorageResolution API parameter - higher cost
What is the API for sending custom metrics?
PutMetricData
What you need to do if you get an error while sending a custom metric?
Use exponential back off
What are CloudWatch Dashboards?
are customizable home pages in the CloudWatch console that you can use to monitor your resources in a single view, even those resources that are spread across different Region
What graphs can you include in CloudWatch Dashboards?
it is global, can include graphs from different regions
What can be sent to Cloudwatch in addition to metrics?
You can use CloudWatch Logs to monitor applications and systems using log data
What is used by applications to send logs to CloudWatch?
SDK
Where can CloudWatch logs go to?
- Batch exporter to S3 for archival
* Stream to ElasticSearch cluster for further analytics
What is composed of CloudWatch logs storage architecture?
- Log groups: arbitrary name, usually representing an application
- Log stream: instances within application / log files / containers
Does CloudWatch logs expire?
you can set expiration policies (never, 30 days, etc)