-
Notifications
You must be signed in to change notification settings - Fork 900
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
Add metrics as a supported feature in the SupportsFeatureMixin #13381
Conversation
Checked commit https://github.com/djberg96/manageiq/commit/e5c4ae59599306f3a3359f655f0fa178281f3b80 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 |
before adding new |
@durandom See ManageIQ/manageiq-providers-azure#36 for how it will be used. |
@durandom Does :timelines hook into metrics as well? Or just events? |
I believe it's just events. |
@durandom Alright, well, if you don't want to add :metrics, which feature from the mixin do you suggest I hook into in order to tell the ems whether or not metrics are supported? |
@djberg96 oh, sorry, I just looked at you azure PR and saw it doesnt contain the |
So, I'm not 100% sure what it means to support
|
@djberg96 so how about putting this on WIP and you explore in azure what it takes to Once this is fleshed out we can refactor this to a proper |
@durandom I'm not sure what you mean exactly. To determine if metrics is supported requires the azure-armrest API. It looks like this:
In other words, if the "Microsoft.Insights" provider is not registered, then metrics is not supported. |
As I understand, metrics is supported conditionally in azure. That seems those with Insights - or whatever. Now what to do? Check if a worker should be started? Display something in the UI, etc. etc. If we know, at what places in the code we have to query for But until then, I suggest you do this with a simple method. |
Does a provider start a metrics collector by default? If so, that's the part that should be changed to be an attribute of the provider that allows/disallows starting of various workers for that provider. Maybe? |
@jrafanie No, you have to opt-in for metrics collection. I'll go ahead and close this one for now as I don't rely on it. |
I think we will now have use for this one: Openshift is going to optionally have metrics collection.
|
@moolitayer sure, once you have a POC or another PR that uses it just link it to this PR |
|
This adds "metrics" as a supported feature to the list. At a minimum, we will need to use this for the Azure provider as part of the effort towards supporting usgov environments.
https://bugzilla.redhat.com/show_bug.cgi?id=1403366