slok / sloth

🦥 Easy and simple Prometheus SLO (service level objectives) generator
https://sloth.dev
Apache License 2.0
2.05k stars 165 forks source link

Sloth pod is not showing SLO metrics #532

Open Wilhelamm opened 7 months ago

Wilhelamm commented 7 months ago

Hello everyone,

I'm facing a challenging issue that I'm having trouble resolving. I've installed Sloth on my Kubernetes cluster using Helm, and I've ensured that the necessary Custom Resource Definitions (CRDs) for Prometheus rules (prometheusrules.monitoring.coreos.com) and Prometheus service levels (prometheusservicelevels.sloth.slok.dev) are in place.

I've also created two examples for my Prometheus service levels (sloth-slo-my-service and sloth-slo-home-wifi). However, when I do a port forward to my Sloth pod to check these metrics related to the Prometheus service level, they aren't appearing.

Do any of you know what I might be doing wrong?

Thanks in advance for your help. Screenshot from 2024-02-06 12-30-15

alex067 commented 4 months ago

PrometheusServiceLevel CRD converts into a PrometheusRule crd. Sloth pods have nothing to do with the actual metrics afaik, they are picked up by your prometheus instance instead.