mblackstock / node-red-contrib-influxdb

Node-RED nodes to save and query data from an influxdb time series database
Other
64 stars 46 forks source link

Dynamic measurement names #137

Closed Benki closed 9 months ago

Benki commented 1 year ago

Hi there,

is there a way to create dynamic measurement names from the payload (e.g. topic name) when writing to influx?

Such as Measurement: ping.servers.{msg.payload.topic}

Thanks a lot.

Best regards Benki

mblackstock commented 9 months ago

Yes, the documentation associated with the iout node describes this feature: "If the measurement field is not set in the node configuration, the user can send in data with a specified measurement name in msg.measurement to overwrite the measurement field in the configuration of the node."