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

rulestore/local: add support for GetRuleGroup endpoint #7248

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

narqo
Copy link
Contributor

@narqo narqo commented Jan 29, 2024

What this PR does

Add support for the /config/api/v1/rules/{namespace}/{groupName} in the ruler's "local" store.

Note, the changes ended up a bit more involved, than what we anticipated originally. That is, in order for "local" store to follow the rulestore.RuleStore interface, the backend must return the sentinel errors, defined along with the interface. This created a circular dependency between the rulestore and local packages due to how the configs were laid out. The choice the PR made to resolve that, is to move the local's config outside the package, close to rulestore.Config (see the actual changes).

Which issue(s) this PR fixes or relates to

Fixes #6632

Checklist

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

@narqo narqo requested review from a team as code owners January 29, 2024 12:15
@narqo narqo force-pushed the ruler-rules-ns-groupname-endpoint branch from e6351f7 to e7dad33 Compare January 29, 2024 12:18
Copy link
Contributor

@56quarters 56quarters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! One small comment about the tests.

@narqo narqo force-pushed the ruler-rules-ns-groupname-endpoint branch from e7dad33 to 68ca053 Compare February 1, 2024 11:02
@56quarters 56quarters merged commit 3592849 into main Feb 1, 2024
28 checks passed
@56quarters 56quarters deleted the ruler-rules-ns-groupname-endpoint branch February 1, 2024 15:13
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.

ruler: support /config/api/v1/rules/{namespace}/{groupName} for local storage
2 participants