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

[Lens] Support dynamic thresholds based on a query #87551

Closed
wylieconlon opened this issue Jan 6, 2021 · 2 comments · Fixed by #108342
Closed

[Lens] Support dynamic thresholds based on a query #87551

wylieconlon opened this issue Jan 6, 2021 · 2 comments · Fixed by #108342
Assignees
Labels
enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@wylieconlon
Copy link
Contributor

This feature is the lower priority than the two other types of thresholds, constant value thresholds and thresholds based on already-existing chart data, and is also more technically complex.

There are some use cases where users will want to run a query to determine what the threshold values should be. For example, the threshold could be set using a percentile of the entire time range- showing days where the values are under the 5th percentile.

@wylieconlon wylieconlon added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Jan 6, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@flash1293
Copy link
Contributor

Adding layer includes a popover for different layer types (threshold being another layer type):
Screenshot 2021-06-18 at 13 49 29

This is how a threshold layer looks like (dimension groups are the axes that can get thresholds):
Screenshot 2021-06-18 at 13 49 36

The header of regular data layers looks a little different as well:
Screenshot 2021-06-18 at 13 49 44

Threshold configuration has different options than a data series (should be straight forward). Data part of the configuration has a separate tab "static value". If a new threshold layer is created, it's preset with a static value at 75% of the current axis (if all information is available)
Screenshot 2021-06-18 at 13 49 50

It's possible to switch to quick function / formula and fetch dynamic data instead of using static data (regular UI in this case)
Screenshot 2021-06-18 at 13 50 01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
4 participants