-
Notifications
You must be signed in to change notification settings - Fork 816
Add filtering by health and state in list rules #6040
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 filtering by health and state in list rules #6040
Conversation
3a39004
to
2e003fb
Compare
2e003fb
to
f182009
Compare
f182009
to
aefd0ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me. Thanks!
@euniceek Can you please update the PR description? I don't think Cortex supports ruleinfo API |
Thanks for the review! Updated! |
Let's wait for another approval from a maintainer before merging this. |
@euniceek Can you also update the changelog? We can call it an |
5dc7427
to
a3578f0
Compare
ok.. LGTM! |
Signed-off-by: Eunice Kim <[email protected]>
Signed-off-by: Eunice Kim <[email protected]>
a3578f0
to
2e74e23
Compare
What this PR does:
This PR adds two additional filtering fields to the list rules API. If users want to list rules that are in firing state or healthy, they will be able to do it using the following parameters.
api/v1/rules?state=firing
api/v1/rules?health=ok
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]