The target shows DOWN with `server returned HTTP status 404 Not Found`.
BeginnerTroubleshootingPrometheus SLIs & Recording Rules
Answer
Likely causes → Wrong metrics path (the app serves /actuator/prometheus or /stats/prometheus, not /metrics), wrong port (scraping the app port instead of a separate metrics port), or metrics disabled in this build.
Diagnose →
kubectl -n shop port-forward svc/checkout 8080:8080 &
curl -s -o /dev/null -w '%{http_code}\n' localhost:8080/metrics
Fix → Set path: and port: correctly in the ServiceMonitor endpoint.
Prevent → Standardize the metrics path and port across services in the platform template.
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