Many companies are frustrated that too many of their outages are detected first by customers, rather than by their own monitoring. They create more alerts, but it doesn’t seem to help. Often, the problem is that they’re still focusing on how their machines are performing, not what their users are experiencing.

Alerting on what’s easy vs. what’s useful

The first alerts most companies build are around infrastructure internals: CPU utilization, memory consumption, disk space, network bandwidth. There’s a simple reason for that: infrastructure metrics are easy to collect. You ask the operating system how busy the CPU is, and it tells you. Every monitoring system ships with infrastructure-metric collection out of the box.

If you stop there, though, you’re only alerting on what your servers can tell you about themselves, and while that might be useful diagnostic info, it’s actually not all that useful as a basis for alerts. It tends to lead to a lot of false alerts, which in turn leads to alert fatigue for your engineers.

User-experience metrics are harder to measure. To properly measure page load time from the user’s perspective, you have to instrument the client side, which for a web app means dealing with browser diversity, network variability, caching effects, and the gap between what your server thinks it sent and what the user actually saw. The infrastructure metrics are right there; the user-experience metrics take real engineering effort to build. While that might explain why teams start with infrastructure metrics, it’s not a good reason to keep paging on them once you know better.

Work metrics vs. resource metrics

Datadog’s Monitoring 101 tutorial draws a useful distinction between “work metrics” and “resource metrics.” Work metrics measure the output your system is producing for users: are requests succeeding, are they fast enough, are scheduled jobs finishing on time. Resource metrics measure the system’s internal state. Both matter, but they matter for different things.

A service running at 95% CPU utilization that’s responding to every request within its latency target isn’t having an incident. The CPU is high, but users are happy. High CPU utilization is often a goal; anything less means you’re paying for capacity you’re not using.

On the other hand, a service running at 5% CPU utilization that’s returning errors on half its requests is very much having an incident. The CPU metric is fine, but the user experience isn’t.

It’s tempting to try to make CPU alerts better by alerting on low CPU too, and then setting different thresholds for batch systems and interactive ones, and tuning them by time of day. But that’s whack-a-mole. In either scenario, the CPU number isn’t a useful basis for an alert (though it might be a useful diagnostic tool; it belongs on a dashboard, not in an alert).

What to actually page on

What tells you that users are affected are things like the success rate and latency of user requests. Those are work metrics, not resource metrics, and they measure things your users actually care about, so page on those metrics. CPU utilization (a resource metric) isn’t something your users care about.

Your specific thresholds will vary, but the kinds of alerts worth paging on look something like this:

  • Login success rate has dropped below 90%
  • Homepage latency has exceeded ten seconds for the past five minutes
  • User accounts are being locked at an unusual rate because of repeated payment failures
  • Payment processing error rate has spiked above 2%
  • Search result quality score (i.e., the percentage of queries returning relevant results) has fallen below threshold

These are all alerts where, if they fire, someone needs to look at them right now. The person who gets paged can immediately understand what users are experiencing and start investigating why. Compare that with “CPU on server-42 exceeded 90%”: the on-call engineer first has to spend ten minutes figuring out whether the alert actually matters and whether any users are affected.

Google’s SRE book popularized the “four golden signals” framework for this kind of user-focused monitoring: latency, traffic, errors, and saturation. It’s a solid starting point, but you’ll also need domain-specific signals: transaction success rates for a payment service, delivery latency for a messaging system, buffering events for a video platform, completion rates for a workflow engine, and so on.

The orientation matters more than the specific framework: are you measuring from the user’s perspective or from the infrastructure’s perspective? A team that’s tracking three user-focused metrics they chose themselves is in better shape than a team with an elaborate monitoring stack that’s still paging on CPU utilization.

Where resource metrics belong

Resource metrics are definitely useful, just not as a basis for paging someone. The pushback you’ll hear from infrastructure and capacity-planning teams is legitimate: if you don’t alert on disk space trending toward full, you’ll eventually have an outage that could have been prevented. That’s true, but this is where it pays to draw a distinction between “alerting” and “paging.”

An alert on disk space doesn’t always need to page someone; usually, it can open a ticket instead. The deciding factor is urgency. A disk that’s going to fill up in a week is a capacity-planning ticket, not a 3 AM page. The disk isn’t affecting users yet, and the remediation (i.e., provisioning more storage or cleaning up old data) isn’t the kind of work you do at 3 AM anyway. If you page on it, you’ve woken someone up to create a ticket they’ll work on during business hours. A disk that’s going to fill up in an hour, on the other hand, is worth a page, because users are about to be affected.

The same logic applies to predictive CPU alerts, memory trends, certificate expiration warnings, and similar leading indicators. They’re valuable as tickets, dashboards, and weekly review items. Unless the failure is imminent, put them on a dashboard and set a ticket to investigate during business hours. Page on the work metrics, and truly imminent resource failures.

Even on the dashboard, though, treat resource metrics with appropriate skepticism. Emergency medics have a saying: treat the patient, not the monitor. The heart rate might have dropped to zero because the patient is having a heart attack, or maybe it’s just because the monitoring wire got disconnected. Resource metrics have similar pitfalls: a CPU spike might be a container scheduling artifact, a sudden change in memory usage might be normal caching behavior rather than a leak. The numbers are useful context for diagnosing a problem you already know about, but they don’t tell you enough about user impact to be your primary detection mechanism.

Alert fatigue makes it worse

The real danger of paging on resource metrics isn’t just the wasted wake-ups. It’s what those wasted wake-ups do to your team’s response to every page, including the ones that matter.

If your on-call engineer gets paged ten times overnight and nine of those pages turn out to be CPU spikes that resolve on their own or disk space that won’t fill up for another week, it’s human nature to start treating pages as probably unimportant. When the tenth page is the real thing (login success has dropped to 50%), they may not respond with the urgency it deserves. Alert fatigue builds gradually through accumulated low-value alerts, and it’s basically invisible until something bad falls through the cracks.

One practice I saw work well at Google was making alert review a standing agenda item in the weekly ops review. SRE teams would review every alert that had paged the team during the prior week, and for each one they’d ask whether it was actionable, whether it led to real work that needed to be done immediately, and whether the threshold should be adjusted or the alert removed (or changed from paging to opening a ticket).

The practice implies something important about paging volume, namely that it should be low enough that reviewing every page from the past week is feasible in one portion of a meeting that has other topics to cover. If you can’t get through the list, you’re getting paged too often.

When your customers detect problems first

At Slack, we did find one easy-to-measure thing that was a good indicator of customer problems: the page view rate of our public status site. Whenever we saw a spike in folks checking the status site, we could be pretty sure that something was wrong, even if we hadn’t gotten any other alerts yet. It was a sure sign that we should go hunting, until we found what was driving users to our status site.

When users experience something unexpected, some of them will check your status page to see if the problem is on their end or yours. A spike means that a meaningful number of your users just asked that question at the same time. And that signal is especially valuable because it’s independent of your production monitoring. If your monitoring has a blind spot, your users’ collective behavior fills the gap.

Even with well-tuned work-metric alerting, you’ll likely still have blind spots: failure modes you didn’t anticipate, work metrics you didn’t think to track (yet), and so forth. When those gaps show up, they’ll usually show up through your customers: status page spikes, but also support tickets and social media mentions. So, besides monitoring for status page spikes, make sure your support and social media teams can escalate quickly to engineering. And when customers turn out to be your first source of detection for an incident, note it during the post-incident review and ask how automated monitoring could have caught it first. Each time that happens, it’s an opportunity to close a gap.

Where to start

Next time someone asks “why didn’t monitoring catch it?”, the answer shouldn’t be “we were watching the CPU.” A few things you can do right now:

  • Pick the few most important things your users do with your product, alert on whether those things are working, and make those the alerts that page.
  • Monitor your status page view rate.
  • Make sure your customer support and social media teams have a rapid escalation path to engineering for when they start hearing about the same problem from multiple users.