I have created function to insert data in influx db 2.0 where i would like to insert 10 different parameter with measurement and tags. so i can filter data from m/c wise by using msg.tags. But not able to insert msg.tags value in database. Function node code as below.
msg.measurement = "MTR-MATRIX";
msg.tags = { machine_name: "D-1" };
msg.payload = {
ai_LH_Platen_TempPV: msg.payload.ai_LH_Platen_TempPV,
ai_LH_Jacket_TempPV: msg.payload.ai_LH_Jacket_TempPV,
ai_RH_Platen_TempPV: msg.payload.ai_RH_Platen_TempPV,
ai_RH_Jacket_TempPV: msg.payload.ai_RH_Jacket_TempPV,
ai_LH_Press_IntPressurePV: msg.payload.ai_LH_Press_IntPressurePV,
ai_RH_Press_IntPressurePV: msg.payload.ai_RH_Press_IntPressurePV,
ai_LH_Press_IntTempPV: msg.payload.ai_LH_Press_IntTempPV,
ai_RH_Press_IntTempPV: msg.payload.ai_RH_Press_IntTempPV,
ai_RH_Press_ShapingPV: msg.payload.ai_RH_Press_ShapingPV,
ai_LH_Press_ShapingPV: msg.payload.ai_LH_Press_ShapingPV
};
return msg;
I wanted to use db to create Dynamic dashboard in Grafana using m/c name. So, i can filter by m/c name.
help me to find out minor error i am missing.