Skip to content

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

Closed
@mattmendick

Description

@mattmendick

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions