coussej / node-opcua-logger

An OPCUA Client for logging data to InfluxDB! 🔌 🏭
https://www.factry.io
MIT License
180 stars 64 forks source link

Different measurements created for different sensor fields with OPC-UA ! #73

Open sinfergit opened 2 years ago

sinfergit commented 2 years ago

I have got a requirement to store device data comes from different sensors such as for temperature,humidity,pressure etc. in a time series database but inside a one measurement with different fields such as temp,hum etc. But at the moment data will be stored in different measurements as in the following image (Assume Tag11 equals to temp and Tag12 equals to humidity) image

But my requirement is to store the data as in the following image (originally logged with Telegraf from influx) image

I need to log my data this way because I want to use Influx Kapacitor UDF to receive multiple fields(Tag11,Tag12) from a single influx db measurement as in the following example

image

Please tell me if it is possible to change the way data points are written to into influx db using the opcua_logger in the desired way.

Thanks