Hello,
I have a lot of trouble setting up the correct parsing for my mqtt datastream.
this is a view to the data:
and here is my telegraf.conf
urls = ["http://192.168.178.123:8086"]
token = "xxxxxxxxxxxxxxxxxx"
organization = "myorg"
bucket = "data"
[[outputs.file]]
files = ["stdout", "/tmp/metrics.out"]
[[inputs.mqtt_consumer]]
servers = ["tcp://192.168.178.123:1887"]
topics = [
"solarmodul/SENSOR/#",
]
data_format = "json"
username = "xxxxxx"
password = "xxxxxx"
[[inputs.mqtt_consumer]]
servers = ["tcp://192.168.178.123:1887"]
topics = [
"SchachtSensor/Luftdruck/#"
[[inputs.mqtt_consumer.topic_parsing]]
topic = "_/topic"
measurement = "measurement/_"
]
data_format = "value"
data_type= "float"
username = "xxxxxx"
password = "xxxxxx"
I did get this bottom “SchachtSensor/Luftdruck” to show up on influx but only as “value” … so this way all values would be written in the same spot.
Thanks for your help I just didn’t find any helpfull tutorial on this parsing problem