Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Graphing CPU Usage % on Grafana using influxDB data from Telegraf

I have grafana 3.0.4 / influxdb 0.13.0 / telegraf 0.13.1

I am trying to graph overall CPU usage by %.

When I create a query using the idle time, I get exactly that (I'm looking for 100 - idle time) (usage)

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?

like image 829
Drew Avatar asked Jun 04 '16 19:06

Drew


1 Answers

Some slightly convoluted math using Grafana's Math field setting should do what you want without dropping into manual text mode.

Math(* -1 + 100)

enter image description here

like image 59
Gunnar Avatar answered Oct 21 '22 03:10

Gunnar