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

Add the :all flag for metrics collection #176

Merged
merged 1 commit into from
Dec 6, 2017
Merged

Add the :all flag for metrics collection #176

merged 1 commit into from
Dec 6, 2017

Conversation

djberg96
Copy link
Collaborator

@djberg96 djberg96 commented Nov 29, 2017

This addresses a TODO that was mentioned in the metrics collection code. At the moment we collect a maximum of 1000 records at a time. While it's unlikely that there are more than 1000 records in the given time window that we specify, it is possible.

The original issue mentioned was addressed in version 0.9.2 of the azure-armrest gem.

@miq-bot
Copy link
Member

miq-bot commented Nov 29, 2017

Checked commit https://github.com/djberg96/manageiq-providers-azure/commit/d76c8cc78c45a299580b54e4fcfb58a5d9eaca7b with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 1 offense detected

app/models/manageiq/providers/azure/cloud_manager/metrics_capture.rb

@bronaghs
Copy link

bronaghs commented Dec 5, 2017

Think the description needs to refer to metrics, not events.

@djberg96 djberg96 changed the title Add the :all flag on metrics collection Add the :all flag for events collection Dec 5, 2017
@djberg96
Copy link
Collaborator Author

djberg96 commented Dec 5, 2017

@bronaghs Updated.

@bronaghs
Copy link

bronaghs commented Dec 5, 2017

@djberg96 - Will this just get the first page of metrics?

@djberg96
Copy link
Collaborator Author

djberg96 commented Dec 5, 2017

@bronaghs not sure what you mean by the first page. At the moment, the results are capped at 1000 records for the request. By using :all we get all of them.

@bronaghs bronaghs merged commit d8f8fa5 into ManageIQ:master Dec 6, 2017
@bronaghs bronaghs added this to the Sprint 75 Ending Dec 11, 2017 milestone Dec 6, 2017
@djberg96 djberg96 changed the title Add the :all flag for events collection Add the :all flag for metrics collection Dec 6, 2017
@bronaghs bronaghs self-assigned this Dec 6, 2017
simaishi pushed a commit that referenced this pull request Dec 11, 2017
Add the :all flag for events collection
(cherry picked from commit d8f8fa5)
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 9d504446c390c28ecea67c32c75ee4babec0f732
Author: Bronagh Sorota <[email protected]>
Date:   Wed Dec 6 11:14:29 2017 -0500

    Merge pull request #176 from djberg96/all_metrics
    
    Add the :all flag for events collection
    (cherry picked from commit d8f8fa5c23625edce252190aae70f3978dc17054)

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.

4 participants