All posts

How to know your website is down before your customers tell you

The worst way to learn your website is down is an email from a customer, or worse, silence and a day of no orders. Uptime monitoring exists so that you are the first to know. Here is what it checks, how often, and how to set it up so the alerts mean something.

Why you are the last to know

You rarely visit your own site the way a customer does. When you do, your browser may show a cached copy, and you are probably looking during working hours. Outages are often brief, at night, or only on one page, such as the checkout.

A monitor checks from outside, on a schedule, whether you are looking or not.

What to check

Start with the page that earns money or support: the homepage and the checkout or sign-up. A basic check asks for the page and expects a normal response. A keyword check also looks for a word that should be there, which catches the page that loads fine but shows an error message.

Then the things that fail on a date: SSL certificates and domain registrations expire and take the whole site down with them, so get a reminder weeks ahead. If you run scheduled jobs, such as backups or nightly imports, have each one report in when it finishes, so a job that silently stopped running raises an alert.

How often to check

The check interval is the longest an outage can go unnoticed. Every five minutes is fine for many sites; every minute matters when each minute down costs sales.

What matters as much is where the alert goes. Email is fine for a certificate expiring in three weeks. For the checkout being down, pick a channel you will see within minutes.

Avoid alerts that cry wolf

The internet has blips. A monitor that alerts on a single failed check from a single place will wake you up for nothing, and after a few false alarms you start ignoring it. Confirm a failure from a second location before alerting.

Google’s site reliability engineers put it simply: an alert should mean something is wrong for users and that someone needs to act. Monitor what your users would notice, such as the page not loading, rather than every internal number that might be a cause.

Tell your users

When something does break, a status page saves you dozens of identical emails. It tells customers you know and are working on it, and afterwards it is a record of how reliable you have been.

Sources

  1. Beyer B et al., eds. Site Reliability Engineering, chapter 6: Monitoring Distributed Systems. Google, 2016.
pingrobot app icon

An uptime monitor we make

pingrobot checks your websites, APIs, servers and cron jobs around the clock and emails you when one breaks, after trying again from a second location. The free plan covers 10 monitors. pingrobot is in English.

pingrobot product page