Skip to main content
In this lesson you’ll learn how to create AWS CloudWatch dashboards and add widgets to visualize metrics and logs from your infrastructure. CloudWatch aggregates telemetry (metrics, logs, and events) so you can monitor application health, spot trends, and troubleshoot issues from a single, customizable dashboard. Before you begin, have an EC2 instance running in the region you plan to monitor. Dashboards are region-scoped, so the correct region selection ensures your metrics appear as expected.
Ensure at least one EC2 instance is running (and passing status checks) in the AWS region you will use for the dashboard. Dashboards present metrics per region, so choosing the correct region avoids confusion.
Screenshot of the AWS EC2 Instances console showing one running instance. The instance named "MyEC2Instance" (i-0379033f0e273ad10) is a t3.micro with 3/3 status checks passed.

Step 1 — Open CloudWatch and create a dashboard

  1. From the AWS Management Console, search for and open CloudWatch.
  2. In the left navigation pane expand Dashboards and click Create dashboard.
  3. Enter a dashboard name such as DevOps-Monitoring and click Create dashboard.
Screenshot of the AWS CloudWatch "Create new dashboard" dialog with "DevOps-Monitoring" entered as the Dashboard name. The Tags section is shown and the "Create dashboard" and "Cancel" buttons are visible.
When the dashboard is created, CloudWatch will prompt you to add a widget. If the prompt does not appear, open your dashboard and click Add widget.
A screenshot of the AWS CloudWatch "Add widget" dialog showing data source options (CloudWatch selected) and widget configuration with Metrics and Metrics Console chosen. The dialog also shows "Cancel" and "Next" buttons at the bottom.

Step 2 — Add a metric widget (line chart)

To visualize a time series metric such as CPU utilization:
  • For Data source select CloudWatch.
  • For Data type choose Metrics.
  • For Experience choose Metrics Console and click Next.
  • Select a widget type. For time-series trends choose Line and click Next.
A screenshot of the AWS CloudWatch "Add widget" dialog. It shows data source options (CloudWatch selected) and widget type choices like Line, Data table, Number, and Gauge.
  • Give the widget a descriptive title such as CPU.
  • Verify the dashboard region matches the region where your EC2 instance is running (for example, us-east-2 / US East (Ohio)).
  • Under Browse choose EC2 → AWS/EC2 metric namespace and filter by the InstanceId dimension to show per-instance metrics.
  • Paste your EC2 instance ID in the search box and press Enter to limit results to that instance (you should see metrics like NetworkIn, NetworkOut, CPUUtilization, and EBS metrics).
  • Select the CPUUtilization metric (or another metric you want) and click Create widget.
A screenshot of the AWS CloudWatch dashboard showing an empty CPU graph with time-range and timezone controls and "Add math"/"Add query" buttons. Below the graph is a list of selectable metrics (e.g., NetworkIn/NetworkOut) and "Cancel" / "Create widget" buttons.
After creating the widget, the line chart appears on the dashboard. Hover to inspect timestamps and metric values.
A screenshot of an AWS CloudWatch "DevOps-Monitoring" dashboard displaying a small CPU utilization chart with a tooltip showing a timestamp and CPUUtilization value. The top bar shows navigation, region, and action/save controls.

Step 3 — Add additional metric widgets

To compare multiple metrics side-by-side:
  • Click the plus (+) icon or Add widget on the dashboard.
  • Repeat: CloudWatch → Metrics → Metrics Console → widget type (e.g., Line) → EC2 → AWS/EC2 → filter by InstanceId.
  • For example, add NetworkIn to visualize incoming network traffic. Configure chart settings (statistic, period, labels) and click Create widget.
The dashboard will display CPU and Network metrics together for quick correlation.
A screenshot of the AWS CloudWatch "Add metric graph" dialog showing a CPU line chart with a small spike around 09:00. The panel displays time-range and chart options, a selected EC2 instance (MyEC2Instance), and a "Create widget" button.

Step 4 — Add a Number widget (single-value)

Number widgets are ideal for single-value indicators such as current CPU average, error counts, or request rates.
  • Add a widget: CloudWatch → Metrics → Metrics Console → Number.
  • Select the same AWS/EC2 metric and InstanceId, choose CPUUtilization (or another metric).
  • Configure the statistic (e.g., Average), unit (Percent), and period for the time window you want to represent.
  • Create the widget to display a single, up-to-date metric value on the dashboard.

Step 5 — Save and organize

  • After adding and arranging widgets, click Save to persist the dashboard layout and widget configuration.
  • Rearrange widgets by dragging to create logical groupings (compute, networking, storage, etc.).

Common widget types and use cases

Best practices

  • Dashboards are region-aware: always confirm the selected region matches your monitored resources.
  • Mix widget types (Line, Number, Gauge) to present both trends and single-value indicators.
  • For production environments, design dashboards that reflect the entire service/application — include multiple instances, databases, load balancers, and availability zones — not just a single instance.
  • Use clear widget titles and consistent time ranges to help viewers quickly understand the data.
Think of CloudWatch as the monitoring platform, metrics as the raw measurements, dashboards as the visual aggregation of those measurements, and widgets as each individual visualization on the dashboard.
That concludes this lesson on creating CloudWatch dashboards and widgets.

Watch Video