Skip to content
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

metrics: set ems in metrics_capture object #19522

Merged
merged 1 commit into from
Nov 15, 2019

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Nov 15, 2019

Fixes issue with azure build failure due to metrics collection.

Details

Each provider's metrics_collection handles the ems differently.

I had changed the metrics_capture to have an optional ems in #19511, to make sure vmware worked: ManageIQ/manageiq-providers-vmware#475 - but this caused issues with azure. Now we're passing in ems (in the second branch of the if) so azure and all ems will be happy.

Enhancement

The first branch of the if enables Ems.perf_capture_object - which is the main purpose of our changes to metrics_collection. This is so metrics can be collected for an ems (rather than for only targets).

@miq-bot
Copy link
Member

miq-bot commented Nov 15, 2019

Checked commit kbrock@9e5742a with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 1 offense detected

app/models/metric/ci_mixin/capture.rb

if self.kind_of?(ExtManagementSystem)
self.class::MetricsCapture.new(nil, ext_management_system)
else
self.class.parent::MetricsCapture.new(self, ext_management_system)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed? Is one provider different than another? In what way?

Copy link
Member

@jrafanie jrafanie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, the reasoning makes sense now

@jrafanie jrafanie merged commit b64056e into ManageIQ:master Nov 15, 2019
@jrafanie jrafanie self-assigned this Nov 15, 2019
@jrafanie jrafanie added this to the Sprint 125 Ending Nov 25, 2019 milestone Nov 15, 2019
@kbrock kbrock deleted the cu_capture_ems branch November 18, 2019 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants