Create CloudWatch Dashboard

We have deployed a single Windows 2 EC2 instance and we will now create a CloudWatch Dashboard to monitor the memory and CPU resources consumed by the instance.

  1. From the AWS Console, click the search box and type in CloudWatch (or you can open this link directly https://console.aws.amazon.com/cloudwatch/home) CreateDashBoard1

  2. Click on Dashboards link on the left side CreateDashBoard2

  3. Click on Create Dashboard button

    If you have not done so already, make sure to click “Try out the new interface” to see the updated CloudWatch interface.

    CreateDashBoard3

  4. Under Dashboard Name, type in “WindowsEC2Server” and then click “Create Dashboard” CreateDashBoard4

  5. You will be presented with dialog box to “Add to the dashboard”. Select Line and click Next CreateDashBoard5

  6. Select Metrics and click Configure CreateDashBoard6

  7. Under “All metrics”, scroll down to “Custom Namespaces” and click on “CWAgent” CreateDashBoard7

  8. You will find multiple metrics, but we will start with each of the CPU’s in the machine.

  9. Click on “ImageId, InstanceId, InstanceType, instance, o…” CreateDashBoard8

  10. Make sure the Instance Name starts with WindowsMachineDeploy, then click on one of the InstanceId and select “Search for this only”. This will ensure we are only looking at instances created for this lab. CreateDashBoard9 CreateDashBoard10

  11. Under Metric Name, look for “Processor % User Time” and then click “Add to search”. This will limit your choices again to only the CPU metrics for this machine. In this case you should see 2 processors listed, but if the machine you have deployed has more, you will see them each listed. CreateDashBoard11

  12. On the left side of the screen, select the box right above the list, this will add both metrics to your graph. CreateDashBoard12 CreateDashBoard13

  13. Click on the “Graphed Metrics (2)” tab, and on the right side next to Period, select “5 seconds” CreateDashBoard14 CreateDashBoard15

  14. The metric graph will now update with more data points. Click “Create Widget” CreateDashBoard16

  15. You should now see the dashboard we have created displayed with the first metric widget. CreateDashBoard17