[Lens] Support a formatter or format option which append "per second" "per minute" "per hour" #76714
Labels
discuss
enhancement
New value added to drive a business result
Feature:Lens
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Expected input
Users can configure this in addition to another formatter. They might need to indicate the suffix manually, or by selecting predefined suffixes. One of the predefined suffixes can be "auto", which would work with the auto date histogram to label the current time interval.
Expected output
There are three main uses:
Labeling the values in date histograms as representing a specific time period, such as "Sum of bytes per 3 hours"
Formatting data that already represents "per second" values, such as Apache metricbeat with a field called
bytes_per_sec
. We should be able to use the bytes formatter + per second suffix, to get5Kb/s
as an example. In this case the user needs to tell us the units.Formatting a calculated rate, where the calculation is scaled by time. For example rate of sales per hour could be shown as "5,000/h" or "5,000 per hour"
Implementation notes
Because formatters are not composable in Kibana today, I think this should be implemented as a Lens-only feature. Formatters are part of the datasource, and these suffix options should be added to the datasource.
The text was updated successfully, but these errors were encountered: