# Sending Values from NodeRed to Grafana with SimpleJSON

**URL:** <https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675>\
**Category:** General\
**Created:** [14 May 2020 22:48 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675 "2020-05-14T22:48:11Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![mtp211](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mtp211](https://discourse.nodered.org/u/mtp211)\
**Post date:** [15 May 2020 18:50 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/21 "2020-05-15T18:50:14Z")

</div>

```auto
{}

```

Seems to work but when I try to connect it as new dashboard on grafana it gives bad way request

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 May 2020 20:51 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/22 "2020-05-15T20:51:33Z")

</div>

Are grafana and node red running in the same machine? is either of them running in a container such as Docker?

---

<div class="post-metadata">

**Author:** ![mtp211](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mtp211](https://discourse.nodered.org/u/mtp211)\
**Post date:** [15 May 2020 21:06 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/23 "2020-05-15T21:06:33Z")

</div>

Neither of them runs in a docker. Both in same machine. Influx db connects without a problem.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [15 May 2020 21:11 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/24 "2020-05-15T21:11:09Z")

</div>

What is the "forward oauth identity" used for ? I dont see that in my grafana. And "skip tls verify" is not needed as it is not https.

---

<div class="post-metadata">

**Author:** ![tamerplc](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@tamerplc](https://discourse.nodered.org/u/tamerplc)\
**Post date:** [15 May 2020 22:13 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/25 "2020-05-15T22:13:02Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/1/31af26a02486bada22b20e7a9b8a17a312f85454.png)  
it's working with fine as per the shared video in the first Post .  
the challenge for me what if I have 3 values and I need to present them on Grafana .  
as per the video, simplejson look to what publish without any tag identification .  
any idea on this . as per below i am able to read the value in Grafana using Simplejson without any Tag name,  
I hope if I can browse tag names and purplish different tags.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/2/622dcd3c10e777f4f6009f8e553acdf7732bb7c5.png)

---

<div class="post-metadata">

**Author:** ![mtp211](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mtp211](https://discourse.nodered.org/u/mtp211)\
**Post date:** [15 May 2020 22:26 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/26 "2020-05-15T22:26:31Z")

</div>

What url you use on grafana ?

---

<div class="post-metadata">

**Author:** ![tamerplc](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@tamerplc](https://discourse.nodered.org/u/tamerplc)\
**Post date:** [15 May 2020 22:31 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/27 "2020-05-15T22:31:09Z")

</div>

below is the URL defined in Grafana, lochalhost or IP notworking in my case . Be sure you use /simplejson in httpnode (GET)  
[http://machinename:1880/simplejson](http://machinename:1880/simplejson)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/b/5b48620b7afcde05f6c56aa7e8de9070a697ad27.png)

---

<div class="post-metadata">

**Author:** ![mtp211](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mtp211](https://discourse.nodered.org/u/mtp211)\
**Post date:** [15 May 2020 22:34 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/28 "2020-05-15T22:34:46Z")

</div>

machinename also not working for me....

---

<div class="post-metadata">

**Author:** ![mtp211](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mtp211](https://discourse.nodered.org/u/mtp211)\
**Post date:** [15 May 2020 22:57 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/29 "2020-05-15T22:57:38Z")

</div>

![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/2/82eb90a4c84a447643dfb29d8a4fe87f52a34d40.png)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [16 May 2020 01:01 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/30 "2020-05-16T01:01:00Z")

</div>

It will be localhost if running on the same machine. Otherwise the ip address of the Node-RED server (or IP name if you have that set up).

---

<div class="post-metadata">

**Author:** ![mtp211](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mtp211](https://discourse.nodered.org/u/mtp211)\
**Post date:** [16 May 2020 07:34 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/31 "2020-05-16T07:34:29Z")

</div>

not working. neither localhost or machinename but postman gives result

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [16 May 2020 08:19 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/32 "2020-05-16T08:19:51Z")

</div>

Check the grafana logs when you try to test the connection, should be somewhere in /var/log/grafana.log

---

<div class="post-metadata">

**Author:** ![mtp211](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mtp211](https://discourse.nodered.org/u/mtp211)\
**Post date:** [16 May 2020 22:21 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/33 "2020-05-16T22:21:57Z")

</div>

I cannot find it on windows.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 May 2020 07:43 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/34 "2020-05-17T07:43:45Z")

</div>

A google search led me to [https://grafana.com/docs/grafana/latest/installation/troubleshooting/](https://grafana.com/docs/grafana/latest/installation/troubleshooting/) where it says they are normally in `<grafana_install_dir>/data/log`

---

<div class="post-metadata">

**Author:** ![mtp211](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mtp211](https://discourse.nodered.org/u/mtp211)\
**Post date:** [17 May 2020 20:51 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/35 "2020-05-17T20:51:28Z")

</div>

There isnt such file on windows.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 May 2020 21:15 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/36 "2020-05-17T21:15:57Z")

</div>

The location is configured in the grafana configuration file. On Ubuntu that is /etc/grafana/grafana.ini. Presumably where that is on Windows is documented somewhere as there are other things in there that need setting up for user authentication and so on.

---

<div class="post-metadata">

**Author:** ![mtp211](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mtp211](https://discourse.nodered.org/u/mtp211)\
**Post date:** [17 May 2020 22:47 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/37 "2020-05-17T22:47:17Z")

</div>

I fixed it !! Thank you !!

---

<div class="post-metadata">

**Author:** ![mtp211](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mtp211](https://discourse.nodered.org/u/mtp211)\
**Post date:** [17 May 2020 22:47 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/38 "2020-05-17T22:47:36Z")

</div>

have you tried to send multiple values ?

---

<div class="post-metadata">

**Author:** ![tamerplc](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@tamerplc](https://discourse.nodered.org/u/tamerplc)\
**Post date:** [19 May 2020 23:11 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/39 "2020-05-19T23:11:18Z")

</div>

here the output format  
"[{"target":"flow","datapoints":[[2,1589929638228]]}]"  
we have to work in the function to able to get different targets . and till now i am not able to do it  
i hope if someone in community can help  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/9/89b1582164248db313d489dabab7331048418c98.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 June 2020 23:11 UTC](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675/40 "2020-06-02T23:11:24Z")

</div>

Closed on 2 June 2020 23:11 UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/sending-values-from-nodered-to-grafana-with-simplejson/26675.md?page=1)
