Hi @alenahakkarainen1
OK, so this is possible, but much of what I said earlier holds true, i.e. Grafana needs to have a datasource. In this case, what ChatGPT left out is that if you send your data directly to Grafana Cloud using HTTP, it will be stored in either Prometheus or Graphite. Here are the official links to both methods:
Send metrics to Prometheus endpoint
Send metrics to Graphite endpoint
Having said that, I created a very rudimentary flow in Node-RED to send temperature and humidity values via HTTP to Prometheus hosted in Grafana Cloud. Here is the flow:
[{"id":"8a4adf449ce79d58","type":"http request","z":"ac2f4d692b3d4396","name":"","method":"POST","ret":"txt","paytoqs":"ignore","url":"https://influx-prod-10-prod-us-central-0.grafana.net/api/v1/push/influx/write","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"basic","senderr":false,"headers":[],"x":630,"y":420,"wires":[["2c8ad8ab20b22332"]]},{"id":"27b6da41d03a84ee","type":"function","z":"ac2f4d692b3d4396","name":"function 66","func":"// Sample data\nconst measurement = \"household_data_test1\";\nconst tags = \"room=kitchen\";\nconst fields = \"temperature=76,humidity=55.55\";\n\n// Combine into Influx Line Protocol format\nconst influxData = `${measurement},${tags} ${fields}`;\n\n// Send the formatted data to the next node\nmsg.payload = influxData;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":390,"y":420,"wires":[["8a4adf449ce79d58"]]},{"id":"2c8ad8ab20b22332","type":"debug","z":"ac2f4d692b3d4396","name":"debug 146","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":850,"y":420,"wires":[]},{"id":"88a8a3484cd8103a","type":"inject","z":"ac2f4d692b3d4396","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":420,"wires":[["27b6da41d03a84ee"]]}]
and here are the details worth covering:
Function node contains the following. You could obviously tailor this to accept actual temperatures or humidity values from a sensor.
// Sample data
const measurement = "household_data_test1";
const tags = "room=kitchen";
const fields = "temperature=76,humidity=55.55";
// Combine into Influx Line Protocol format
const influxData = `${measurement},${tags} ${fields}`;
// Send the formatted data to the next node
msg.payload = influxData;
return msg;
HTTP Request Node config looks like this. The URL, username and password (token) come from the Details section of Prometheus metrics in the cloud stack.
And the quick n’ dirty dashboard containing a few points of data sent by Node-RED: