Skip to main content

Using Custom CloudWatch Dashboards for Visual AWS Resource Monitoring

Hands-On Lab

 

Photo of

Training Architect

Length

00:30:00

Difficulty

Intermediate

Welcome to this Learning Activity for creating AWS CloudWatch Dashboards! This Learning Activity provides hands-on experience with creating and configuring multiple custom AWS CloudWatch dashboards and widgets. The primary focus will be on the following features within CloudWatch: 1. CloudWatch Dashboards 2. Dashboard Widgets 3. CloudWatch Metrics CloudWatch Dashboards built with custom widgets allow you to visually monitor resources and proactively take actions if needed. Overall, the dashboards give you a central (and visual) view of how your monitored resources are behaving at specific points in time. ## Please enjoy!

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

Using Custom CloudWatch Dashboards for Visual AWS Resource Monitoring

In this lab, you'll get hands-on experience creating and configuring multiple custom AWS CloudWatch dashboards and widgets.

Our primary focus will be on the following CloudWatch features:

  • CloudWatch dashboards
  • Dashboard widgets
  • CloudWatch metrics

CloudWatch dashboards with custom widgets allow you to visually monitor resources and proactively take actions if needed. These dashboards give you a central (and visual) view of how your monitored resources are behaving at specific points in time.

Log in using the credentials provided on the lab instructions page. Once you're logged in, make sure you are in the _us-east-1_ region.

Creating Custom CloudWatch Dashboards

Create a CloudWatch Dashboard for the DMZ Layer

Navigate to the CloudWatch service by opening the Services dropdown menu and selecting CloudWatch under the Management and Governance header (or by typing "CloudWatch" into the search bar at the top of the page). Click Dashboards in the sidebar and then Create dashboard. Name the dashboard "DMZLayer", then click Create dashboard.

Select the Line widget, then click Configure.

In the All Metrics tab, click EC2, then Per-Instance Metrics, and enter CPUUtilization into the search bar. Select the bastion-host row. At the top of the page, click the custom dropdown, select 15 minutes, and then click Create widget. Then, click Save dashboard.

Create a CloudWatch Dashboard for the Application Layer

We'll use a different method to create a second CloudWatch dashboard with widgets that display metrics for the Application Layer.

Click Metrics in the sidebar. In the All Metrics tab, click EC2 and then Per-Instance Metrics. In the instances list, scroll down to find one with CPUUtilization in the Metric Name column and select the dropdown arrow next to CPUUtilization. Select Search for this only. Select both instance-wordpress rows, and click the dropdown above the graph at the top of the page. Change the selection from Line to Stacked area. Click Actions and then Add to dashboard. Next, click Create new. Name it AppLayer and click the checkmark icon. Click Add to dashboard. Then click Save dashboard.

Next, click Add widget, and select the Number option. Click Configure.

In the Add metric graph menu, under the All Metrics tab, select ApplicationELB and then Per AppELB Metrics. Next, select the RequestCount row at the top of the list and click Create widget. Click Save dashboard.

Click the dropdown at the top of the page, and select AppLayer. Click Add widget, select the Line option, and then click Configure. In the All Metrics tab, click EC2, then Per-Instance Metrics. This time, we'll choose NetworkIn for the Metric Name. Click the dropdown arrow next to NetworkIn, and select Search by this only. Then, select both instance-wordpress hosts, and click Create widget.

Conclusion

We have now successfully created several custom AWS CloudWatch dashboards and widgets. Congratulations on completing this lab!