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

[r267] ruler: fix TestRulerMetricsForInvalidQueriesAndNoFetchedSeries #6854

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

grafanabot
Copy link
Contributor

Backport 73ff5a2 from #6843

* ruler: fix TestRulerMetricsForInvalidQueriesAndNoFetchedSeries

instead of assuming that rules only evaluate once, use the increase in the counter to tell whether the query is with 0 series or not

In addition to that add another helper function for comparing cortex_prometheus_last_evaluation_samples

Signed-off-by: Dimitar Dimitrov <[email protected]>

* Fix assertion

Signed-off-by: Dimitar Dimitrov <[email protected]>

* Update ruler_test.go

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

* Update ruler_test.go

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

* Update ruler_test.go

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

* Update integration/ruler_test.go

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

* Update integration/ruler_test.go

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

---------

Signed-off-by: Dimitar Dimitrov <[email protected]>
Co-authored-by: zenador <[email protected]>
(cherry picked from commit 73ff5a2)
@grafanabot grafanabot requested a review from a team as a code owner December 8, 2023 12:02
@krajorama krajorama enabled auto-merge (squash) December 8, 2023 12:02
@krajorama krajorama merged commit cbd2911 into r267 Dec 8, 2023
29 checks passed
@krajorama krajorama deleted the backport-6843-to-r267 branch December 8, 2023 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants