I’ve got metricbeat diskio time values from elasticsearch and would like to calculate and graph avg. IO service time values rather than sampled total service time values per sampled period (system.diskio.{read|write}.time), ie. divide by number of IO requests per sample period found in another field (system.diskio.{read|write}.count).
Thought that it might be possible to make such calculation in a script… but forgot howto reference another ES field in a script…