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] Window config for last value, counter rate and average/percentile #132112

Closed
flash1293 opened this issue May 12, 2022 · 1 comment · Fixed by #136706
Closed

[Lens] Window config for last value, counter rate and average/percentile #132112

flash1293 opened this issue May 12, 2022 · 1 comment · Fixed by #136706
Assignees
Labels
enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@flash1293
Copy link
Contributor

Especially for time series it's common to only consider a value if it falls within a recent window of time - older values do not accurately represent the "current state" anymore.

Screenshot 2022-05-12 at 12 36 26

To be able to configure this in Lens visualizations, there should be an optional advanced setting specifying a time interval called "window" which is enabled for last value, counter rate (only after #79656) and median/percentile/average functions. It's only available as long as no date histogram is part of the current configuration and the selected data view has a default time field.

On selecting it, the metric agg will be wrapped into a filtered metric which filters to the selected time window at the end of the overall time range. For example, if the current time range resolves to from 2022-05-05 00:00 to 2022-05-06 00:00 and the selected window is 1h, the metric should be wrapped into a filtered metric of 2022-05-05 23:00 to 2022-05-06 00:00 on the default time field.

@flash1293 flash1293 added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels May 12, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

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
Development

Successfully merging a pull request may close this issue.

2 participants