20 Cloud Monitoring Alerts Explained for Freshers
A beginner's guide to 20 cloud monitoring alerts with the exact AWS CloudWatch metric names and Azure and Google Cloud equivalents.
A cloud monitoring alert is a rule that watches a metric or event, compares it with a threshold for a set time, and notifies someone when the condition holds. Freshers should learn twenty basic alerts across compute, load balancers, databases, serverless, queues, cost and security, and know which cloud metric each one uses in AWS, Azure and Google Cloud.
This is a beginner's guide. It explains the vocabulary (metric, threshold, period, alarm state) and then walks through twenty alerts using the names you will see in the cloud consoles. For a shorter, tool-neutral list aimed at working teams, with Prometheus rules, routing and severity models, read our keeper post 10 monitoring alerts every DevOps team should configure. The two posts are meant to be read together.
Key takeaways
- An alert has five parts: a metric or event, a statistic, a threshold, an evaluation period and a notification target.
- Every cloud has its own service: Amazon CloudWatch alarms, Azure Monitor alert rules and Google Cloud Monitoring alerting policies.
- Some metrics are not collected by default. EC2 memory and disk usage need the CloudWatch agent; Azure and Google Cloud also need an agent for guest OS metrics.
- Security and cost alerts are as important as performance ones, and freshers often forget them.
- Start with fewer alerts that someone will act on. A noisy alert teaches people to ignore all alerts.
Alert vocabulary for freshers
| Term | Meaning | Example |
|---|---|---|
| Metric | A number measured over time | CPUUtilization of an EC2 instance |
| Statistic | How data points are combined in a period | Average, Maximum, Sum, p99 |
| Period | Length of each data point window | 60 seconds, 5 minutes |
| Threshold | Value that counts as a breach | Greater than 85 percent |
| Evaluation periods | How many periods must breach before firing | 3 out of 3 periods |
| State | Current alarm status | CloudWatch: OK, ALARM, INSUFFICIENT_DATA |
| Action or action group | What happens when it fires | SNS topic, email, PagerDuty, auto scaling |
| Event-based alert | Fires on an event, not a number | Root user login, GuardDuty finding |
The CloudWatch alarms documentation explains how period, evaluation periods and "datapoints to alarm" work together. The idea is the same in other clouds: one bad minute should not wake anyone, a sustained problem should.
The 20 alerts at a glance
| # | Alert | AWS metric or source | Azure / Google Cloud equivalent |
|---|---|---|---|
| 1 | High CPU on a VM | EC2 CPUUtilization | Percentage CPU / compute instance CPU utilization |
| 2 | VM status check failed | StatusCheckFailed_System, StatusCheckFailed_Instance | VM availability metric / uptime check |
| 3 | High memory on a VM | mem_used_percent (CloudWatch agent) | Guest memory via Azure Monitor Agent / Ops Agent |
| 4 | Disk almost full | disk_used_percent (CloudWatch agent) | Guest disk via agent |
| 5 | Load balancer 5xx errors | ALB HTTPCode_Target_5XX_Count, HTTPCode_ELB_5XX_Count | Application Gateway failed requests / LB 5xx count |
| 6 | Slow responses | ALB TargetResponseTime | Backend response time / LB latency |
| 7 | Unhealthy targets | ALB UnHealthyHostCount | Unhealthy host count / backend health |
| 8 | Website down | Route 53 health check or CloudWatch Synthetics | Availability test / uptime check |
| 9 | Database CPU high | RDS CPUUtilization | Azure SQL / Cloud SQL CPU |
| 10 | Database storage low | RDS FreeStorageSpace | Storage percent / disk utilization |
| 11 | Too many DB connections | RDS DatabaseConnections | Connections metric |
| 12 | Replica lag | RDS ReplicaLag | Replication lag metric |
| 13 | Serverless function errors | Lambda Errors | Function failures / execution count by status |
| 14 | Serverless throttling | Lambda Throttles | Throttled or rejected executions |
| 15 | Messages waiting too long | SQS ApproximateAgeOfOldestMessage | Service Bus / Pub/Sub oldest unacked message age |
| 16 | Container restarts | Container Insights pod restarts | Container Insights / GKE restart count |
| 17 | TLS certificate expiring | ACM DaysToExpiry | Key Vault certificate near expiry / uptime check SSL expiry |
| 18 | Spend above budget | AWS Budgets, Billing EstimatedCharges | Cost Management budgets / Cloud Billing budgets |
| 19 | Root or admin sign-in | CloudTrail event via EventBridge | Activity log / Cloud Audit Logs alert |
| 20 | Threat detection finding | GuardDuty finding via EventBridge | Microsoft Defender for Cloud / Security Command Center |
Metric names are given exactly for AWS because CloudWatch uses fixed names. Azure and Google Cloud names vary by resource type, so the third column describes the equivalent; check the metric picker in the console for the exact label.
Compute alerts
1. High CPU on a virtual machine
Fires when average CPU stays above a level, often 80 to 90 percent, for several minutes. On its own high CPU is not always a problem; a batch job may use 100 percent on purpose. Treat it as a warning and pair it with a latency alert. You can create one from the AWS CLI:
aws cloudwatch put-metric-alarm \
--alarm-name web-1-high-cpu \
--namespace AWS/EC2 --metric-name CPUUtilization \
--dimensions Name=InstanceId,Value=i-0123456789abcdef0 \
--statistic Average --period 300 \
--evaluation-periods 3 --threshold 85 \
--comparison-operator GreaterThanThreshold \
--alarm-actions arn:aws:sns:ap-south-1:111122223333:ops-alerts
The instance ID, account number and topic are placeholders. The full option list is in the put-metric-alarm reference.
2. VM status check failed
EC2 runs system status checks (problems with the underlying AWS host) and instance status checks (problems inside your instance, such as a full disk or bad network configuration). StatusCheckFailed_System alarms can trigger an automatic recover action. See EC2 status checks.
3. High memory on a virtual machine
A common fresher surprise: EC2 does not report memory usage by default, because the hypervisor cannot see inside the guest OS. Install the CloudWatch agent to publish mem_used_percent in the CWAgent namespace. Azure uses the Azure Monitor Agent and Google Cloud uses the Ops Agent for the same purpose.
4. Disk almost full
Also needs the agent (disk_used_percent). A full root disk stops logging, databases and package updates. Alert at a level that leaves time to act, such as 80 percent, and fix the cause: log rotation, old images or growing data.
Load balancer and availability alerts
5. Load balancer 5xx errors
For an Application Load Balancer, HTTPCode_Target_5XX_Count counts server errors returned by your app, while HTTPCode_ELB_5XX_Count counts errors generated by the load balancer itself (for example when no healthy target is available). Comparing the two tells you whether the app or the routing layer is failing. Better still, alert on the error percentage using CloudWatch metric math. Names are listed in ALB CloudWatch metrics.
6. Slow responses
TargetResponseTime is the time from the request leaving the load balancer to the response headers coming back. Use the p95 or p99 statistic, not average, because averages hide the slow requests users complain about.
7. Unhealthy targets
UnHealthyHostCount rises when targets fail health checks. If it equals the number of targets, the service is down. Alert when it is above zero for several minutes.
8. Website down
An external check calls your URL from outside your network, which catches DNS, certificate and firewall problems that internal metrics miss. AWS offers Route 53 health checks and CloudWatch Synthetics canaries; Azure has availability tests in Application Insights; Google Cloud has uptime checks.
Database alerts
9. Database CPU high
Sustained high CPU on RDS, Azure SQL or Cloud SQL usually means an expensive query, a missing index or more traffic. It is a warning to investigate with Performance Insights or the query store, rarely a reason to wake someone at night.
10. Database storage low
RDS FreeStorageSpace is in bytes. Running out can make the database unavailable, so this one deserves a page. RDS storage autoscaling can help, but you should still be told when it happens.
11. Too many database connections
DatabaseConnections close to the engine's maximum means new connections will be refused. Causes include connection leaks and missing pooling, especially from serverless functions; RDS Proxy is one fix on AWS.
12. Replica lag
ReplicaLag (seconds) shows how far a read replica is behind. Users reading from a lagging replica see stale data, and failover to it could lose recent writes.
Serverless, queue and container alerts
13. Serverless function errors
Lambda Errors counts invocations that ended in a function error. Alert on the error rate (Errors divided by Invocations), not the raw count, so the threshold works at any traffic level. See Lambda metrics.
14. Serverless throttling
Throttles counts invocations rejected because of concurrency limits. Throttled synchronous calls fail for the user, so any sustained throttling needs attention.
15. Messages waiting too long
SQS ApproximateAgeOfOldestMessage shows how long the oldest message has waited. It catches stuck or slow consumers better than queue length, because a long queue that is moving fast may be fine.
16. Container restarts
On EKS, AKS or GKE, frequent pod restarts point at crashing apps, failed liveness probes or memory limits. Container Insights (AWS and Azure) and GKE's built-in metrics expose restart counts. Our post on common Kubernetes pod failures helps you read the cause.
Certificate, cost and security alerts
17. TLS certificate expiring
Expired certificates cause outages that are entirely preventable. AWS Certificate Manager publishes a DaysToExpiry metric, and ACM also sends expiry events through EventBridge. Imported certificates do not renew automatically, so alert on them well ahead, such as 30 days.
18. Spend above budget
Freshers practising on a personal account should set this up first. AWS Budgets sends alerts on actual or forecast spend. The older Billing EstimatedCharges metric is only published in the us-east-1 Region and must be enabled in billing preferences. Azure Cost Management and Google Cloud Billing both offer budgets with alert thresholds.
19. Root or admin sign-in
The AWS root user should almost never be used. An EventBridge rule matching CloudTrail sign-in events for the root identity can notify you on every use. The CIS AWS Foundations Benchmark also recommends alerts for IAM policy changes, security group changes and console sign-ins without MFA. Azure Activity Log alerts and Google Cloud log-based alerts cover the same ground.
20. Threat detection finding
Amazon GuardDuty analyses logs for suspicious activity and sends findings to EventBridge, where a rule can forward high-severity findings to your alert channel. Microsoft Defender for Cloud and Google Security Command Center fill the same role. These alerts are for defence: they tell you to investigate and contain, following your incident process.
Creating the same CPU alert in Azure
The Azure CLI creates metric alert rules with az monitor metrics alert create. The condition is written as a short expression:
az monitor metrics alert create \
--name web-1-high-cpu \
--resource-group demo-rg \
--scopes /subscriptions/<subscription-id>/resourceGroups/demo-rg/providers/Microsoft.Compute/virtualMachines/web-1 \
--condition "avg Percentage CPU > 85" \
--window-size 15m \
--evaluation-frequency 5m \
--action ops-action-group
The action group decides who is notified (email, SMS, webhook, ITSM tool). Microsoft documents every option in the az monitor metrics alert reference. In Google Cloud, most freshers create alerting policies in the console under Monitoring, Alerting, choosing a metric, a condition and a notification channel; the same policy can later be exported as JSON and kept in Git.
Alerting on a rate with metric math
Raw counts make poor thresholds. Five Lambda errors an hour is serious for a function called ten times and noise for one called a million times. CloudWatch metric math lets an alarm watch a calculated percentage. In the console you add the Errors and Invocations metrics (both with the Sum statistic), then add an expression such as:
100 * (errors / invocations)
where errors and invocations are the IDs you gave the two metrics. The alarm then fires when the error percentage, not the count, crosses your threshold. The same approach works for ALB 5xx errors divided by RequestCount. See using metric math.
Static thresholds, anomaly detection and composite alarms
| Type | How it decides | Good for | Watch out for |
|---|---|---|---|
| Static threshold | Value above or below a fixed number | Disk full, certificate expiry, errors | Needs tuning as traffic grows |
| Anomaly detection | Value outside a band learned from history | Traffic with daily or weekly patterns | Needs enough history; can learn bad behaviour as normal |
| Composite alarm | Combines other alarms with AND, OR, NOT | Paging only when several signals agree | More moving parts to understand |
CloudWatch supports all three: anomaly detection builds an expected band, and composite alarms let you page only when, for example, high latency and high 5xx errors happen together. Azure Monitor offers dynamic thresholds for a similar purpose. As a fresher, start with static thresholds; they are easy to explain and test.
Warning or page? A simple severity guide
| Severity | Meaning | Where it goes | Examples from this list |
|---|---|---|---|
| Critical (page) | Users are affected now or will be very soon | On-call phone | Website down, all targets unhealthy, DB storage nearly full, high 5xx rate |
| Warning | Needs action within working hours | Team chat channel or ticket | High CPU, replica lag, certificate expiring in 30 days, budget at 80 percent |
| Security | Possible compromise or risky change | Security channel and on-call | Root sign-in, high-severity GuardDuty finding |
| Info | Useful record, no action | Dashboard or log only | Scaling events, successful deployments |
Teams decide their own levels, but the principle holds everywhere: only page a human when a human must act now.
What a good alert message contains
An alert that just says "ALARM: web-1-high-cpu" forces the responder to start from zero. A useful notification answers five questions:
- What is wrong, in plain words? ("Checkout API returning more than 5 percent errors.")
- Where? (Account, region, service, resource ID.)
- Since when, and how bad? (Current value and threshold.)
- Where to look first? (Link to the dashboard and logs.)
- What to do? (Link to a short runbook.)
CloudWatch alarms have a description field, and Azure and Google Cloud alert rules have similar fields for documentation. Fill them in. Our keeper post 10 monitoring alerts every DevOps team should configure includes an annotation template you can copy.
Keeping alerts in code
Alarms clicked together in a console are hard to review and easy to lose. Once you understand them, define them as code so they are versioned and recreated with the infrastructure. A Terraform example for the CPU alarm:
resource "aws_cloudwatch_metric_alarm" "web_high_cpu" {
alarm_name = "web-1-high-cpu"
namespace = "AWS/EC2"
metric_name = "CPUUtilization"
statistic = "Average"
period = 300
evaluation_periods = 3
threshold = 85
comparison_operator = "GreaterThanThreshold"
dimensions = {
InstanceId = aws_instance.web.id
}
alarm_actions = [aws_sns_topic.ops_alerts.arn]
}
The resource is documented in the Terraform AWS provider registry. CloudFormation, Bicep and Google Cloud's Terraform provider support the same pattern.
Common fresher mistakes
| Mistake | Result | Better habit |
|---|---|---|
| Alerting on one data point | Constant false alarms | Require several breaching periods |
| Using Average for latency | Slow requests hidden | Use p95 or p99 |
| Expecting EC2 memory metrics by default | No data, alarm stuck in INSUFFICIENT_DATA | Install the agent |
| Raw counts instead of rates | Thresholds break when traffic grows | Use metric math for percentages |
| Every alert goes to everyone | People mute the channel | Route by severity and owner |
| No cost alert on a practice account | Surprise bill | Budget alert on day one |
How to practise
- Create a budget alert on your practice account.
- Launch a small instance, create a CPU alarm with an SNS email target, then load the CPU with a stress tool and watch the state change from OK to ALARM.
- Install the CloudWatch agent and add memory and disk alarms.
- Put the instance behind an ALB, stop the app, and watch UnHealthyHostCount and the 5xx alarms fire.
- Write a short runbook line for each alert: what it means and the first command to run.
Our guides to monitoring EC2, RDS and Lambda with CloudWatch and custom CloudWatch dashboards continue from here, and DevOps roles explained for freshers shows where monitoring fits in a job. These labs are part of our AWS Solutions Architect Associate training, in Kharadi, Pune and live online.
Frequently asked questions
What is a cloud monitoring alert?
A rule that watches a metric or event and notifies a person or system when a condition holds for a set time, such as CPU above 85 percent for 15 minutes.
What is the difference between a metric alarm and an event alert?
A metric alarm compares a number with a threshold over time. An event alert fires on a single event, such as a root user sign-in or a GuardDuty finding.
Why does my EC2 instance not show memory usage?
EC2 does not collect guest memory by default. Install the CloudWatch agent, which publishes mem_used_percent in the CWAgent namespace.
What does INSUFFICIENT_DATA mean in CloudWatch?
The alarm does not have enough data to decide, often because the metric is not being published, the alarm just started, or the resource is stopped.
Which alerts should a beginner set up first?
A budget alert, a website-down check, load balancer 5xx errors, unhealthy targets and disk almost full. They catch real outages and surprise bills.
How do I avoid too many false alarms?
Require several breaching periods, alert on rates and percentiles instead of raw counts and averages, and send warnings to a channel rather than paging.
Do Azure and Google Cloud have the same alerts?
Yes in concept. Azure Monitor alert rules and Google Cloud Monitoring alerting policies cover the same areas with different metric names.
References
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0