The availability SLI panel shows `NaN` every night between 02:00 and 05:00.
BeginnerTroubleshootingPrometheus SLIs & Recording Rules
Answer
Likely causes → Zero traffic in the window: 0 / 0 is NaN in PromQL. Alerts comparing NaN > threshold are silently false.
Diagnose →
sum(rate(http_requests_total{job="checkout"}[5m]))
If it is 0 during those hours, the ratio is undefined.
Fix → For dashboards, display "no traffic" by using longer windows or wrapping with or vector(0) only for the error side. For alerting, keep NaN (no traffic means no failed users) but add a traffic-drop alert and synthetic probes so a total outage at night is still detected.
Prevent → Every SLO gets a companion traffic-drop or absent() alert, and synthetic checks for low-traffic periods.
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 ')'`.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.IntermediateThe SLI ratio is above 1.0 (or the latency "good" ratio is 1.07).Intermediate