# Advice for structuring data for MQTT and InfluxDB

**URL:** <https://discourse.nodered.org/t/advice-for-structuring-data-for-mqtt-and-influxdb/52640>\
**Category:** General\
**Created:** [24 October 2021 03:11 UTC](https://discourse.nodered.org/t/advice-for-structuring-data-for-mqtt-and-influxdb/52640 "2021-10-24T03:11:33Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![grant1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grant1/32/49890_2.png) [@grant1](https://discourse.nodered.org/u/grant1)\
**Post date:** [24 October 2021 11:52 UTC](https://discourse.nodered.org/t/advice-for-structuring-data-for-mqtt-and-influxdb/52640/5 "2021-10-24T11:52:02Z")

</div>

OK, thanks for the explanations. No, not hundreds of pieces of equipment in the plant, but eventually 15 to 20, and each with 5 to 15 sensors monitoring various parameters. The data is coming from 4 sources: Modbus 485 devices, Modbus RTU devices, Opto22 devices, and Raspberry Pi's.

I plan to organize my Modbus data using the buffer-parser (that [you outlined here](https://discourse.nodered.org/t/writing-data-to-indluxdb-batch-node/48460/25)) and assign tags before sending to Influx, and for the Opto22 and RPi's, send it to Influx using tags. So on the same piece of equipment that has both Modbus and non-Modbus data, I will send separate measurements with meaningful tags, and few (if any) null values. I will use the Join/Trigger nodes only in those instances where it absolutely makes sense.

There are [many posts on MQTT & Influx](https://discourse.nodered.org/t/data-entry-into-influxdb/52068) here on the forum that I should be able to get the data organized, but am I correct to assume that MQTT payload & topic would correspond to the Influx field & tag, respectively?

---

_[View the full topic](https://discourse.nodered.org/t/advice-for-structuring-data-for-mqtt-and-influxdb/52640)._
