The synthetic monitoring from the earlier posts in this series measures a few dozen pages across a set of sites every hour, from three probe locations. A page only counts as regressed if it's slower than its own seven-day median on two consecutive runs and at a majority of locations. That second condition exists because one location can have a bad hour: a slow network path, a noisy neighbour, a probe that's simply further from the CDN edge. Majority voting filters that out.

What majority voting can't filter out is all three locations having a bad hour together. They're separate regions, but they're the same cloud provider, and a cross-region network event moves them in lockstep. The majority then agrees — on a regression that happened to the measurement, not to any site.

TL;DR: A separate rule asks the question one level up: if more than half of all measured pages degrade in the same run, the likelier explanation is the measurement path, not dozens of independently run sites slowing down at once. It's routed as a measurement fault with its own text, separate from per-site alerts. Its first version counted by check group, and a group counted as degraded as soon as one of its four URLs was — 9 of 10 groups qualified on an ordinary day, so it would have fired from day one. Counting individual measurements instead, the share at the time of the fix was 18 %, and the rule went quiet. The rule deliberately compares raw values, not the smoothed ones the regression rules use, because a measurement fault has to show up in the run it happened in.

What Does This Rule Catch That the Others Don't?

The rule set has three kinds of questions, and each one has exactly one rule that owns it:

Question Rule Means
Did a page get slower? regression, majority of locations, two runs one site changed something
Did measurements stop arriving? check stopped reporting for two runs nothing is being watched
Did everything get slower at once? more than half of all pages degraded the measurement itself is suspect

The second and third are mirror images. One fires when nothing comes in; the other fires when everything comes in bad. Both are about the monitor, not about the sites, and both carry a severity that says so — the routing treats "the measurement is broken" differently from "a page got slower", because while the measurement is broken, the page alerts can't be trusted either.

The reasoning behind the threshold is an argument from independence. The monitored sites are run separately, deployed separately, cached separately. For more than half of them to slow down within the same hour, something they share has to have changed — and the thing they all share is the monitor.

Why Did the First Version Fire All the Time?

Because it asked "how many check groups are degraded?" instead of "how many measurements are?"

The monitoring groups several sites into one browser check (the vendor caps the number of checks, which is its own story). Each check visits about four pages. Counting by check made sense on paper — a check is the unit the vendor schedules and bills — so the first version computed, per check, whether any of its pages was above its median, and then the share of degraded checks:

# first version (paraphrased): one degraded URL makes the whole group degraded count(max by (job) (lcp > 1.5 * median_7d) > 0) / count(max by (job) (lcp)) > 0.5 

On an ordinary hour, some page in almost every group sits above its own median — that's what a median is. With four pages per group, the chance that at least one of them is noisy is high. Nine of ten groups qualified, 0.9 > 0.5, alert. Every hour.

It was found while it was firing, the first time the rules ran against real data instead of just validating. The query was syntactically fine, the labels were fine, and the rule did exactly what it said. It just answered a question nobody had meant to ask.

What Does It Count Now?

Individual measurements — every anchor page, every probe location — against their own seven-day median:

( count( probe_browser_web_vital_lcp{stage="anchor"} > 1.5 * quantile_over_time(0.5, probe_browser_web_vital_lcp{stage="anchor"}[7d]) ) / count(probe_browser_web_vital_lcp{stage="anchor"}) ) > 0.5 

When this version went live, 18 % of measurements were above their own median. Above 1.5× the median — the threshold the rule uses — hourly noise reached 5 of 41 pages in the measured period, nowhere near half. Per-page noise is independent: one page having a slow hour says nothing about the next. Half of them crossing the line at the same moment is a different kind of event, which is exactly what makes the threshold meaningful.

Two scoping decisions sit inside that selector:

  • Anchors only. Each site is measured on a few fixed pages (home page, section pages) plus a sample of articles that changes every hour. The sampled articles have no seven-day history of their own, so there's no median to deviate from. Only the fixed pages can vote.
  • Archived sites stay in. Everywhere else in the rule set, sites that haven't published in months are excluded — nobody is waiting on them, so nobody needs to be woken for them. Here they're the opposite: extra, independent witnesses. A network event slows them down with everything else, and a denominator of 41 separates "half of them" from chance better than one of 30.

Why Doesn't This Rule Smooth Like the Others?

The regression rules don't compare a single hourly measurement against the median. They compare a three-hour median, because one hourly value is too noisy to compare against anything — one front page swung between 200 and 1,852 ms from hour to hour with no trend at all, and an unsmoothed rule would have fired in 21 of 24 hours.

This rule uses the raw value anyway, on purpose. It exists to answer "did the measurement break in this run?" A fault that only becomes visible three hours later can no longer be connected to whatever caused it — a deploy of the check script, a configuration change, a provider incident. Smoothing would trade the rule's whole point for quiet.

It can afford the raw value where the regression rule can't, for the same independence reason as above. Smoothing protects against one series being noisy. This rule doesn't look at one series; it looks at whether many independent series moved together, and noise doesn't do that.

Like every rule in the set, it still needs two consecutive evaluations before it fires, and it treats "no data" as healthy — absence of data is the other rule's question, and one rule owns each question so the others can stay quiet about it.

Could a Test Have Caught the Counting Bug?

No, and that's the uncomfortable part. The rule set has since grown automated tests that check the generated rules without credentials — escape sequences in queries, error states, labels in alert texts. They would have caught three of the six rule bugs this monitoring shipped. This one belongs to the other three:

Bug Found by
a rule named the check group instead of the site test
\. in a PromQL string, three rules didn't parse test
error state left on the vendor default, so broken queries fired as alerts test
"more than half" counted groups, not measurements only measurement
the budget threshold sat above every measured value only measurement
or binds weaker than >, the query answered something else only measurement

The bottom three share a property: the query runs, the labels are right, and the answer is wrong. No check on the form of a rule finds that — not a syntax check, not a check on the generated JSON. Only running it against real time series and asking whether the result is plausible. "Fires every hour on an ordinary day" is not plausible, which is how this one was found — by looking at it while it was firing.

What's the Generalizable Lesson Here?

  • Majority voting across locations protects against one bad location. It does nothing against a fault all locations share — same provider, same script, same release. That needs a rule that looks across sites, not across probes.
  • "More than half of independent things changed at once" is evidence against the observer, not the observed. Write it down as its own alert, with its own text, routed as a measurement fault rather than a site problem.
  • Count the unit that's actually independent. Aggregating to a group with "any member degraded" turns ordinary noise into a near-certain signal; with four members per group, almost every group qualifies every hour.
  • Smoothing is a trade, not a default. Use it where one noisy series would otherwise fire; skip it where the point is to see a fault in the run it happened in.
  • The data you exclude elsewhere can be the best evidence here. Sites nobody needs alerts for are still independent witnesses to a broken measurement.
  • Tests on the form of a rule catch malformed rules. They can't catch a well-formed rule asking the wrong question. Run every rule against real data before trusting its silence — or its noise.