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.

Step 1 — Open CloudWatch and create a dashboard
- From the AWS Management Console, search for and open CloudWatch.
- In the left navigation pane expand Dashboards and click Create dashboard.
- Enter a dashboard name such as
DevOps-Monitoringand click Create dashboard.


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.

- 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
InstanceIddimension 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
CPUUtilizationmetric (or another metric you want) and click Create widget.


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
NetworkInto visualize incoming network traffic. Configure chart settings (statistic, period, labels) and click Create widget.

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/EC2metric andInstanceId, chooseCPUUtilization(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.
Links and references
- Amazon CloudWatch Documentation
- Amazon EC2 Documentation
- For more examples of dashboard automation, see the CloudWatch dashboard JSON format in the official docs.