-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Rule: Support ruleGroup limit #4868
Rule: Support ruleGroup limit #4868
Conversation
ba0d555
to
89b70aa
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.
IIUC this pr only adds limit to the protobuf. Would you like to also implement the actual limit logic in the API in this pr?
@yeya24 I foud the actual limit logic done by prometheus. look at the unit test. https://github.com/thanos-io/thanos/pull/4868/files#diff-f197af2d6f28659de1d4f1166ddc965356d93971449ea2b6ad71f142c65f9768R403. it return a limit error when eval. |
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.
I see. I thought this limit is done at the API side at the beginning. Then can you also add this to our E2E test to see if it works as expected?
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.
👍 e2e test would be great to ensure that this limit is passed down properly
OK. let me add some e2e test about rules api. |
Seems some thing break the ruler e2e test parse yaml config in flag. i need a bit more time to debug. |
Signed-off-by: Jimmie Han <hanjinming@outlook.com>
Signed-off-by: Jimmie Han <hanjinming@outlook.com>
Signed-off-by: Jimmie Han <hanjinming@outlook.com>
04f9db7
to
bf86d8a
Compare
Signed-off-by: Jimmie Han <hanjinming@outlook.com>
bf86d8a
to
a79983d
Compare
I shoud create a execeed limit rule and assert the rule health field. let me implement it. |
Signed-off-by: Jimmie Han <hanjinming@outlook.com>
Done |
d2b498c
to
1bc041a
Compare
The e2e test error when do thanos-receive test. I am confusing . @GiedriusS Could you help me check it , Thank you. |
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.
Two nits but overall LGTM 💪
Signed-off-by: Jimmie Han <hanjinming@outlook.com>
1bc041a
to
2de2981
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.
LGTM
#4837.
Signed-off-by: Jimmie Han hanjinming@outlook.com
Changes
Verification
Unit test.