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

[Metrics Alerts] Add outside range comparator #63993

Merged
merged 1 commit into from
Apr 22, 2020

Conversation

Zacqary
Copy link
Contributor

@Zacqary Zacqary commented Apr 20, 2020

Summary

Closes #61825

Adds the OUTSIDE_RANGE comparator. I figured the least awkward way to express this in the Expression Editor was with the language "Is not between":

Screen Shot 2020-04-20 at 2 21 53 PM

I thought about "Is outside the range of" but that seemed needlessly long. Open to other suggestions.

This PR also consolidates some type checking.

Checklist

Delete any items that are not applicable to this PR.

@Zacqary Zacqary added release_note:enhancement Feature:Alerting Feature:Metrics UI Metrics UI feature v8.0.0 Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.8.0 labels Apr 20, 2020
@Zacqary Zacqary requested a review from a team as a code owner April 20, 2020 19:27
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@Zacqary
Copy link
Contributor Author

Zacqary commented Apr 20, 2020

@elastic/kibana-alerting-services I added this as a custom comparator and extended the builtInComparators for the ThresholdExpression component. Should we move OUTSIDE_RANGE into the built in comparators for the alerting plugin? It might be useful outside of the metrics UI.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

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

@mikecote
Copy link
Contributor

I think that would make sense, what do you think @YulNaumenko or @pmuellr ?

Copy link
Contributor

@phillipb phillipb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Zacqary
Copy link
Contributor Author

Zacqary commented Apr 22, 2020

@mikecote I'm tracking moving this feature to the built in comparators in #64220

@Zacqary Zacqary merged commit 12aae67 into elastic:master Apr 22, 2020
@Zacqary Zacqary deleted the 61825-outside-range branch April 22, 2020 18:09
@mikecote
Copy link
Contributor

@Zacqary works for me 🙏 thank you!

Zacqary added a commit to Zacqary/kibana that referenced this pull request Apr 22, 2020
Zacqary added a commit that referenced this pull request Apr 23, 2020
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Alerting Feature:Metrics UI Metrics UI feature release_note:enhancement Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Metrics Alerts] Add OUTSIDE RANGE threshold condition
5 participants