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

Ruler: rule group limit enforcement has off-by-one error #3615

Closed
mattmendick opened this issue Dec 17, 2020 · 6 comments
Closed

Ruler: rule group limit enforcement has off-by-one error #3615

mattmendick opened this issue Dec 17, 2020 · 6 comments

Comments

@mattmendick
Copy link
Contributor

Describe the bug
The ruler seems to have an issue where the rules per group limit is forcing one fewer than the limit, yielding an error message like this:

per-user rules per rule group limit (limit: 15 actual: 15)

To Reproduce
Submit a rule group with the same number of rules as the limit, ie: 15 rules in a group with the limit set to 15.

Expected behavior
The submitted rule group should be allowed to contain up to and containing the limit specified. The limit set to 15 should allow a group with 15 rules to be accepted.

@stale
Copy link

stale bot commented Mar 19, 2021

This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 19, 2021
@pracucci
Copy link
Contributor

Still valid

@stale stale bot removed the stale label Mar 22, 2021
@mtanda
Copy link

mtanda commented Apr 8, 2021

@pracucci
We hit this issue in Grafana Cloud. Do you have plan to fix this?

@pracucci
Copy link
Contributor

pracucci commented Apr 8, 2021

Do you have plan to fix this?

There's an open PR #3616 which got stuck. I talked to Matt -- the PR author -- and they're fine if anyone takes it over.

@pracucci
Copy link
Contributor

pracucci commented Apr 9, 2021

Fixed in #3616.

@pracucci pracucci closed this as completed Apr 9, 2021
@mtanda
Copy link

mtanda commented Apr 9, 2021

Thanks for quick fix!

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

No branches or pull requests

3 participants