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

r321: Backport ruler fixes #10267

Closed
wants to merge 2 commits into from
Closed

r321: Backport ruler fixes #10267

wants to merge 2 commits into from

Conversation

julienduchesne
Copy link
Member

Backport #10189 and #10258 into r321

julienduchesne and others added 2 commits December 17, 2024 10:39
* Update `mimir-prometheus` to latest version
It was synced here: grafana/mimir-prometheus#792

Fixed failing tests
- `TestCardinalityQueryRequestValidationRoundTripper`: revert `model.NameValidationScheme` to `LegacyValidation`
- `TestStreamingChunkSeries_CreateIteratorTwice`: Quote label name in error message
- `TestOurUpstreamTestCasesAreInSyncWithUpstream`: Sync upstream test cases

* Update CHANGELOG.md

Co-authored-by: Dimitar Dimitrov <[email protected]>

---------

Co-authored-by: Dimitar Dimitrov <[email protected]>
* Rule Concurrency: Prevent flapping of concurrency

Iterates on #8146

The `isGroupAtRisk` function only uses the group's last evaluation time as a metric
However, if the concurrency of the group causes the group's eval time to lower to less than the threshold, this will flap between enabling concurrency and disabling it on every run

In this PR, a condition is added to also sum up the last evaluation time of each rule to compare against the threshold

* Linting

* Use the new `evaluationRuleTimeSum` field from the group

* Linting

* Add changelog + metric

* Apply suggestions from code review

Co-authored-by: gotjosh <[email protected]>

* Unrevert crypto

* Fix typo in changelog

---------

Co-authored-by: gotjosh <[email protected]>
@julienduchesne julienduchesne marked this pull request as ready for review December 17, 2024 15:41
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.

1 participant