-
Notifications
You must be signed in to change notification settings - Fork 569
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
refactor: mimirtool analyze prometheus
: add concurrency and resiliency
#3349
refactor: mimirtool analyze prometheus
: add concurrency and resiliency
#3349
Conversation
e4ffc72
to
3db7b9b
Compare
Unchecked documentation in description because it does not yet exist; does this change need documentation? Will a user know to what extent it could be used? |
Since we've respected as-is design during refactor, this PR does not include any behavioural change from the end user perspective. (Only |
Thanks for working on this! |
e05b094
to
979826b
Compare
Thanks! Just resolved your reviews, can you please check again? |
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.
Amazing, thanks for working on this! I have a few comments, most of which are minor
979826b
to
38d47bc
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.
apart from that minor godoc/usage difference, LGTM!
38d47bc
to
5694fac
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. We can merge as soon as the CI is passing. I believe you just need to run this command and commit the change:
goimports -w -local github.com/grafana/mimir pkg/mimirtool/commands/analyse_prometheus.go
Fixes grafana#3062 Signed-off-by: Anıl Mısırlıoğlu <[email protected]> Co-authered-by: Furkan Türkal <[email protected]> Co-authered-by: Ayşe Sert <[email protected]>
5694fac
to
b4ce498
Compare
I run and commit it. I hope the linter is fixed. |
@@ -63,6 +63,8 @@ | |||
### Mimirtool | |||
|
|||
* [ENHANCEMENT] Added `mimirtool rules delete-namespace` command to delete all of the rule groups in a namespace including the namespace itself. #3136 | |||
* [ENHANCEMENT] Refactor `mimirtool analyze prometheus`: add concurrency and resiliency #3062 |
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.
We're used to reference the PR number instead of the issue number (so #3349
instead of #3062
). This will make our release tooling matching the PR when checking the CHANGELOG.
@anilmisirlioglu would you mind opening a follow up PR to change it, please?
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.
Sure
Fixes grafana#3062 Signed-off-by: Anıl Mısırlıoğlu <[email protected]> Co-authered-by: Furkan Türkal <[email protected]> Co-authered-by: Ayşe Sert <[email protected]> Signed-off-by: Anıl Mısırlıoğlu <[email protected]>
What this PR does
This PR adds resiliency and concurrency in analyze Prometheus command. Removes duplicate codes and optimizes code. It reduces the working time considerably. Notably performance increment as you can see the following:
Which issue(s) this PR fixes or relates to
Fixes #3062
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
cc: @Dentrax @aysenrsrt