Skill 2.2.3
Identifying metrics based on business requirements to deliver a highly available solution
Key Concepts
Business requirements are expressed as SLAs and SLOs (for example, 99.9% availability, p99 latency under 300 ms) and as RPO and RTO for recovery. 99.9% allows about 8.8 hours of downtime a year; 99.99% about 53 minutes.
Measure what users experience: ELB HTTPCode_Target_5XX_Count, TargetResponseTime, HealthyHostCount; RDS replica lag and free storage; SQS ApproximateAgeOfOldestMessage; Lambda errors and throttles. CloudWatch Synthetics canaries test endpoints continuously and Route 53 health checks monitor endpoints from many locations.
CloudWatch alarms (and composite alarms) trigger scaling, SNS notifications, EC2 recovery or failover. AWS X-Ray and CloudWatch Application Signals trace requests across services to find failing or slow components. AWS Health reports AWS events affecting your resources.