Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lens] Support a formatter or format option which append "per second" "per minute" "per hour" #76714

Closed
Tracked by #74813
wylieconlon opened this issue Sep 3, 2020 · 1 comment · Fixed by #82852
Closed
Tracked by #74813
Labels
discuss enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@wylieconlon
Copy link
Contributor

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:

  1. Labeling the values in date histograms as representing a specific time period, such as "Sum of bytes per 3 hours"

  2. 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 get 5Kb/s as an example. In this case the user needs to tell us the units.

  3. 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.

@wylieconlon wylieconlon added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Sep 3, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants