Hi Everybody,
I’m using Telegraf with MQTT as an input plugin. MQTT is sending these kind of JSON messages:
{“Count”:905658,“Momentary”:180014.625000,“Units”:40,“UnitsText”:“ltr”,“Period”:30,“PeriodText”:“hour”}
Relevant parts of telegraf.conf:
servers = [“tcp://broker.mqttdashboard.com:1883”]
topics = [ “Counters/#”,]
qos = 2
data_format = “json”
Telegraf cannot parse the input:
2021-12-21T19:09:42Z E! [inputs.mqtt_consumer] Error in plugin: metric parse error: expected tag at 1:42: “{“Count”:893409,“Momentary”:180011.250000,“Units”:40,“UnitsText”:“ltr”,“Period”:30,“PeriodText”:“hour”}”
JSON LINT finds no errors in my JSON messages…
I’ve been busting my head on this one for half a day now, anybody know what’s wrong?