-
Notifications
You must be signed in to change notification settings - Fork 63
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
Avoid metrics collection workers unless endpoint #7
Conversation
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 👍
Note:
The check connection_configurations.hawkular != nil
will not work on systems where we have a hawkular with nil
hostname, which is the way we check for supports_metrics?
now.
# Override PerEmsTypeWorkerMixin.emses_in_zone to limit metrics collection | ||
def self.emses_in_zone | ||
super.select do |ems| | ||
(ems.supporty_metrics?).tap do |hawkular| |
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 would not call the arg
hawkular
, becausesupports_metrics?
just returns a boolean. How aboutavailable
orsupported
- the
()
are not needed - Typo: supporty vs supports
I'm ok with adding the method before adding a feature. @moolitayer just be sure to push adding the feature once you have a full featured and working implementation |
Checked commit moolitayer@3d26da2 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Nice.
|
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.
👍
@moolitayer @cben any label? (bug? enhancement? backport? etc.) |
@moolitayer @simon3z BZ 1437138 is now for 'master' only. In the BZ, it says it's safe to backport this alone, but not sure what issue this will fix. Should this still be backported? |
I was just on my way here... Better not to backport @miq-bot add_label fine/no |
Starting with k8s since container_manager_mixin is shared with openshift.
We will then need to do one of:
OR
supports_metrics? aims to be replaced by a support feature.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1437138#c0