Trying to graph CPU temp in Grafana

Status
Not open for further replies.

Fish

Contributor
Joined
Jun 4, 2015
Messages
108
Hey guys,

I'm trying to graph my CPU temp in Grafana. I've managed to get Freenas to dump all the data into Influx, but the data seems off or I'm using the wrong units.

When I manually query influx, here's what I see:

Code:
> SELECT * from "servers.freenas_local.cputemp-0.temperature" LIMIT 10
name: servers.freenas_local.cputemp-0.temperature
time				value
----				-----
1535414678000000000 3051
1535414688000000000 3051
1535414698000000000 3051
1535414708000000000 3061
1535414718000000000 3061
1535414728000000000 3061
1535414738000000000 3051
1535414748000000000 3051
1535414758000000000 3071
1535414768000000000 3061


3051 Kelvin seems way too high to be accurate. What's up?
 

Fish

Contributor
Joined
Jun 4, 2015
Messages
108
Solved it: For whatever reason, FreeNAS reports the temperature in Kelvin but multiplied by 10.

So to convert to Fahrenheit, use the Math operator with "/10*(9/5)-459.67"
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Kelvin multiplied by 10? As an engineer, that really grinds my gears. Please file a bug report for that, asking that the factor of 10 be eliminated.

Yes, the degree Fahrenheit also grinds my gears, but that's self-inflicted by its users.
 
Status
Not open for further replies.
Top