Hi guys,
I am trying to using telegraf to collect sensor data and insert to influxDB.
I am coming up with a trouble.
That is, how to insert a string array to influxDB with JSON format?
Here is my telegraf.conf
[[inputs.mqtt_consumer]]
/**************************
…,…
data_format = “json”
tag_keys = [
“voltage”,
“time_ori”,
]
…
*********************/
And, following are my MQTT publisher’s content,
{“voltage”:[22, 44], “time_ori”:[“aaa”,“bbb”] }
I can see voltage is insert to DB successfully, but “time_ori” fail.
May I misunderstand something?
Thanks a lot.