Formatting output in a metric visualization


(Emil Brolin) #1

I'm having a couple of metric outputs to show average processing times, but I get alot of decimals in my answers.

Visualization edit view

I've tried to set the number formatting for the field I'm calculating the average from, but still there is alot of decimals.

Number formatting.

Any ideas?


(Marius Dragomir) #2

Hello,

That doesn't look like the the same field is being used in your metric visualization. You have Task time as the field used in the first screenshot and another one in the second screenshot. Are you using that second field in something like a scripted field?


(Emil Brolin) #3

Hi!

TaskTime is used in both places, and both TaskTime and kpiData.Execution Time (Clock).long are formatted with only one decimal.


(Marius Dragomir) #4

Ok, trying to track down the issue. Are you using 5.6.0 or a newer version of Kibana? If not, you might be encountering the problem that has been fixed in this PR: https://github.com/elastic/kibana/pull/12913


(Emil Brolin) #5

I'm using 5.6.1. Should I upgrade the files as in this instruction?

https://github.com/Dreadnoth/kibana/commit/fea4ee1ae076ae159427f999010ceab60f3d5114


(Marius Dragomir) #6

I just checked this locally and it looks like it's a regression. It seems that the average metric doesn't take in account the formatting for the field if you do a Split by field, like you're doing there.
I've opened a new bug on this here: https://github.com/elastic/kibana/issues/14445


(system) #7

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.