i'm using telegraf and i can see that the n_cpus field is available under 
systems. i also see that there is the load1 field.

what i would like to do is to plot the total total stacked loads of a selection 
of hosts and have that overlaid with the total number of cores as a threshold 
line. i'm essentially trying to replicate the ganglia cpu/load plot.

so far i have (in grafana):

SELECT mean("load1") FROM "system" WHERE "host" =~ /$hosts/ AND $timeFilter 
GROUP BY time($interval), "host" fill(null)

and

SELECT sum("n_cpus") AS n_cpus FROM "system" WHERE "host" =~ /$hosts/ AND 
$timeFilter GROUP BY time($interval) fill(null)

however, the latter does a sum of all values - given that telegraf runs every 
10s, it ends up overcounting the actual number of cpus in the system.

how can i get a meangingful count of the number of cpus in in $hosts?

-- 
Remember to include the version number!
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/49ece44d-d0cb-4144-a413-0c0c4a77497a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to