Skip to content

Conversation

leonnicolas
Copy link

With Prometheus v3 histograms are normalized and this breaks rules that
select on the le label.
This PR overwrites the label selectors that
mixin usese.

Before:

{le="1"}

Now with Prometheus v3:

{le="1.0"}

This will break set ups with prometheus v2.
However, I think it is still an improvement by default Prometheus v3 is
used and I would expect that the generated rules are workind with the
default Prometheus version as well.

Fixes #2573

Signed-off-by: leonnicolas [email protected]

With Prometheus v3 [histograms are normalized](https://prometheus.io/docs/prometheus/latest/migration/#le-and-quantile-label-values) and this breaks rules that
select on the `le` label.
This PR overwrites the label selectors that
[mixin](https://github.com/kubernetes-monitoring) usese.

Before:
```
{le="1"}
```
Now with Prometheus v3:
```
{le="1.0"}
```

This will break set ups with prometheus v2.
However, I think it is still an improvement by default Prometheus v3 is
used and I would expect that the generated rules are workind with the
default Prometheus version as well.

Fixes prometheus-operator#2573

Signed-off-by: leonnicolas <[email protected]>
@leonnicolas
Copy link
Author

leonnicolas commented Jan 2, 2025

the rules were updated upstream in kubernetes-monitoring/kubernetes-mixin#1008. So maybe we can just bump a version and close this PR

EDIT: created a PR to bump kubernetes-mixin version #2580

leonnicolas added a commit to leonnicolas/kube-prometheus that referenced this pull request Jan 2, 2025
Update jsonnet packages. The resulting changes come from the update of
https://github.com/kubernetes-monitoring/kubernetes-mixin. Most
importantly it contains an update to fix prometheus recoding rules that
were broken for prometheus v3.

This would close prometheus-operator#2575
@leonnicolas
Copy link
Author

fixed by #2581

@leonnicolas leonnicolas closed this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken recording rules with Prometheus v3

1 participant