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.
CloudWatch Features-What can CloudWatch do?
- System Metrics: These are metrics that you get out of the box. The more managed the service is, the more you get.
-
Application Metrics: By installing theCloudWatch agent, you
can get information from inside your EC2 instances. - Alarms: What’s the point of collecting data if you don’t do something with it? Alarms can alert you when something goes wrong
What are the 2 Types of Metrics the CloudWatch offers?
- Default: These metrics are provided out of the box and do not require any additional work on your part to configure(CPU Utilization, Network Throughput, disk I/O, and status checks for Amazon EC2 instances).
-
Custom: These metrics will need to be provided by using the CloudWatch agent installed on the host(EC2 Memory
Utilization, EBS Storage Capacity).
Standard vs. Detailed intervals in CloudWatch.
The standard is 5-minute intervals, whereas detailed is 1-minute.
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?
This is the record of what happened. It contains a timestamp and the data.
What is a Log Stream?
A collection of log events from the same source creates a log stream. Think of one continuous set of logs from a single instance.
What is a Log Group?
This is a collection of log streams. For example, you’d group all your Apache web server logs across hosts together.
CloudWatch Logs Features
We’ve collected our logs —now what?
-
Filter Patterns: You can look for specific terms in your logs. Think
400 errors in your web server logs. - CloudWatch Logs Insights: This allows you to query all your logs using a SQL-like interactive solution.
- Alarms: Once you’ve identified your trends or patterns,it’s time to alert on them.
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.
- Several built-in data sources, including Amazon CloudWatch, Amazon
Managed Service for Prometheus, and AWS X-Ray.
What are some Amazon Managed Grafana use cases?
- Container Metric Visualizations: Connect to data sources 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.
- Leverage the service for Amazon EKS clusters or even self-managed
Kubernetes clusters. - Leverage this service for any Kubernetes-based metrics monitoring at
scale.
Can CloudWatch logs be used outside of AWS services?
Yes, by using the AWS SDK or API or installing the CloudWatch agent.
CLoudWatch logs is a regional or global service?
Amazon CloudWatch Logs is a regional service. Each AWS region has its own instance of CloudWatch Logs, and log data is stored and managed within that region.
In which log entities metrics are defined?
Log groups