Monitoring Flashcards
What is CloudWatch?
Cloudwatch is a monitoring and observability platform that was designed to give us insight into our AWS architecture. It allows us to monitor multiple levels of our applications and identify potential issues.
What are the main things that CloudWatch can do?
- Collect system metrics (metrics you get out of the box, the more managed your service, the more you get out of the box)
- Collect application metrics (by installing a CloudWatch agent, you can get information from inside your EC2 instances)
- Create alarms (alerts you when something goes wrong based on metrics)
What are the two kinds of metrics in CloudWatch?
- Default (provided out of the box and do not require additional work on your part to configure)
- Custom (these metrics will need to be provided by using the CloudWatch agent installed on the host)
What are the metrics that are provided by default in CloudWatch?
EC2 Metrics: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/viewing_metrics_with_cloudwatch.html
RDS Metrics:
<list>
Lambda Metrics:
<list>
S3 Metrics:
<list>
</list></list></list>
What is the lowest period of data collection for standard metrics in CloudWatch?
1 minute
What is the lowest period of data collection for custom metrics in CloudWatch?
10 seconds
If you are asked what service to use for monitoring, what service would you recommend?
CloudWatch
Are there any alarms created by default?
No
What is CloudWatch Logs?
CloudWatch Logs is a tool that allows you to monitor, store and access log files from a variety of different sources. It gives you the ability to query your logs to look for potential issues or data that is relevant to you.
What is a Log Event in CloudWatch?
This is the record of what happened. It contains the timestamp and the data.
What is a Log Stream in CloudWatch?
A collection of Log Events from the same source.
What is a Log Group in CloudWatch?
A collection of Log Streams.
What are Filter Patterns in CloudWatch Logs?
You can look for specific terms in your logs.
What are CloudWatch Logs Insights?
This allows you to query all your logs using SQL-like interactive solution.
What are Alarms in CloudWatch Logs?
Once you’ve identified you trends and patterns, you can alert on them using CloudWatch Alarms.
If you are asked what service to use for storage of logs where you won’t need to process them, what service would you recommend?
S3
If you are asked a questions about processing and viewing logs, what service would you recommend?
CloudWatch Logs
If you are asked about what service you would use for logging, if it doesn’t call out needed the logging to be real-time?
CloudWatch Logs
If you are asked about how you would log and then filter the logs using SQL-like queries, what service would you recommend?
CloudWatch Logs Insights
What is Amazon Managed Grafana?
Fully managed AWS service allowing secure data visualizations for instantly querying, correlating, and visualizing your operational metrics, logs and traces from different sources.
What are the features of Amazon Managed Grafana?
- Easy to deploy, operate and scale in your AWS account
- Workspaces (logical Grafana servers) allow for separation of data visualizations and querying
- AWS handles scaling, setup and maintenance of all workspaces
- Built-in security features help you meet governance and compliance requirements (single-signon, etc.).
- Pricing is based per active user in a workspace.
- Integration it with several sources including Amazon CloudWatch, Amazon Managed Service for Prometheus, Amazon OpenSearch Service, and Amazon Timestream
Name some use cases for Amazon Managed Grafana?
- Container Metric Visualizations (connect to datasources like Prometheus for visualizing EKS, ECS or your own Kubernetes cluster metrics)
- Internet of Things (IoT) (vast data plugins make the service a perfect fit for monitoring IoT and edge device data)
- Troubleshooting (centralizing dashboards allows for more efficient operational issue troubleshooting)
What is Amazon Managed Service for Prometheus?
Serverless, Prometheus-compatible service used for securely monitoring container metrics at scale
- Open Source Prometheus (leverage the open-source Prometheus data model with AWS managed scaling and availability)
- Automatic scaling (based on ingestion, storage and querying of metrics)
- Designed for high-availability (AWS replicates data across the three AZs in the same region)
- Choose your own Kubernetes (works with clusters running on Amazon EKS or self-managed Kubernetes clusters)
- PromQL (leverage the open source PromQL query language for exploring and extracting data)
- Data retention (stored in workspaces for 150 days and automatically deleted afterward)
- VPC endpoints can be leveraged for secure VPC access
Name some of the built-in datasources in Amazon Managed Grafana.
- Amazon CloudWatch
- Amazon Managed Service for Prometheus
- AWS X-Ray
(and many more)
When would you use Amazon Managed Service for Prometheus?
Leverage the service for Amazon EKS clusters or even self-managed Kubernetes clusters.
What is the server you would recommend for anything alarm related?
CloudWatch
If you are asked how you could monitor for resource changes, what service would you recommend?
AWS Config
How often are standard metrics in CloudWatch delivered by default?
Every 5 minutes
How often is detailed monitoring of metrics in CloudWatch delivered (not the default)?
Every 1 minute
What services can integrate with CloudWatch Logs?
EC2, on-premises, RDS, Lambda, and CloudTrail
If you are asked how you could collect logs in real-time, what service would you recommend?
Kinesis
If you are asked how you could visualize and correlate container or IoT metrics, what service would you recommend?
Amazon Managed Grafana
If you are asked about monitoring container (especially Kubernetes) metrics at scale, what service would you recommend?
Amazon Managed Service for Prometheus