Skip to content

[7.14] [Metrics UI] [REDO] Correct inaccurate offsetting for non-rate aggregations inside of metrics threshold alerts (#106947)#107820

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

[7.14] [Metrics UI] [REDO] Correct inaccurate offsetting for non-rate aggregations inside of metrics threshold alerts (#106947)#107820
Zacqary merged 4 commits intoelastic:7.14from
Zacqary:backport/7.14/pr-106947

Conversation

@Zacqary
Copy link
Copy Markdown
Contributor

@Zacqary Zacqary commented Aug 6, 2021

Backports the following commits to 7.14:

This is a REDO. For some reason the original backport PR #107098 didn't actually commit all changes. Possibly because #104784 wasn't backported to 7.14.

…inside of metrics threshold alerts (elastic#106947)

* Don't skip last bucket for most aggs

* Allow alerting on partial buckets for certain aggs

* Fix test, PR feedback, and some comments

* Remove all offset logic for date_range aggs

* Remove code comment

* Add delivery delay

* Fix the date range for query

* Add TODO
# Conflicts:
#	x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_alert.ts
#	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 00:54
@Zacqary Zacqary changed the title [7.14] [Metrics UI] Correct inaccurate offsetting for non-rate aggregations inside of metrics threshold alerts (#106947) [7.14] [Metrics UI] [REDO] Correct inaccurate offsetting for non-rate aggregations inside of metrics threshold alerts (#106947) Aug 6, 2021
…6947

# Conflicts:
#	x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_alert.ts
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@Zacqary Zacqary merged commit 55117ad 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