In July I wrote about Ithildin, a tool that turns an SLO into Prometheus rules and a Grafana dashboard. Near the end of that post I wrote: “If you have ever manually written a multi-burn-rate alert from scratch, you know how easy it is to get the math slightly wrong and not notice for weeks.”
For about 16 weeks, half of the alerts Ithildin generated could never fire. Not wrong maths, something simpler. And every check I knew how to run said the rules were fine.
why it matters Link to heading
Ithildin generates four alerts per SLO, following the multi-burn-rate approach from the Google SRE Workbook. Two are critical: fast, heavy error spikes that should wake someone up. Two are warnings: slow leaks that eat your error budget over days, the kind you want as a ticket before they turn into an outage.
Warnings are the ones nobody notices when they’re missing. A silent critical alert gets found the first time something breaks badly. A silent warning just looks like a quiet week.
what was there before Link to heading
Each alert compares the error ratio over two windows, a short one and a long one. Both have to be over the threshold:
| Alert | Short window | Long window |
|---|---|---|
| CriticalFast | 5m | 1h |
| CriticalSlow | 30m | 6h |
| WarningFast | 1h | 1d |
| WarningSlow | 6h | 3d |
The alerts don’t calculate those ratios themselves. They read recording rules, which pre-compute each ratio and store it as a new series, like job:slo_errors:rate1h.
The July version generated recording rules for 5m, 30m, 1h and 6h. That’s it. Nothing ever produced rate1d or rate3d, and both warning alerts depended on them.
the experiment Link to heading
I checked out the July commit, generated rules for a checkout service with a 99.9% SLO, and did the same with today’s version. Then I fed both into promtool, the tool that ships with Prometheus.
First, the check most people run in CI:
$ promtool check rules recording.yaml alerting.yaml
Checking recording.yaml
SUCCESS: 4 rules found
Checking alerting.yaml
SUCCESS: 4 rules found
Then a rule test. promtool test rules replays fake time series through your rules and tells you which alerts fire. I gave it a slow leak: 0.4% of requests failing, steadily, for six hours. With a 0.1% error budget that’s 4x the sustainable rate. The whole month’s budget would be gone in about a week. Exactly what the warnings are for.
The July rules:
FAILED:
alertname: checkoutErrorBudgetWarningFast, time: 6h,
exp:[ ... severity="warning" ... ],
got:[]
alertname: checkoutErrorBudgetWarningSlow, time: 6h,
exp:[ ... severity="warning" ... ],
got:[]
got:[]. Nothing at all after six hours of burning through the budget.
Today’s rules, same traffic:
alertname: CheckoutAvailabilityErrorBudgetWarningFast, time: 6h,
got:[ ...
summary="checkout availability SLO is burning error budget too fast (WarningFast)"
]
alertname: CheckoutAvailabilityErrorBudgetWarningSlow, time: 6h,
got:[ ...
summary="checkout availability SLO is burning error budget too fast (WarningSlow)"
]
Both warnings fire, and neither critical alert does, which is right for a slow leak.
I let the same leak run for eight days, checking which alerts were firing every five minutes for the first six hours and every six hours after that:

Chart generated with Claude from promtool test runs.
The budget runs out on day 7.5, and the July rules never say a word. (The current version’s bars stop at day 6 only because that’s where my test ended. Past that, the 30-day window rule asks for more samples than promtool’s test runner allows in one query.)
how slow is too slow? Link to heading
Then I tried a range of leak speeds, from 1.5x the sustainable rate up to 30x, and recorded which alerts fired at any point in the first 12 hours:
| Leak speed | Budget gone in | July rules | Current rules |
|---|---|---|---|
| 1.5x | 20 days | nothing | WarningSlow |
| 2x | 15 days | nothing | WarningSlow |
| 4x | 7.5 days | nothing | WarningFast, WarningSlow |
| 8x | 3.75 days | CriticalSlow | CriticalSlow, both warnings |
| 15x | 2 days | CriticalFast, CriticalSlow | all four |
| 30x | 1 day | CriticalFast, CriticalSlow | all four |
Table generated with Claude from promtool test runs.
The July version only woke up once the leak was fast enough to trip a critical alert, which is 6x by design (I measured 4x as silent and 8x as firing). Anything slower than that could eat the entire month’s budget without a single alert. At 5x, that’s six days of silence.
why the check said SUCCESS Link to heading
This is the part I didn’t expect. Here’s one of the July warning alerts:
job:slo_errors:rate1h{service="checkout"} > 0.003000
and
job:slo_errors:rate1d{service="checkout"} > 0.003000
That’s valid PromQL, so check rules is happy. It checks syntax, not whether the series exist. And in Prometheus, a series nobody created isn’t an error, it’s just empty. “Empty and anything” is empty. So the alert is evaluated over and over, gets nothing back each time, and stays quiet forever.
A rules file can pass every static check and still never fire. The only way to catch it is to run the rules against data.
what else I found while I was in there Link to heading
Once I started testing properly, a few more things fell out:
- The form asked for an error budget window (7, 30 or 90 days) and then ignored it.
- Service names went straight into metric names, so
payment-api(the placeholder in my own form) producedpayment-api_requests_total, which isn’t valid PromQL. - The “SLO compliance” gauge on the dashboard showed the last 5 minutes, not the last 30 days.
- It only understood one metric naming convention,
<service>_requests_total, which almost nobody uses.
what I rebuilt Link to heading
The rewrite is mostly about not trusting the output without running it:
- Rule tests in the repo.
testdata/promtool/run.shgenerates rules and runs them throughpromtool test ruleswith fake traffic, for an availability and a latency SLO. If an alert stops firing, the test fails. - Recording rules for every window the alerts read, and a Go test that fails if an alert ever reads a window that isn’t recorded.
- Latency SLOs from histograms, like “99% of requests under 300ms”. My histograms post is why this mattered to me.
Plus the things on that list: the window is used (and cheap to compute), presets for common metric names, and a cleaner dashboard. The README has the rest.
things I’m still not sure about Link to heading
- The 30-day ratio is built from recorded 5-minute rates, so it only covers time since the rules were loaded. For the first month it reports on less than a month. I think that’s acceptable, but I’m not certain.
- A latency SLO needs your threshold to be one of the histogram’s bucket boundaries. If it isn’t, the rules return nothing, which is the same silent failure as the 1d/3d bug. Ithildin can’t detect it because it never sees your data.
- Should Ithildin generate a
promtooltest alongside every set of rules it produces, so users get the same safety net I have?
If you’ve hit a silent alert like this in your own setup, I’d like to hear how you found it.