forked from ManageIQ/manageiq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restrict historical metrics collection
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.
- Loading branch information
Showing
2 changed files
with
70 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters