
AWS CloudOps Learning Journey | Skill 1.1.1: Monitoring and Logging AWS Workloads – CloudWatch Practical Demo
Learn how to monitor AWS workloads using CloudWatch metrics and dashboards through a hands-on demo. Configure, break, troubleshoot, fix and verify like a CloudOps engineer.
Series: My CloudOps Learning Journey (7 articles)
- 2AWS CloudOps Learning Journey | Skill 1.1.1: Monitoring and Logging AWS Workloads – CloudWatch Practical Demo This article
Skill 1.1.1 – Monitoring and Logging AWS Workloads
Demo: CloudWatch Workload Monitoring
AWS Certified CloudOps Engineer – Associate (SOA-C03)
🎯 SKILL OVERVIEW
Official Skill 1.1.1:
“Use AWS services (for example, Amazon CloudWatch, AWS CloudTrail, Amazon Managed Service for Prometheus) to configure monitoring and logging for workloads (for example, serverless, compute, AI).”
This skill introduces three important AWS services:
1. Amazon CloudWatch – Monitors AWS resources and applications using metrics, logs, alarms and dashboards.
2. AWS CloudTrail – Records AWS account activity and API events. It helps identify who performed an action and when.
3. Amazon Managed Service for Prometheus – Collects and allows querying of Prometheus-compatible metrics, particularly useful for containerized and application workloads.
These services provide visibility into AWS workloads. As a CloudOps, DevOps or SysOps engineer, you need this visibility to identify unusual behaviour, investigate failures and maintain reliable applications.
In this article, we'll get hands-on with Amazon CloudWatch.
☁️ AMAZON CLOUDWATCH – WHAT SHOULD YOU KNOW?
Amazon CloudWatch is an AWS monitoring and observability service. It helps us understand how our AWS resources and applications are performing.
Important CloudWatch features
Feature | What it does |
|---|---|
Metrics | Collects numerical measurements of resources |
Dashboards | Displays metrics and alarms visually |
Alarms | Monitors metric conditions and changes alarm state |
Logs | Collects and stores log events |
Logs Insights | Queries and analyses log data |
CloudWatch Agent | Collects additional system-level metrics and logs |
Composite Alarms | Combines multiple alarm states using logical conditions |
Important EC2 metrics
When monitoring an EC2 instance, these are useful metrics to understand:
Metric | Purpose |
|---|---|
CPUUtilization | Shows CPU usage percentage |
NetworkIn | Measures incoming network bytes |
NetworkOut | Measures outgoing network bytes |
DiskReadOps | Counts disk read operations |
DiskWriteOps | Counts disk write operations |
Note: EC2 instance-level disk metrics are different from EBS volume performance metrics. Operating-system-level memory metrics generally require the CloudWatch Agent.
Four terms to remember
- Namespace: Groups related metrics, such as
AWS/EC2.
- Dimensions: Identify the resource associated with a metric, such as an EC2 instance ID.
- Statistic: Summarizes metric data, such as Average or Maximum.
- Period: The time interval used to aggregate or evaluate metric data.
For this practical exercise, our focus is CloudWatch Metrics and Dashboards.
🔧 PRACTICAL DEMO – CLOUDWATCH WORKLOAD MONITORING
Scenario: An application is running on an EC2 instance. The operations team wants to monitor its workload and identify unexpected changes in performance.
Our objective: Configure monitoring, verify that it works, deliberately introduce a fault, troubleshoot it, fix the root cause and verify recovery.
STEP 1 – UNDERSTAND THE SCENARIO
Imagine users are reporting that an application is becoming slow.
The operations team wants to investigate:
- Is CPU utilization increasing?
- Is network traffic changing?
- Is the instance showing unusual disk activity?
We need to monitor the EC2 workload using CloudWatch and display important metrics in a dashboard.
STEP 2 – CONFIGURE THE SERVICE
Open the AWS Management Console.
Navigate to:
CloudWatch → Metrics → All metrics → EC2
Locate the metrics associated with your lab instance.
Identify CPU, network and disk-related metrics.
What are we checking? Whether CloudWatch has the required monitoring data for the intended EC2 instance.
STEP 3 – CONFIGURE THE RESOURCES
Create a CloudWatch dashboard.
Navigate to:
CloudWatch → Dashboards → Create dashboard
Name it:
EC2-Workload-Monitoring Add widgets for the important metrics:
- CPUUtilization
- NetworkIn
- NetworkOut
- DiskReadOps or DiskWriteOps, where available
Choose a suitable time range and statistic.
Generate normal workload activity and observe how the metrics behave.
Expected result: A dashboard displaying the selected workload metrics.
STEP 4 – VERIFY THE WORKING STATE
Before introducing any fault, confirm that the configuration works.
Check:
- Correct EC2 instance selected.
- Correct AWS Region selected.
- Expected metrics available.
- Dashboard widgets displaying the intended information.
- Graphs showing data for the selected time range.
Record the expected result, actual result and evidence.
Capture a screenshot of the working dashboard. This is your baseline for comparison.
STEP 5 – DELIBERATELY BREAK IT
Now introduce one controlled fault.
The workbook provides two options:
- Remove one metric from the dashboard.
- Select the wrong EC2 instance or AWS Region.
Introduce only one fault at a time.
STEP 6 – OBSERVE THE FAILURE
Inspect the dashboard after introducing the fault.
Expected symptom: The dashboard is not displaying the expected workload information.
Observe:
- What stopped working?
- Which widget is affected?
- Are the expected metrics missing?
- Is the selected instance or Region incorrect?
Do not immediately change the configuration. First understand the failure.
STEP 7 – COLLECT EVIDENCE
Perform these checks:
Check 1 – Instance and Region
Compare the selected EC2 instance ID and Region with the actual lab resource.
Check 2 – Underlying metric
Check whether the required metric exists in CloudWatch.
Check 3 – Widget dimensions
Compare the dashboard widget dimensions with the intended EC2 instance.
Record the findings before making any changes.
STEP 8 – IDENTIFY THE ROOT CAUSE
Connect the symptom with the collected evidence.
Example:
- Symptom: Dashboard does not show the intended workload.
- Evidence: The widget is monitoring a different EC2 instance.
- Affected area: Dashboard metric configuration.
- Root cause: Incorrect instance dimension selected.
The objective is to identify the actual reason for the failure rather than simply saying that CloudWatch is not working.
STEP 9 – FIX THE ROOT CAUSE
Apply the smallest correction.
For the wrong-instance scenario:
- Open the incorrect dashboard widget.
- Edit its metric selection.
- Select the correct EC2 instance.
- Save the dashboard.
If the problem is the wrong Region, select the correct Region and intended metric.
Record what you changed and why.
STEP 10 – VERIFY RECOVERY
Repeat the original test.
Confirm:
- Correct instance selected.
- Expected metrics visible.
- Dashboard displaying the intended workload.
- Original problem resolved.
Compare the result with your initial working-state evidence.
A configuration change is not proof of recovery. The original requirement must work again.
After recovery, introduce the second controlled fault and repeat the troubleshooting process.
STEP 11 – CLEAN UP RESOURCES
Before finishing the lab:
- Remove unnecessary dashboard widgets or delete the lab dashboard.
- Stop or terminate lab EC2 resources when no longer required.
- Remove resources created only for this exercise.
- Check that no unnecessary chargeable resources remain.
Always practise in a dedicated lab environment.
🔍 QUICK TROUBLESHOOTING REFERENCE
Problem | What to check | Solution |
|---|---|---|
Dashboard shows no expected data | Region and instance | Select the correct resource |
Wrong instance information appears | Widget dimensions | Correct the instance selection |
Expected metric is missing | Metric availability | Check namespace, metric and dimensions |
One widget is missing | Dashboard configuration | Restore the required metric |
📝 EXAM CONNECTION
If the question describes... | Remember... |
|---|---|
Monitoring EC2 CPU utilization | CloudWatch Metrics |
Displaying multiple metrics together | CloudWatch Dashboards |
Identifying who performed an AWS API action | CloudTrail |
Collecting OS-level memory and logs | CloudWatch Agent |
Monitoring Prometheus-compatible metrics | Amazon Managed Service for Prometheus |
This demo focuses on EC2 metrics and dashboards. It does not configure every service or workload type included in the official skill.
✅ DAY 01 – WHAT HAVE WE LEARNED?
- Locate EC2 metrics in CloudWatch.
- Create a dashboard with useful workload metrics.
- Understand the purpose of metric names and dimensions.
- Verify monitoring data.
- Introduce a controlled monitoring fault.
- Collect evidence and identify the root cause.
- Fix the configuration and verify recovery.
- Clean up lab resources.
THE CLOUDOPS MINDSET
Don't just check whether an EC2 instance is running. Understand what it is doing, observe its behaviour, identify unusual changes and use evidence to find the actual problem.
Next: Skill 1.1.2 – CloudWatch Agent: Metrics and Logs.
☁️ Learn • Practise • Troubleshoot • Build • Grow
Series: My CloudOps Learning Journey (7 articles)
- 2AWS CloudOps Learning Journey | Skill 1.1.1: Monitoring and Logging AWS Workloads – CloudWatch Practical Demo This article
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article