On Thu, Oct 29, 2020 at 05:07:22PM +0800, Wu Fengguang wrote:
+# Output: +# eg: +# { +# '4K|1G' => { +# 'openeuler 20.03' => [
这种不匹配echarts格式啊
这一步是把查出来的job, 按照x_params 自动分组 { x_params_1 => { dimension_1 => [job1, job2], dimension_2 => [job3, job4] }, x_params_2 => {...} } 这里顺便按template中的metrics过滤了一下,所以每个job就只有 'stats' => {'metric' => xxxx}
下一步,为每一组生成matrix: { x_params_1 => { dimension_1 => matrix, dimension_2 => matrix }, x_params_2 => {...} }
最后, 按组(x_params)compare, 输出适合echart的json数据
生成matrix 和compare的功能主要服用之前的代码,类似于原先的group compare模式
Thanks, Weitao
+# {'stats' => {'fio.write_iops' => 312821.002387, 'fio.read_iops' => 212821.2387}}, +# {'stats' => {'fio.write_iops' => 289661.878453}},
Thanks, Fengguang
}
+# {'stats' => {'fio.write_iops' => 312821.002387, 'fio.read_iops' => 212821.2387}}, +# {'stats' => {'fio.write_iops' => 289661.878453}},
Thanks, Fengguang