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] Allow aggregation over time series for all functions for mode time_series data views #131067

Open
flash1293 opened this issue Apr 27, 2022 · 1 comment
Labels
enhancement New value added to drive a business result Feature:Lens impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects

Comments

@flash1293
Copy link
Contributor

When working with time_series data, it's very common to do a metric calculation per series (e.g. the average of a value or the rate at which it's growing), then rolling up / aggregating the various series into a single unified number. Most often this aggregation is summing up the various values. For example "Get the current memory usage for all processes and report the total number" (Last value of the memory usage field per series, then adding up all of these values).

To allow this, a new "Aggregate individual time series" option should be added to the metric configuration in case the field is only used in time_series indices
Screenshot 2022-04-27 at 16 41 37

This will translate into running the metric agg within a time_series aggregation, then using a sibling pipeline aggregation to aggregate the results per time series:

date_histogram {
  time_series {
    my_metric: { < picked function (e.g. average) > }
  }
  < picked aggregate (e.g. sum_bucket / avg_bucket) > > time_series > my_metric {}
}

This option should not be available if the current data view is mixed time_series and non time_series data for the selected field.

@flash1293 flash1293 added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Apr 27, 2022
@flash1293 flash1293 added this to Long-term goals in Lens via automation Apr 27, 2022
@elasticmachine
Copy link
Contributor

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

@stratoula stratoula added the impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. label Jan 11, 2023
@stratoula stratoula added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. and removed impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. labels Jun 1, 2023
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 impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
No open projects
Lens
  
Long-term goals
Development

No branches or pull requests

3 participants