[Lens] Window config for last value, counter rate and average/percentile #132112
Labels
enhancement
New value added to drive a business result
Feature:Lens
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
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.
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
to2022-05-06 00:00
and the selected window is1h
, the metric should be wrapped into a filtered metric of2022-05-05 23:00
to2022-05-06 00:00
on the default time field.The text was updated successfully, but these errors were encountered: