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

Add matchers filtering field to rules api #6083

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

euniceek
Copy link
Contributor

@euniceek euniceek commented Jul 11, 2024

What this PR does:
This PR adds support for label matchers as URL query params to the rules API. It filters both recording and alerting rules via their labels.

Prometheus recently merged in a change to support this functionality: prometheus/prometheus#10194

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@euniceek euniceek force-pushed the matches-filtering-field branch 3 times, most recently from c9c3a9f to 67b5f14 Compare July 12, 2024 04:46
@euniceek euniceek marked this pull request as ready for review July 12, 2024 16:40
@alanprot
Copy link
Member

Thanks!

CHANGELOG.md Outdated Show resolved Hide resolved
pkg/ruler/ruler_test.go Outdated Show resolved Hide resolved
pkg/ruler/ruler.go Outdated Show resolved Hide resolved
pkg/ruler/ruler.proto Outdated Show resolved Hide resolved
Signed-off-by: Eunice Kim <kimeuni@amazon.com>
@euniceek euniceek force-pushed the matches-filtering-field branch 2 times, most recently from 60505f3 to 6182163 Compare July 14, 2024 19:43
Signed-off-by: Eunice Kim <kimeuni@amazon.com>
@euniceek euniceek force-pushed the matches-filtering-field branch from 6182163 to 6b0709e Compare July 15, 2024 16:21
pkg/ruler/ruler.go Outdated Show resolved Hide resolved
Signed-off-by: Eunice Kim <kimeuni@amazon.com>
@yeya24 yeya24 merged commit 527d25f into cortexproject:master Jul 16, 2024
16 checks passed
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