Blog & Insights

What should you monitor and alert on, and what should you ignore?

Alert on what a user or the business would notice, and on the few conditions that become an outage on a known schedule. Record everything else on dashboards and in logs, where it wakes nobody.

Alert on what a user or the business would notice, and on the few conditions that will become an outage on a known schedule, such as a disk filling or a certificate expiring. Record everything else on dashboards and in logs, where it is available when you need it and wakes nobody. An alert should reach a person only when that person has to do something.

The steps below are in order of priority. A team that does only the first two is better covered than one with hundreds of alerts on server metrics.

1. Start from what the business would notice

Sit down with the people who depend on each system and list the few things it does that someone would miss: a customer can place an order, a user can sign in, the nightly invoice run finishes, the feed to the ERP arrives.

For each one, set up a check that does the thing or watches for it from the outside: a scripted sign-in every few minutes, a test order, a count of invoices posted by 6 a.m.

These checks come first because they report a symptom, and a symptom is true whatever caused it. Google’s book on site reliability engineering makes the distinction in its chapter on monitoring: the symptom is what is broken, and the cause is why. A check on the symptom catches the failures you did not think of in advance.

2. Measure latency, traffic, errors and saturation for each service

The same chapter names four signals to measure for anything that serves users.

  • Latency: how long a request takes.
  • Traffic: how much demand is on the system.
  • Errors: the rate of requests that fail.
  • Saturation: how full the service is.

Alert on errors and latency at the level where users would feel them. Alert on traffic when it drops to nothing at a time of day when it never does. Alert on saturation early enough that someone can act before the limit is reached.

3. Add the conditions that fail on a schedule

Some failures can be seen coming days or weeks ahead. A check for each one takes little effort to set up and gives someone time to act.

  • Storage that is filling. Alert at a level that leaves days to act.
  • Anything with an expiry date. Certificates, domain names, licenses and API keys.
  • Backups. Alert when a backup did not complete.
  • Scheduled jobs. When a job does not run, nothing happens, so nothing reports an error. Alert on the absence of the record that says it finished.
  • Queues and integrations. A queue that keeps growing means something downstream has stopped.
  • Spending. A budget alert on the cloud account catches a runaway resource before the invoice does.

4. Decide who is told, and how fast

Sort every alert into one of three levels.

  • Page. Someone has to act now, whatever the hour. Keep this for users who are affected or are about to be.
  • Ticket. Someone has to act this week: the disk that will fill in ten days, the certificate that expires next month.
  • Record only. Nobody has to act. It goes to a dashboard or a log.

Google’s rule for the first level is that every page should be actionable and should need a person’s judgment. If the response to an alert is the same commands every time, automate the response and stop paging for it.

Give each page-level alert an owner and a first step, written in the alert itself or one link away. The person who receives it at 2 a.m. may not be the person who set it up.

5. Record the rest without alerting on it

These belong on a dashboard or in a log.

  • Processor or memory use that is high for a few minutes with no effect on users.
  • A single failed request, or a retry that succeeded.
  • A server that restarted while the service stayed up.
  • Anything in a test environment outside working hours.
  • Messages that say something worked. Hundreds of “backup succeeded” emails teach people to ignore the folder that will one day hold the failure.
  • Repeats of one cause. When a database is down, one alert is useful. Forty more from everything that depends on it bury it.

You still want all of this collected. When something does break, the history is how you find the cause.

6. Review the alerts every month

Go through each alert that fired and ask whether someone acted on it. If nobody did, change the threshold, move it down a level or delete it. Then go through each outage and ask which alert should have told you, and whether it did. Add the one that was missing.

This review keeps the list short. Without it, every incident adds alerts and nothing removes them.

Use the monitoring you already have, and name who watches what

If you run in Azure or AWS, the platform already collects most of what you need. Azure Monitor collects logs and metrics from the resources across Azure services, and Microsoft says its alerts notify you when issues are found in that data. AWS says many of its services send basic metrics to Amazon CloudWatch automatically, and its alarms watch those metrics against thresholds you set.

If an MSP runs part of the environment, its monitoring usually covers servers, the network and devices. The checks in step 1 are about the application, and someone has to be named for them too. Write down who watches what and who is called first.

What earlier detection changed at Dave & Buster’s and Main Event

Dave & Buster’s and Main Event had been finding out about outages when guests complained. After the work described in this case study, 95% of issues were caught before anyone was affected, and uptime held at 99.9% across more than 500 revenue-critical components.

A second piece of work covered what happens after an alert: detecting, routing and resolving an incident in under two hours, which cut revenue-impacting incidents by 85%.

Common questions

How many alerts is too many? There is no right number. The test is whether each alert that reached a person led to an action. If most of them did not, you have too many, and the important one will be missed among them.

Do we need to buy a monitoring product? Not to start. The cloud platforms include monitoring and alerting, and that is enough for the checks that matter most. Buy a product when you can name something you need that the built-in tools cannot do.

Should anyone be paged at night? Only for a problem that cannot wait until morning, and only if someone is expected to respond. Decide it system by system with the business, and write the decision down. An alert sent at night to a mailbox nobody reads until morning does not shorten the outage.

Who should set the thresholds? The business says what it would notice and how long it can wait. The people who run the system turn that into numbers, and they adjust the numbers after each alert that fired for no reason.

Does this cover security monitoring? No. Watching a network for intrusions is a separate job, usually done by a managed security provider with its own tools. This article is about whether systems are up and working. The two should share one list of who is called for what.

If you find out a system is down when a customer calls, a System Evaluation is the fixed-fee first step: an independent look at its infrastructure and DevOps, with a prioritized plan.

Related service: Cloud & Infrastructure

More like this, in your inbox. Subscribe for our latest thinking, resources, and events.

Get started

Want results like these?