Monitoring AWS Services Using CloudWatch and SNS
-
CloudWatch is a monitoring service used to monitor resources and applications running on AWS.
-
Cloud Watch monitors resources by publishing metrics
-
To get the complete list of services that publish Cloud Watch Metrics Refer Here
-
Refer Here for the EC2 specific metrics
-
Lab Setup:
- Create an EC2 instance (t2.micro)
- Create an RDS instance (db.t2.micro)
-
Navigate to the monitoring section in EC2 instance
-
Find out the metrics published by cloud watch for rds Refer Here for the metrics
-
Querying metrics for Service using CLI
aws cloudwatch list-metrics --namespace AWS/RDS --query "Metrics[*]. MetricName" --output table
aws cloudwatch list-metrics --namespace AWS/EC2 --query "Metrics[*]. MetricName" --output table
aws cloudwatch list-metrics --namespace AWS/DynamoDB --query "Metrics[*]. MetricName" --output table
-
Navigate to AWS CloudWatch
-
Create a dashboard to show the
- CPU Utilization
- Database Connections
- Network packets in all ec2 instances
-
Terms
- Metric
- Dimension