In Thanos, the request counts used for error-budget events are exactly double what the app logs show.
AdvancedTroubleshootingPrometheus SLIs & Recording Rules
Answer
Likely causes → Two Prometheus HA replicas scrape the same targets, and the query runs without deduplication, so sum() counts each series twice. Ratios look right (both sides doubled), but absolute budget numbers are wrong.
Diagnose →
count by (prometheus_replica) (http_requests_total{job="checkout"})
Fix → Enable deduplication in Thanos Query with --query.replica-label=prometheus_replica (and the dedup toggle in Grafana's data source), or aggregate max by replica before summing.
Prevent → Configure the replica label consistently and verify event counts against a second source when building SLO reports.
More on Prometheus SLIs & Recording Rules
You applied a `PrometheusRule` for your SLO, but `slo:sli_error:ratio_rate5m` returns nothing in Prometheus.Beginner`promtool check rules` fails with `could not parse expression: 1:72: parse error: unexpected right parenthesis ')'`.BeginnerThe availability SLI panel shows `NaN` every night between 02:00 and 05:00.BeginnerYour per-route SLI query fails with `found duplicate series for the match group {route="/api/checkout"} on the right hand-side of the operation`.IntermediatePrometheus logs `vector contains metrics with the same labelset after applying rule labels` for your SLI recording rule.AdvancedYour latency SLI using `le="0.3"` returns an empty result, but the histogram exists.Intermediate