简体   繁体   English

使用Telegraf的涌入数据在Grafana上绘制CPU使用率%

[英]Graphing CPU Usage % on Grafana using influxDB data from Telegraf

I have grafana 3.0.4 / influxdb 0.13.0 / telegraf 0.13.1 我有grafana 3.0.4 / Influxdb 0.13.0 / telegraf 0.13.1

I am trying to graph overall CPU usage by %. 我试图用%来表示整体CPU使用率。

When I create a query using the idle time, I get exactly that (I'm looking for 100 - idle time) (usage) 当我使用空闲时间创建查询时,我得到了(我正在寻找100 - 空闲时间)(使用)

idleusage

I switched to manual mode and did exactly that: 我切换到手动模式并完成了:

100 IDLETIME

and it works great.. 它很棒..

But is there a way to use a math function or something in the normal editor versus dropping into the manual text mode? 但有没有办法在普通编辑器中使用数学函数或其他东西而不是进入手动文本模式?

Some slightly convoluted math using Grafana's Math field setting should do what you want without dropping into manual text mode. 使用Grafana的数学字段设置的一些稍微复杂的数学运算应该做你想要的,而不会进入手动文本模式。

Math(* -1 + 100)

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM