Your new ServiceMonitor is applied, but the service never appears under Status → Targets.
BeginnerTroubleshootingPrometheus SLIs & Recording Rules
Answer
Likely causes → ServiceMonitor not selected by the Prometheus resource (labels or namespace selector), its selector.matchLabels does not match the Service labels, or endpoints.port refers to a port name the Service does not define.
Diagnose →
kubectl get servicemonitor -n shop checkout -o yaml | yq '.spec'
kubectl get svc -n shop checkout -o yaml | yq '.metadata.labels, .spec.ports'
kubectl get prometheus -n monitoring -o jsonpath='{.items[0].spec.serviceMonitorSelector}'
Fix → Match labels exactly, use the named Service port (port: http), and add the release label or set serviceMonitorSelectorNilUsesHelmValues=false.
Prevent → Ship a ServiceMonitor in the service Helm chart template, tested in CI against a kind cluster.
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