Frustrated with Grafana/Influxdb and Collectd

jinu

Dabbler
Joined
Feb 11, 2021
Messages
15
Hi Folks
I am at my wits end trying to get this combination to work. For whatever reason some of the data/metrices gathered by collectd is not being sent to influxdb. in my setup grafana and influxdb are running in a jail. Some of the data like CPU data flows to influxdb. But some of the data like disktemp does not. I checked for rrd files on the main server and i can find the updated rrd files which was last updated about 5 minutes back, but in influxdb its over 5 hours old

Any ideas what could be going wrong ?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Try inside your jail
Code:
influx
> use <your-database-name>;
> show series;
to see the structure of the data sent.

My influx ingres looks like this:
Code:
[[graphite]]
  enabled = true
  database = "graphite"
  retention-policy = ""
  bind-address = ":2003"
  protocol = "tcp"
  consistency-level = "one"

  separator = "."

  templates = [
    "servers.* .hostname.resource.instance.measurement*",
  ]


HTH,
Patrick
 

jinu

Dabbler
Joined
Feb 11, 2021
Messages
15
well i dropped the influx db and recreated it and then restarted influxdb. Now the disktemp is flowing fine, but now the aggregation data stopped flowing. The templates i am using are

"servers.*.disktemp.* .host.measurement.disk.field", "servers.*.aggregation.* ...measurement.field", "servers.*.load.* ...measurement.field",

now i dont know what to do to make aggregation data flow to influx
 

jinu

Dabbler
Joined
Feb 11, 2021
Messages
15
managed to get most of it working. by changing measurement.field to measurement.field*. Now as i try to read the data i came across a new problem. This is related to CPUTEMP data. Here cpu temp is collected at each core level. But the value that is read and stored is a 4 digit number. I thought initially that is was probably storing without decimals, but when i compare that to the CPU temp reported by TRUENAS in "Reporting" it does not match.

The below is a sample of the values i am seeing at this time temp reported by TRUENAS reporting is 37 degree C

1613728053000000000 3081 1613728063000000000 3091 1613728073000000000 3101 1613728083000000000 3081 1613728093000000000 3091 1613728103000000000 3101

So does anyone know how to convert the CPUTEMP data to Celsius degrees ?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
So does anyone know how to convert the CPUTEMP data to Celsius degrees?
measurement / 10 - 273.15

So measurement is in decigrade above absolute zero.
 

jinu

Dabbler
Joined
Feb 11, 2021
Messages
15
Thanks got it working.
 
Top