InfluxDB data types

I am trying to record the state data from some device trackers into influx. I have a default_measurement set in influx config, unfortunately the state is currently set to int and the device tracker wants a string. Is there anyone of adding the unit_of_measurement attribute to devices, or is there any other work around anyone can think of.

Cheers in advance
Zak

I think if you drop the measurement in question, influxdb will recreate it with the correct data type as soon as new data comes in.
At least that’s how it is for my setup. I don’t have a default_measurement value set in my influxdb.conf, though.

Sebastian

1 Like