Understanding the billing and setting the cloudWatch alerts for billing, auto Email via SNS for alerts
AWS CloudWatch is a service that monitors cloud activities, acting as a gatekeeper for AWS. It provides monitoring, alerting, reporting, and logging of activities in an AWS account.
Key features of CloudWatch are :
Resource Monitoring: CloudWatch collects details when resources like EC2 and S3 are created.
Real time metrics include the number of requests received by an application on an EC2 instance, CPU utilization, and memory consumption over time.
Alarms: Alarms can be set up to notify when a metric crosses a certain threshold, such as an EC2 instance reaching 80% CPU utilization.
Logging: Logs can be used to track the access of services to resources, like when a service accesses S3.
Task :
- Create a CloudWatch alarm that monitors your billing and send an email to you when a it reaches $2.
Dashboard :
AWS cloudwatch allows to create custom dashboard to visualize and monitor AWS resources and applications.
Dashboard
Go to AWS console -> Search CloudWatch -> click Alarms ->select All alarms
Step 1: Specify metric and conditions -> select metric
Under Browse-> select Billing -> select -> Total Estimated Charge
Step 2: Configure actions
Select the SNS(Simple Notification Service) or create new SNS to send the email
Select the Create topic to create the SNS topic
Click on Create topic
Note : You need to verify the email in the SNS section to receive alarm emails.
You will receive a notification on your registered email ID
Click on confirm subscription
You have successfully subscribed.
Step 3: Add name and description
These actions are used to automate something, like when EC2 reaches 80% of its capacity - trigger a Lamda function.
Specify the alarm name and alarm description
Step 4: Preview and create
After verify the details , Select create alarm.
AWS billing & cost management
AWS Billing and Cost Management provides a suite of features to help you set up your billing, retrieve and pay invoices, and analyze, organize, plan, and optimize your costs. To get started, set up your billing to match your requirements.
Conclusion:
In conclusion, AWS CloudWatch is a powerful tool for monitoring and managing your AWS resources, providing valuable insights into the performance and health of your applications.
Happy Learning
Thank you for the reading!๐