-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Field format : add suffix option #8984
Comments
What do you have in mind specifically?
The first case would be easier. In the second case, the conversion would really depend on the quantity kind of the UOM. Duration (seconds, hours, days, weeks, ...), distances (ft, meter, mile, ...) all would need different conversion rules. |
@thomasneirynck Add just a custom "text suffix" indicating measurement unit (ms, kg, ml, ...). |
Changed the description to suffix only |
Has this issue been addressed? is there a way to add units to durations? |
Fixed in 7.10 by #76729 |
Hi,
|
Durations and bytes are the main formatters we have with variable units, where the value is not stored in the same format as its output and where the output might change based on the quantity. We also use a suffix in Lens with the "normalized time" option that can display "/s" or "/h" rates. I wasn't sure that there was a need for a static suffix like Also, the more powerful duration formatter that APM uses is in the process of being added to index patterns, and has a separate issue tracking it- didn't mention it earlier. |
Thanks for your answer and your explanations. And yes, I would like a "text" suffix, available for "Number" (and eventually "Color") field formats. |
Okay, reopening as we don't have what you're asking for. I assume that we want composable formatters, so that you can use a number formatter with an additional suffix. |
Yes, it is not a specific formatter, but a new option in ‘number’ formatter. |
Pinging @elastic/kibana-app-services (Team:AppServicesSv) |
Thank you for contributing to this issue, however, we are closing this issue due to inactivity as part of a backlog grooming effort. If you believe this feature/bug should still be considered, please reopen with a comment. |
so please re-open. |
When we define a custom format for a field, it would be great to add an optional parameter "unit" for number types to define a custom unit measurement.
For example, for a "duration" field, it allows to define "ms" as measurement unit.
And when, it is displayed in a kibana visualization, for value
12
, it renders12 ms
The text was updated successfully, but these errors were encountered: