Alerting

Detecting latency anomalies (when slow is the new down)

A service that responds in eight seconds is not up in any sense your customers care about. Here is how we catch that.

← All articles

Averages hide the problem

An average response time of 300ms sounds healthy. If the P95 is 2.4 seconds, one in twenty of your users is having a bad time and the average is actively concealing it. Percentiles are the only honest way to look at latency.

How the baseline works

For each monitor, and separately for each checking location, we compute the P95 response time for each of the last seven complete days. Today is excluded — a partial day skews the mean. That gives us a baseline: a mean and a standard deviation of what "normal" looks like from that location.

Every fifteen minutes we measure the current P95 over the last hour and compare. If it sits more than three standard deviations above the baseline mean, that is an anomaly.

Why it does not cry wolf

A pure statistical threshold would be unusable. Three guards make it practical:

Why per-location matters

If London degrades while New York stays fast, that is a regional CDN or routing problem. A tool that averages its locations together sees a mild global slowdown and says nothing useful. Because we baseline each location independently, the alert names the location, and the difference is obvious.

Turning it on

Anomaly detection is available on Pro and Enterprise. Enable it per monitor under Alerting when adding or editing a monitor. It needs at least four days of history before it will produce a baseline it trusts.