elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.48k stars 8.04k forks source link

[Lens] Automatically suggest TSDB dimensions for a given TSDB metric #172375

Open dej611 opened 7 months ago

dej611 commented 7 months ago

Describe the feature:

In TSDB every metric is associated to all other dimensions by default.

While this might be useful to understand what are available dimensions, the relationship between metric and relative dimensions (aka those who make sense for such metrics) is lost when queried via the field caps API. This information is still preserved at document level, so there are alternative ways to access such information.

Describe a specific use case for the feature:

Once we get this kind of information we could propose meaningful dimensions when the user is configuring a breakdown of a metric in Lens.

Implementation ideas

A PoC could be built with a top_metric request for each metric to gether which associated dimensions have been defined in each ingested document.

elasticmachine commented 7 months ago

Pinging @elastic/kibana-visualizations (Team:Visualizations)