Interview Prep/AWS/Observability, Security Services and IaC

How are CloudWatch metrics organized?

BeginnerConceptObservability, Security Services and IaC
Answer

Metrics belong to a namespace (AWS/EC2), are identified by a name plus dimensions (InstanceId=i-0abc), and are stored as time series with periods of 1 minute (standard) or down to 1 second (high resolution custom metrics). Basic EC2 monitoring is 5 minutes; detailed is 1 minute. Metrics are regional and kept up to 15 months, rolled up over time.

aws cloudwatch get-metric-statistics --namespace AWS/EC2 --metric-name CPUUtilization \
  --dimensions Name=InstanceId,Value=i-0abc --start-time 2026-11-01T00:00:00Z \
  --end-time 2026-11-01T01:00:00Z --period 300 --statistics Average
aws All AWS questions

More on Observability, Security Services and IaC