View metrics

  1. Open the CloudWatch console. In the navigation pane, expand Metrics (1) and choose Classic metrics (2). Under Custom namespaces you see CWAgent, created by the CloudWatch agent (3). The FCJ/CloudWatchWorkshop namespace appears later, after section 4.3.

Classic metrics

  1. Choose 1h for the time range. In the search box enter EC2 and press Enter (1), then choose EC2 > Per-Instance Metrics (2).

EC2 per-instance metrics

  1. In the search box enter CPUUtilization and press Enter. Sort by Instance name and select FCJ-CloudWatch-Instance-A and FCJ-CloudWatch-Instance-B (1). The graph shows both lines (2). Both instances go up and down in cycles, with A busier than B.

CPU of two instances

Your account can contain other instances. Only select the rows whose name starts with FCJ-CloudWatch-.

  1. Clear Instance B. Remove the CPUUtilization filter, search for EBSWriteBytes and select the row of Instance-A (1). The graph now shows CPU and disk writes of the same instance (2). The two lines move together, because the workload writes to disk right after its CPU-busy phase.

CPU and EBS write bytes

  1. The two metrics use different units (percent and bytes), so the CPU line looks flat. Open the Graphed metrics tab and, on the EBSWriteBytes row, choose the right arrow in the Y axis column (1). The metric moves to a second Y axis on the right (2) and both lines become readable.

Right Y axis