elastic / kibana

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

[Lens] display when the last value was reported #156228

Open drewdaemon opened 1 year ago

drewdaemon commented 1 year ago

Describe the feature: Lens offers a Last Value function which returns the last reported value, but we don't surface information about how recently the last value was reported. It could have been anywhere in the time range, making it hard to rely on for a picture of current system state without independently verifying the data.

I'm not sure how this information would be generated from Elasticsearch or surfaced in the visualization (tooltip, maybe?). But, I hypothesize that it would make the Last Value function much more useful and trusted.

Currently, the only in-visualization option for the user to make sure data is within a certain look-back window is to constrain the time range to the desired window (via the global time picker, a custom panel time range, or the "reduced time range"). If the visualization goes blank, they can deduce that the last value falls outside that window.

This is a non-intuitive workaround.

Describe a specific use case for the feature: I am looking at a metric on a dashboard for the disk usage of my server and I want to know how recently the number I see was reported.

last_value_time_report_mockup
elasticmachine commented 1 year ago

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

drewdaemon commented 1 year ago

Relates to this discussion: https://github.com/elastic/integrations/issues/1437

markov00 commented 1 year ago

Use of tooltip or allow the user to put it on the title, or in some other text field on the visualization is definitely useful. There is also the need to keep this time label updated, probably without requiring an ES query, these timers should be configured to automatically update at selected meaningful intervals if the label is always visible.

markov00 commented 2 months ago

This should probably be visible at the dashboard level rather then at a single panel level. I've seen tools showing this in a bottom bar, showing something like this for example showing the time passed since the value was rendered.

Image

cc @gvnmagni this could be useful in the new dashboard redesign