Mqtt telegraf json subscribe Multiple topics enter different measurements

Hi,@Giovanni_Luisotto :pray: :pray:

#################### telegraf conf #################
  topics = [
    "/topic/info/+",
    "/topic/upload/+"
  ]
 data_format = "json"

############################################
Use the same bucket to distinguish multiple measurements ????

I see that the mqtt input has a whole config section to manage this kind of serialization.
there is also an example that should fit your case.

if that’s not enough you can:

  • use 2 different mqtt inputs and specify a fixed measurement with name_override (here)
  • find a way to distinguish the 2 datasets using filtering and the override processor

Thank you very much for your prompt :muscle:

Hi, @Giovanni_Luisotto
Can I see your configuration, please?
Because I added mqtt topic resolution, all topic configurations received messages, and all corresponding influxdb stored data sent to a topic :face_with_hand_over_mouth:

This is another bucket, I plan different configurations for each theme to facilitate updating new themes


Can this be achieved :pray: