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

Restrict historical metrics collection #14640

Closed

Conversation

blomquisg
Copy link
Member

Previously, if the last_perf_capture_on value was very very old, MIQ would attempt to gather all of the metrics from last_perf_capture_on until now.

#14332 introduced the concept of grouping the historical metrics by days, so the collector worker would not try to gather ALL of the metrics at once.

This change further restricts the metrics by favoring the more recent date between:

  • last_perf_capture_on
  • Metric::Capture.historical_start_time

If last_perf_capture_on is too far in the past, Metric::Capture.historical_start_time will be a forceful override.

@blomquisg blomquisg requested a review from Fryguy April 4, 2017 20:30
@blomquisg
Copy link
Member Author

Tests are going to fail here ... need to update one of the specs

Previously, if the `last_perf_capture_on` value was very very old, MIQ
would attempt to gather all of the metrics from `last_perf_capture_on`
until now.

ManageIQ#14332 introduced the concept
of grouping the historical metrics by days, so the collector worker
would not try to gather *ALL* of the metrics at once.

This change further restricts the metrics by favoring the more recent
date between:

 * `last_perf_capture_on`
 * Metric::Capture.historical_start_time

If `last_perf_capture_on` is too far in the past,
`Metric::Capture.historical_start_time` will be a forceful override.
@blomquisg blomquisg force-pushed the maximum_historical_metrics branch from e6cc693 to cf68872 Compare April 4, 2017 22:26
@miq-bot
Copy link
Member

miq-bot commented Apr 4, 2017

Checked commit blomquisg@cf68872 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks good. 👍

@isimluk isimluk closed this Apr 5, 2017
@isimluk isimluk reopened this Apr 5, 2017
@miq-bot
Copy link
Member

miq-bot commented Apr 10, 2017

This pull request is not mergeable. Please rebase and repush.

@blomquisg blomquisg closed this Sep 28, 2017
@blomquisg blomquisg deleted the maximum_historical_metrics branch September 28, 2017 00:02
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.

5 participants