Watch the system, and wake a human only when something really needs them.
Monitoring means watching your system all the time. Alerting means telling a human when something needs their attention.
Monitoring collects data (metrics, logs, traces, health checks) and shows it. Alerting is a set of rules on top of that data: "if the error rate is above 5% for 5 minutes, tell the on-call engineer".
The hard part is not sending an alert. It is deciding which conditions deserve one. A noisy alert wastes people's time. A missing alert means users find the problem before you do.
| Rule | Example | Good for | Weak at |
|---|---|---|---|
| Static threshold | Error rate above 5% for 5 minutes | Simple, clear failures | Needs tuning, and misses slow burns |
| Rate of change / anomaly | Traffic is 50% lower than last week at this hour | Traffic drops, unusual patterns | False alarms on holidays and launches |
| Absence (dead man's switch) | No data from a service for 5 minutes | Silent crashes and broken collection | Needs a reliable heartbeat signal |
| SLO burn rate | Budget is being used 14 times too fast | Paging only when a promise is at risk | Needs an SLO and some maths |
| Synthetic check | The login-and-pay test failed twice in a row | End-to-end user view | Tests only the paths you scripted |
An SLO (service level objective) is a target, for example 99.9% of requests succeed over 30 days. The rest, 0.1%, is the error budget: how much failure you can afford. The burn rate says how fast you are spending it. A burn rate of 1 uses the budget in exactly the period. A burn rate of 14 uses it up in about two days.
| Level | Meaning | Response |
|---|---|---|
| Critical | Users are badly affected now | Page immediately, any time |
| Warning | Likely to become critical, or a small impact | Ticket or chat message, handled in work hours |
| Info | Good to know | Dashboard or log only |
30 minutes at 30% errors. Many users are hurt.
Model: a 99.9% SLO over 30 days gives an error budget of 43.2 full-outage minutes. A burn rate of 1x uses the budget in exactly 30 days. The burn-rate rule fires only when the last 5 minutes and the last 30 minutes both burn faster than the threshold. A real setup often uses a 1 hour window, so this demo is scaled down. The error rates are a fixed script, not real data.
| Term | Meaning in easy words |
|---|---|
| Monitoring | Continuously collecting and showing data about how a system behaves |
| Alert | A message sent to a human (or system) when a rule says something needs attention |
| Threshold | The limit in a rule, such as error rate above 5% |
| On-call | The person who is responsible for answering pages during a period |
| Alert fatigue | People ignore alerts because there are too many unhelpful ones |
| SLI | Service level indicator: a measured number, such as the share of successful requests |
| SLO | Service level objective: the target you set for an SLI, such as 99.9% |
| Error budget | The amount of failure the SLO allows, for example 0.1% of requests |
| Burn rate | How fast the error budget is being spent compared with the planned pace |
| Runbook | A step-by-step guide linked from an alert for how to check and fix it |
| False positive / negative | An alert with no real problem, or a real problem with no alert |
| Choice | We gain | We lose |
|---|---|---|
| Low threshold, short duration | Very fast detection | More false alarms and tired people |
| High threshold, long duration | Few false alarms | Slower detection, small incidents go unseen |
| Alert on causes (CPU, memory) | Early hints | Many alerts with no user impact |
| Alert on symptoms (errors, latency) | Every page matters to users | You find out only after users are affected |
| Static thresholds | Easy to explain | Needs constant tuning |
| Burn-rate alerts | Page only when the SLO is at risk | More set-up and a harder explanation |