-
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
Use Prometheus timeouts from settings #167
Conversation
@miq-bot add_label bug @simon3z @moolitayer @ilackarms @joelddiaz please review |
Checked commit yaacov@d8f14a4 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0 |
These are new settings right? |
|
@cben 👍 closed ManageIQ/manageiq#16429 , will move the settings to local setting.yml file |
lgtm |
d8f14a4
to
da6da55
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.
👍
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 👍
@yaacov |
yes |
@yaacov wondering how this will be configurable from openshift in the manageiq-pod |
IMO, ideally we want some way for the automation in openshift-ansible to be able to accept configuring these settings |
We will have to ask ( the api guys ? ) if we have an api for setting the settings ? @moolitayer ? @cben suggested adding that to the new tags/labels @enoodle added for the provider, do we have api for those ? |
I think that's orthogonal.
- If there is use case to configure these per-provider, we can make these
per-provider.
I don't see the point here, if user needs to increase these timeouts,
there is no harm in increasing for all providers.
- There should be API (and then) ansible for settings.
And not only Advanced Settings aka settings.yml, ideally all things under
top right menu -> Configuration should have API(s).
|
@cben Do you know what is the api path for that ? p.s. |
Sorry, I meant such API ought to be added :-)
There exists
https://github.com/ManageIQ/manageiq-api/blob/master/app/controllers/api/settings_controller.rb
but it has a narrow whitelist:
https://github.com/ManageIQ/manageiq-api/blob/220cbbb927/config/api.yml#L2543
- `product` (which only contains deployment wizard)
- `prototype` (which contains MiqQueue/Artemis knobs)
|
|
@cben @yaacov can you take a look at [1] and if it is what you are looking for then the PRs [2][3] it links to see how to configure per provider settings. [1] ManageIQ/manageiq-ui-classic#1652 |
@enoodle @joelddiaz is looking for an API |
@moolitayer Currently that API for per-provider options that I created is not returning the values, but only the available options per provider. I think it should be changed to also return the values, or another one should be created for that. |
@enoodle what about setting them? |
@moolitayer Yes, I will make a PR to add getting/setting the options per provider in another endpoint (something like /api/provider//settings ) |
Use Proetheus timeouts form settings (cherry picked from commit 17825b2) https://bugzilla.redhat.com/show_bug.cgi?id=1513116
Gaprindashvili backport details:
|
I created ManageIQ/manageiq-api#211 to allow setting the options field per provider. For example:
|
Description
Metrics collection from OCP 3.7 using Prometheus may hit timeout while collecting metrics.
a. the default timeouts are too small
b. users can not set new timeout values to fit their system
This PR uses the settings needed to adjust the timeouts.
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1511341