-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Follow-up on limiting the number of alerts / rules #9342
Comments
(from #9260 (comment))
In the original issue (#9225), the problem was |
We should definitely be explicit about this though. |
@roidelapluie @LeviHarrison
but there is some issue with the syntax here for the limit, as the prometheus server keeps exiting on start after adding the limit property. Would appreciate your guidance, really keen on contributing more! |
Could you please provide any logs from the server? |
I was running the server inside a docker container, attached is the error logs, I am using the latest version(hopefully) |
You're running |
If you want to try it out, you'll have to build from the |
Thanks @LeviHarrison Running the main image worked!, but in the rules UI shouldnt we see the limits property too? PS : I am a little new too this paradigm, so its highly likely that i might not make sense at times |
The What your comment did make me realize though is that I forgot to add Lines 1141 to 1152 in 4414351
assign it in the API response here: Lines 1198 to 1205 in 4414351
and add the field to the API docs (with a note the |
Was able to do the above, used gitpod for testing(finally read contributing.md), limit is showing in the responses of /rules planning to raise separate PRs for changes in documentation and the code, please let me know if it is okay, and thanks for the help! |
That sounds great. Thanks so much! There might be a test to update in web/api/v1/api_test.go, but I'm not at my computer right now so I can't link it. When you get around to opening a PR please make sure to sign off on the DCO in your commits. |
done, will resolve if there are any issues #9531 |
@LeviHarrison request you to have a look into my commit before i open a PR again Rudy167@2207b36 had trouble while running the linter and test cases on git pod(for linting i got this issue : WARN [runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive. ) let me know if everything looks ok so i can raise a PR again |
@Rudy167 friendly ping :) It would be great to get this in before the upcoming release. |
|
Sorry, I have re-opened it. |
This is a followup on the PR #9260.
I think we would benefit from a small dedicated section in the docs, that explains the semantics behind this. In particular:
The text was updated successfully, but these errors were encountered: