Kibana: Field format : add suffix option

Created on 6 Nov 2016  路  4Comments  路  Source: elastic/kibana

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 renders 12 ms

FieldFormatters Kibana Management KibanaApp enhancement

Most helpful comment

@thomasneirynck
I mean the first option.

Add just a custom "text suffix" indicating measurement unit (ms, kg, ml, ...).

All 4 comments

What do you have in mind specifically?

  • the ability to add a piece of text somewhere in the format.
  • the auto-conversion of values based on the UOM (e.g. similar to bytes, which can format to kb, Mb, ...)

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
I mean the first option.

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?

Was this page helpful?
0 / 5 - 0 ratings