Research · December 2026

I ran 1,233 popular Prometheus alert rules through an OpenTelemetry migration check

Here’s what breaks. One rule in four depends on a label OpenTelemetry renames or rebuilds, and almost none of them would tell you.

By Stephen Ternes · Open data on GitHub

24.7%of rules filter or group on a label OTel renames or rebuilds (305)
25.5%would go quiet, not loud, if a referenced name changed (314)
13.2%hide a unit conversion inside the query (163)
0of 1,191 thresholds record their reason in an annotation

OpenTelemetry migration plans tend to focus on the collector, the backend and the bill. Alert rules get less attention, and that is where a migration quietly goes wrong. A dashboard that breaks is obvious. An alert rule that breaks just stops firing, and a rule that never fires looks exactly like a healthy system.

So I took one of the most copied sets of alert rules on the internet and ran it through a migration check to see how much of it depends on things OpenTelemetry changes.

The corpus and the tool

The rules come from awesome-prometheus-alerts by Samuel Berthe and contributors, licensed CC BY 4.0: ready-made rules for node_exporter, Kubernetes, databases, brokers, proxies and more. I used the generated rule files at commit bd0f445, 1,233 rules across 104 services. The statistics are my own analysis, the example rules are quoted unchanged, and the project does not endorse this article.

The check is alert-archaeology, a free, offline Python tool I wrote for the first step of a migration: put every alert in one inventory and flag what is likely to break. It parsed all 1,233 rules with no failures.

Two caveats. These are templates, so none has an owner label; that is expected for a library and I’m not counting it. And every flag is a heuristic. I checked 10 random flagged rules by hand: 7 of 24 flags were wrong, 5 of them duplicate flags, which mean little in a library that ships warning and critical pairs on purpose. Leaving duplicates out, 2 of 19 were wrong. The method and commands are published with the data.

What breaks

1. One rule in four depends on a label OpenTelemetry renames or rebuilds

305 rules (24.7%) filter or group on labels such as job (170 rules), instance (131), pod (37) or namespace (34). In OpenTelemetry these are resource attributes: service.name, service.instance.id, k8s.pod.name, k8s.namespace.name. Even where the key survives, the value can change. Prometheus’s own OTLP ingestion builds job from service.namespace/service.name. Take this rule:

avg_over_time(probe_success{job="blackbox-exporter"}[30d]) * 100 < 99.9

If the data arrives as job="monitoring/blackbox-exporter", the selector matches nothing. No error, no alert.

2. Grouped alerts lose their “where”

A rule like sum by (namespace, pod) (kube_pod_status_phase{phase=~"Pending|Unknown|Failed"}) > 0 still fires if those labels disappear, but as one series. The page arrives without the pod or namespace that someone needs at 3 a.m.

3. 13% of rules hide a unit conversion in the query

163 rules (13.2%) have a unit trap, mostly a * 100 that turns a ratio into a percent. That is fine until someone rewrites the rule on an OpenTelemetry *.utilization metric, which is a 0 to 1 ratio, drops the * 100 and keeps the threshold:

avg without (cpu) (rate(node_cpu_seconds_total{mode="steal"}[5m])) * 100 > 10

On system.cpu.utilization, 10 becomes 0.1. Left at 10, the rule can never fire.

4. up fails in both directions

27 rules use up, the series the Prometheus scraper creates for each target. Keep scraping, including through the OpenTelemetry Collector’s Prometheus receiver, and it stays. Switch services to pushing OTLP and it is gone. Rules like up{job="clickhouse"} == 0 go silent. The 12 rules that use absent(up{...}) fire permanently. Neither tells you whether the service is down.

5. A quarter of rules would go quiet rather than complain

314 rules (25.5%) reference a name the tool expects to change and have no check for missing data. Only 16 rules in the whole library use absent(), and 12 of those check up. When a metric is renamed, these rules don’t error. They just stop matching.

6. The reasons behind thresholds live in comments

1,191 rules compare against a number and none records why in an annotation. The authors did write reasons: 356 rules have a comment such as “Threshold of 0.05/s avoids firing on transient single-event spikes.” Comments are lost when rules are loaded into Prometheus or a Kubernetes PrometheusRule, or exported from an API, which is where most migrations start. Put the reason in an annotation and it travels with the rule.

7. The metric-name number is a floor

Only 61 rules (4.9%) matched the tool’s small OpenTelemetry mapping table. The other 95% aren’t safe, just unchecked: if you replace an exporter with an OpenTelemetry receiver, most of its metric names change. Even among the 43 node_exporter rules, the table caught only 18.

What this means in practice

Whether a rule breaks depends on how you collect after the move. Keep your exporters and scrape them with the Collector, and most metric names survive; the risk sits in labels and values. Replace exporters with OpenTelemetry receivers, and every rule on those metrics needs a rewrite. Either way, the failure is quiet. After 20+ years in enterprise monitoring, from Nimsoft/UIM to AppDynamics at Cisco and a VA command center watching more than 100,000 endpoints, I treat any migrated alert that hasn’t been shown to fire as unproven.

The run also turned up problems in my own tool. Upper-case PromQL keywords (BY, ON) hide labels from the label check in 15 rules, and in 39 rules it read a > 0 guard clause as the threshold. Both are written up, with a repro, in the method notes.

Run it on your own rules

alert-archaeology is MIT licensed, needs only Python 3.9+, and never connects to anything. Point it at your rule files and, if you have one, your Alertmanager config:

python alert_archaeology.py --prometheus rules/ --alertmanager alertmanager.yml --json

It also reads Grafana and Datadog exports and a plain CSV for older tools. You get one inventory, every flag with its reason, questions for each rule’s owner, and the ten alerts to prove first. Then do the part no tool can: make each critical alert fire on the new platform and reach a person before you switch the old one off.

Data, method and tool

Alert rules quoted from awesome-prometheus-alerts by Samuel Berthe and contributors, licensed CC BY 4.0. Statistics are derived from commit bd0f445; example rules are quoted unchanged. This analysis is independent and not endorsed by that project.

Know before you cut over.

Thirty minutes. Your stack, your date, your critical alerts.

Book a Cutover Readiness Call