-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Use rate agg behind the scenes for counter rates on mode time_series data views #130714
Comments
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
Yes, because right now a counter rate looks like this in formula:
|
There are two scenarios in here - if the data view was mixed from the start, IMHO Lens simply shouldn't offer the option to configure the "aggregate series" and behave like it would for regular data views. If the data view was fully TSDB in the past and the user already configured the "aggregate series", then keep it and try to execute it - it will work for the TSDB data and return no data for the regular indices which is IMHO a sensible behavior. The only issue in this regard is the way integrations within |
Discussion yielded this desired design for counter rates -
This is a separate issue but is worth creating and discussing: We likely need to deprecate lens' "counter rate" quick function as it exists today. |
looking into this, it seems:
lens must be updated so correct aggregation is built and that no options that would produce invalid request are allowed |
Just checking in to see whether there are issues here that we can help with on the Elasticsearch side.
That is only the case if computing a rate with reset detection is required. Other aggregations remain to work on counter fields, it is just a number field for the aggs. For example a
Yes, the |
Tagging the WIP to this issue to make it easier to see progress: |
This is done in 8.8, we have another issue for optimization but TSDB counter fields are now supported in Lens |
Just to be clear here, we did not end up using the ES rate agg behind the scenes. Instead, we added support for TSDB while still using Lens's client-side #152537 is the issue to track for actually using the ES rate agg in Lens. |
Describe the feature: With new support for restart-aware rates within Elasticsearch itself (and ECS) Lens should automatically switch rate implementations to the underlying Elasticsearch approach.
mode: time_series
and normal indexes then fall back onto the browser implementation that exists today for rates. Consider displaying a warning in the editor when this happens: "Data selection includes non-time series indexes and rates are calculated in the browser." (Seems like something that isn't actionable though...discuss)Example aggregation call for pure time series data views
No UX impact:
Describe a specific use case for the feature:
When My machines collecting counters periodically restart
I need restart-aware rates at the aggregation level
So I can avoid distorted visualizations from today's browser implementation
The text was updated successfully, but these errors were encountered: