I have setup Telegraf subscribed to MQTT and writing the data to InfluxDB. I have a lot of data coming in and it works excellent up until the moment The Mqtt caches messages and sends them all at once. Telegraf sees all messages and in the logs shows that it writes them to Influx, but Influx does not show them in the database. Can someone point me in the correct direction on how to troubleshoot this issue or how to change configuration accordingly? The incoming data is Json format and I am parsing it as such.
Thank you for the reply. The message sent is in json and it is sending a “time” field in unix timestamp. Should I add this as a tag or this would not matter?
I did change the json to use unix at some point, at lease I read on this in some documentation, but nothing really changed.
Hi, Thank you for your help. I figured it out. When I receive all the messages at once, Telegraf writes them to Influx successfully but since it writes them in batches and uses the influx time stamp, they are written in every possible nanosecond. As I use Grafana I set the query time to 1 ms and then 1 ns that actually crashes Influx. If I could use the json time stamp, that would be great but saddly I have no success.