Prometheus refuses to load the rules file: `invalid recording rule name: slo-checkout-error-ratio-5m`.
BeginnerTroubleshootingPrometheus SLIs & Recording Rules
Answer
Likely causes → Recording rule names must be valid metric names: letters, digits, underscores and colons only. Hyphens are not allowed.
Diagnose →
promtool check rules slo-rules.yaml
Fix → Rename following the level:metric:operations convention: slo:sli_error:ratio_rate5m.
Prevent → Lint in CI with promtool check rules, and document the naming convention.
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