liveBook · Manning

Performance

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

A metric is a quantitative measurement of system behavior, resource use, or performance over time.

Performance metrics are quantitative measurements of system behavior, resource use, or performance over time. In AWS, services publish metrics to CloudWatch so you can inspect capacity, debug bottlenecks, define alarms, and trigger scaling actions. section 3.2.2 section 17.2.2

Apply metrics to practical operational questions:

  • Inspect EC2 CPU, network, and disk usage to judge whether a virtual machine is nearing capacity; publish a custom memory metric when needed. section 3.2.2
  • Monitor RDS storage, CPU, memory, disk queues, and related measurements, then create CloudWatch alarms for dangerous thresholds. section 10.7
  • Use CloudWatch alarms with scaling policies to increase or decrease an Auto Scaling group’s EC2 capacity as workload changes. section 17.2.2

Scheduled website health check

A Lambda function sends an HTTP request and verifies expected response text. An EventBridge rule runs it every five minutes, while a CloudWatch alarm counts failures and sends email when the site is unavailable. section 6.2

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Descends from console inspection to alarm thresholds and scaling parameters, while noting that EC2 memory requires a custom metric.
Examples
Uses EC2 resource graphs, RDS threshold tables, autoscaling alarms, and a scheduled Lambda website health check.
What you can do after
Diagnose/debug with it, configure alarms, and adjust EC2 capacity using CloudWatch metrics and scaling policies.
How it connects
Connects CloudWatch with EC2, RDS, Lambda, EventBridge, alarms, logs, and Auto Scaling.

Also explained in

Compare how 40 books explain performance →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.