elastic / kibana

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

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

Open dej611 opened 11 months ago

dej611 commented 11 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 11 months ago

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