🔷

CloudWatch Metrics

  • CloudWatch automatically provides metrics for AWS services (e.g., CPUUtilization for EC2, ReadIOPS for RDS).
  • A metric is a time-ordered set of data points to monitor a resource or application variable.
  • Metrics are grouped in namespaces (e.g., AWS/EC2, AWS/Lambda).
  • Dimensions are name/value pairs that describe a metric (e.g., InstanceId=i-123456).
    • Each metric can have up to 30 dimensions.
  • Each data point in a metric has:
    • Value
    • Timestamp
    • Optional unit
  • Supports 1-minute standard granularity and 1-second high-resolution metrics.
  • Custom Metrics can be created to track non-default variables (e.g., RAM usage, application-specific KPIs).
  • CloudWatch Dashboards allow visualization of metrics across regions and services in a single view.
  • Metrics can be used in CloudWatch Alarms for automated actions (e.g., scale up/down, send SNS notification).