我试图memcached
在 influxdb + grafana 中绘制数据,我发现ps_cputime
在microsecond
.
我如何将它转换为易于理解的人类可读格式。
涌入数据库:
> select * from memcached_syst limit 10;
name: memcached_syst
time host type value
---- ---- ---- -----
1549595956627272659 ostack-infra-01_memcached_container-167ecaa7 ps_cputime 15853819249
1549596016550515653 ostack-infra-01_memcached_container-167ecaa7 ps_cputime 15853923573
1549596076550356985 ostack-infra-01_memcached_container-167ecaa7 ps_cputime 15854047878
1549596136550415911 ostack-infra-01_memcached_container-167ecaa7 ps_cputime 15854165969
1549596196550481720 ostack-infra-01_memcached_container-167ecaa7 ps_cputime 15854288341
1549596256550522792 ostack-infra-01_memcached_container-167ecaa7 ps_cputime 15854387422
格拉法纳查询:
SELECT mean("value") FROM "memcached_syst" WHERE ("host" =~ /^$host$/ AND "type"='ps_cputime' ) AND $timeFilter GROUP BY time($interval) fill(null)
我能在这里做些什么来使它在parcent?