Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken rules with Prometheus v3 #2575

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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]>
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