elastic / kibana

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

[Lens] Customize no results screen #141974

Open flash1293 opened 1 year ago

flash1293 commented 1 year ago

It should be possible to show a customized message instead of the default "No results" message if visualizations are not hitting any data. This way, the visualization author can provide hints for analysts wondering why no data is showing up on the dashboard.

elasticmachine commented 1 year ago

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

stratoula commented 1 year ago

Setting in Lens (markdown) for the analyst (author) to overwrite the "No results" page.

markov00 commented 1 year ago

The original intent of this issue (coming from an SDH) was to have the ability to define how missing information should be handled in a visualization (in particular in a visualization like a metric when only a single value is visible). For example:

I think we can be 95% of the time handled automatically knowing the aggregation and the chart type. But please correct me if I'm wrong and the request is different

stratoula commented 1 year ago

From my understanding when discussing this feature with @flash1293 is that this is a request from the solutions teams. They would like to give the chart authors the ability to change the No results screen on something more chart specific.

What you describe is another enhancement we want to do but I am not sure if we have an issue for that tbh.

gizas commented 1 year ago

In Kubernetes Integration dashboards we can see two types of errors:

This issue had been created initially to track both above situations. So first question is, can we handle both different situations with new feature of this story?

Ideally we would like to provide a markdown text with information to the customer to guide him to external links why he does not see specific metrics. For eg. we know that for the first case #4577 we can redirect him to a link for GKE cluster. Can we do this ?

stratoula commented 1 year ago

Thanx for the input @gizas! I also discussed it with @MichaelKatsoulis and they want something similar.

I think that this issue is very tight with this https://github.com/elastic/kibana/issues/143673 (not fail on missing fields)

They would like to show warning instead of errors on missing fields or missing indices and also customize the warning message

We will discuss it with the team and get back to you :)

gizas commented 1 year ago

Thank you @stratoula ! Indeed we had the same discussion for #143673 and they seem similar to me as well! If we can combine all of them will be great

ruflin commented 1 year ago

This related issue also has been opened https://github.com/elastic/kibana/issues/148828 and closed again as this issue already covers it mostly, but good to read for more details.