Click here - / @interviewdot to get notifications. AWS Cloudwatch Alarm :
---------------------
Why monitoring is important ?
Monitoring is crucial for your application because it gives you satisfaction that your Cloud services, your application or whatever is it you are hosting on AWS is running smoothly and perfectly.
a. To make sure that your website/cloud and app are always online.
b. To make your application secure for your customers.
c. It can help you monitor the resultant performance and cost of your application.
d. Troubleshooting and recommendation for future and how to avoid the existing errors.
CloudWatch :
===========
Amazon CloudWatch is the solution provided by Amazon to assist us in making sure that all the services we are using on Amazon AWS are running smoothly all the time.
CloudWatch collects monitoring and operational data in the form of logs, metrics, and events, providing you with a unified view of AWS resources, applications and services that run on AWS.
CloudWatch Alarm :
=================
We can create a cloudwatch alarm for a specific metric for a service.
Metrics types [Latency, errors, request count, storage space, cpu utilization, SQS no of msgs sent/received, SNS no of msgs published/delivered, etc]
The alarm performs one or more actions based on the value of the metric relative to a threshold over a number of time periods. The action can be an Amazon EC2 action, an Amazon EC2 Auto Scaling action, or a notification sent to an Amazon SNS topic.
You can define certain threshold for three conditions:
a. OK:The metric is within the defined threshold.
b. ALARM:The metric is outside of the defined threshold.
c. INSUFFICIENT_DATA:The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.
advantages
Application-wide and cross-infrastructure transparent monitoring on a central platform
Modern applications such. For example, those running on microservices architectures generate a great deal of data in the form of metrics, logs, and events. With Amazon CloudWatch, you can capture, access, and correlate this data on a single, centralized platform from all of your AWS resources and applications, as well as services running on AWS and on local servers. In this way you create company-wide transparency, break up data silos and ensure a quick resolution of problems.
The easiest way to capture metrics in AWS and on-site
CloudWatch makes it easy to monitor your AWS resources and applications. The solution can be natively integrated into more than 70 AWS services. Amazon EC2, Amazon DynamoDB, Amazon S3, Amazon ECS, Amazon EKS or AWS Lambda. It can automatically publish detailed 1-minute and custom metrics with 1-second granularity, giving you deep insights into your logs and context. You can also use CloudWatch in hybrid cloud architectures using the CloudWatch Agent or the CloudWatch API to monitor your resources on the ground.
Improvement of operational performance and resource optimization
Amazon CloudWatch allows you to configure alarms and automate specific actions. This can be done either based on predefined thresholds or using machine learning algorithms that detect abnormal behavior in your metrics. For example, Amazon EC2 Auto Scaling can be started automatically or an instance stopped to prevent unnecessary charges. You can also use CloudWatch events for serverless applications to trigger workflows on services like AWS Lambda, Amazon SNS, and AWS CloudFormation.
Operational transparency and insights
To optimize performance and resource utilization, you need a unified operational overview, real-time granular data, and historical reference data. CloudWatch provides automated dashboards, 1-second granularity, and up to 15-month storage and archival of metrics. You can also use Metric Math to derive operational and workload information from your data. For example, you can aggregate usage data for an entire fleet of EC2 instances.
Derivation of meaningful insights from protocols
CloudWatch allows you to search, analyze, and visualize your logs so you can easily fix operational issues. With Cloudwatch Logs Insights, you pay only for the queries that you run. The solution scales with your log volume and complexity of queries, providing answers within seconds. In addition, you can publish log-based metrics, create alerts, and correlate logs and metrics in CloudWatch dashboards for complete operational visibility.
What is cloudwatch custom metrics ?
Amazon CloudWatch provides you the facility to monitor custom metrics, by submitting custom metrics generated by our application. The metrics can be submitted by the simple API request.
AWS CLOUDWATCH PRICING : aws.amazon.com...
Негізгі бет AWS CLOUDWATCH ALARM TAMIL | Explain AWS Cloud Watch Alarm | InterviewDOT
Пікірлер: 6