-
Notifications
You must be signed in to change notification settings - Fork 896
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
Do not calculate useless group metrics #15260
Do not calculate useless group metrics #15260
Conversation
https://bugzilla.redhat.com/show_bug.cgi?id=1455690 https://bugzilla.redhat.com/show_bug.cgi?id=1454456 - cpu is useless as it counts usagemhz and vm_numvcpus together - cpu_cores is useless as it only reports cpu_cores - memory is useless as counts used and available together - net_io is useless as it only reports net_ui_rate_avg - disk_io is useless as it only reports disk_usage_rate_avg - storage is useless as it counts used and allocated together - fixed is useless as it counts all the fixed metrics together (that equals to 4 for each day, not useful)
It used to return array with single item, now it just returns that single item. Less object creation -> less fat in the code -> performance goes up.
51724d5
to
4b45950
Compare
Checked commits isimluk/manageiq@afb10c1~...4b45950 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
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.
Looks good! 👍
@isimluk @gtanzillo this can be |
Definitely fine/yes. However, I would prefer euwe/no (needs manual backport), unless there is a real need to have it. The other pr can be euwe/yes, effectively fixing that bz. @miq-bot add_label fine/yes, euwe/no |
Backported to Euwe via #15337 |
Do not calculate useless group metrics (cherry picked from commit d2f04e9) https://bugzilla.redhat.com/show_bug.cgi?id=1459562
Fine backport details:
|
https://bugzilla.redhat.com/show_bug.cgi?id=1455690
https://bugzilla.redhat.com/show_bug.cgi?id=1454456
Note this only fixes part of the upper mentioned bzs.