Closed Dees7 closed 6 years ago
Yes it should work with any input. I believe the problem here is that by default the JSON data format does not capture string fields. I believe you will want to use json_string_fields
. Check this document for more info, but keep in mind some of these options require Telegraf 1.8.0.
Relevant telegraf.conf:
System info:
Telegraf unknown (git: master 3268937c) mosquitto is an MQTT v3.1 broker.
Steps to reproduce:
I have mqtt-messages like there:
There is "POWER":"1" (not "POWER":1) and telegraf can't push it "as is" to influx. I tring convert with an "additionally config":
There is field POWER exist in the databese already and has type 'float' (from\for other clients) and I'd like to write mine values in that field.
Telegraf doesn't see metric
POWER
Why? Is it possible to convert mqtt_consumer inputs?