Open idrikay opened 3 months ago
Solved same issue by adding "release: prometheus-community" label to my ServiceLevelObjective.
Having a similar problem that in some clusters metrics for each slo resource getting created, in others not. For me this is independent from the label. I'm also using genericRules.enabled: true
from the Helm chart.
In my case prometheus is provisioned by operator (kube-prometheus-stack helm chart) and Prometheus CRD has rule selector based on labels
spec:
ruleSelector:
matchLabels:
release: prometheus-community
@vidomas can you check which metrics get produced by Pyrra?
Using the matchLabels
makes totally sense for your deployment of kube-prometheus-stack
in order to pick-up the generated PrometheusRules
. But the original issue is about that no metrics getting produced for a/all ServiceLevelObjective
s.
I found my error when looking trough the code: https://github.com/pyrra-dev/pyrra/blob/1e0a1ed35837f6acfa37b29a922cffd92d0bf685/slo/rules.go#L1389
bool_gauge
and grouping
is not supposed to work.
I have tried to deploy Pyrra with both manifests and helm chart. Both ways fail to create generic rules. I also get no data in requests or errors.