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?
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
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
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.