Before doing anything in Node-RED, you need to create an organization, token and bucket in InfluxDB. You can do all of this via the Influx Data Explorer located at http://your-ip-addr:8086
Once you do the above, in Node-RED use a function node to define your fieldname & value and your tag(s) and their values. The function node then feeds into this node to populated InfluxDB.