Adds timeseries of iowait

This commit is contained in:
Simone Mainardi 2020-02-27 18:20:42 +01:00
parent 2dbdc13ec6
commit f6bd1b3493
5 changed files with 53 additions and 9 deletions

View file

@ -63,4 +63,17 @@ end
-- ########################################################
function ts_dump.dump_cpu_states(ifid, when, cpu_states)
if cpu_states and cpu_states["iowait"] then
ts_utils.append("system:iowait",
{
ifid = ifid,
iowait_pct = cpu_states["iowait"]
},
when)
end
end
-- ########################################################
return ts_dump