Skip to content

[7.14] [Metrics UI] Drop partial buckets from ALL Metrics UI queries (#104784)#107838

Merged
Zacqary merged 2 commits intoelastic:7.14from
Zacqary:backport/7.14/pr-104784
Aug 6, 2021
Merged

[7.14] [Metrics UI] Drop partial buckets from ALL Metrics UI queries (#104784)#107838
Zacqary merged 2 commits intoelastic:7.14from
Zacqary:backport/7.14/pr-104784

Conversation

@Zacqary
Copy link
Copy Markdown
Contributor

@Zacqary Zacqary commented Aug 6, 2021

Backports the following commits to 7.14:

Required for a successful backport of #106947 (which seems to have only been partially backported) and #107674

…c#104784)

* [Metrics UI] Change dropLastBucket to dropPartialBuckets

- Change offset calculation to millisecond percission
- Change dropLastBucket to dropPartialBuckets
- Impliment partial bucket filter
- Adding partial bucket filter to metric threshold alerts

* Cleaning up getElasticsearchMetricQuery

* Change timestamp to from_as_string to align to how date_histgram works

* Fixing tests to be more realistic

* fixing types; removing extra imports

* Fixing new mock data to work with previews

* Removing value checks since they don't really provide much value

* Removing test for refactored functinality

* Change value to match millisecond resolution

* Fixing values for new partial bucket scheme

* removing unused var

* Fixing lookback since drops more than last buckets

* Changing results count

* fixing more tests

* Removing empty describe

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts
@Zacqary Zacqary added the backport This PR is a backport of another PR label Aug 6, 2021
@Zacqary Zacqary enabled auto-merge (squash) August 6, 2021 16:10
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
infra 1.7MB 1.7MB +8.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@Zacqary Zacqary merged commit a8171a3 into elastic:7.14 Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants