Type conflict -- Telegraf MQTT input passes float, expects int


I have a device sending a single value thru a mosquitto server into telegraf. The data is a floating point value with 2 degrees, i.e, 24.25. However, when I pass a value into telegraf, I get this on the output:

Field type conflict, dropping conflicted points: Response Error: Status Code [400], expected [204], [partial write: field type conflict: input field “value” on measurement “mqtt_consumer” is type float, already exists as type integer dropped=2]

My telegraf.conf looks like this

servers = [“localhost:1883”]
qos = 0
connection_timeout = "30s"
topics = [
client_id = ""
data_format = "value"
data_type = “float”

The problem is, I have no idea where else it’s defined as a integer. The word “integer” isn’t even in my config doc. Is there some sort of default I need to change, or another configuration somewhere?


This error is coming from InfluxDB, the field must have been stored with a different type previously.