Prometheus logs `vector contains metrics with the same labelset after applying rule labels` for your SLI recording rule.
AdvancedTroubleshootingPrometheus SLIs & Recording Rules
Answer
Likely causes → The rule's labels: block overwrites a label that distinguishes series in the result. For example, the expression returns one series per code, and the rule sets code: "all", so all results collapse to the same labelset.
Diagnose →
kubectl logs -n monitoring prometheus-monitoring-kube-prometheus-prometheus-0 -c prometheus | grep "same labelset"
Run the expression without the rule labels and inspect which labels vary.
Fix → Aggregate away the varying label in the expression (sum without (code) (...)) or choose a rule label name that does not clash.
Prevent → Make SLI recording rules return exactly one series per SLO (or per explicit dimension) and unit test them with promtool test rules.
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`.IntermediateYour 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