# Question about importing data into the dashboard

**URL:** https://discourse.nodered.org/t/question-about-importing-data-into-the-dashboard/86616
**Category:** General
**Tags:** node-red-dashboard
**Created:** [21 March 2024 04:06 UTC](https://discourse.nodered.org/t/question-about-importing-data-into-the-dashboard/86616 "2024-03-21T04:06:09Z")
**Posts on this page:** 9
**Page:** 2

<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: [26 March 2024 16:34 UTC](https://discourse.nodered.org/t/question-about-importing-data-into-the-dashboard/86616/22 "2024-03-26T16:34:55Z")

</div>

Or perhaps the data comes from a database such as MySQL or Influxdb. Whoever built the Grafana dashboard can tell you how to fetch the data.

---

<div class="post-metadata">

### Author: ![ErnestoBalestro](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ernestobalestro/32/89452_2.png) [@ErnestoBalestro](https://discourse.nodered.org/u/ErnestoBalestro)
#### Post date: [5 April 2024 02:44 UTC](https://discourse.nodered.org/t/question-about-importing-data-into-the-dashboard/86616/23 "2024-04-05T02:44:17Z")

</div>

Sorry for the delay in responding. I had particular unforeseen events. I still can't import data from Zabbix/Grafana into my node-red. I have some suspicions about my error, but possible solutions didn't work out. The links that I was importing from grafana had the part &from=1712272842393&to=1712283642393& in their URL, which gives exactly the numbers that are appearing on the dashboard. I tried modifying it to &from=now-24h&to=now, but without success. I also tried putting my username and password in the URL (I know it's possible), but the data didn't import. I also tried to import the data via the HTTP Request node, entering the site's username and password, without success. At this specific point in the Debug node the error "JSON parson error" appeared.

---

<div class="post-metadata">

### Author: ![ErnestoBalestro](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ernestobalestro/32/89452_2.png) [@ErnestoBalestro](https://discourse.nodered.org/u/ErnestoBalestro)
#### Post date: [5 April 2024 02:55 UTC](https://discourse.nodered.org/t/question-about-importing-data-into-the-dashboard/86616/24 "2024-04-05T02:55:33Z")

</div>

For evaluation purposes, these are two of the links to the original Zabbix data, without being images in Grafana. Attached, I will include prints of the images. I tried to import these files without success.

[Warning [refreshed every 30 sec.]](https://monitoramento.jrcomercio.com.br/history.php?action=showgraph&itemids%5B%5D=36255) (Memory)

[Warning [refreshed every 30 sec.]](https://monitoramento.jrcomercio.com.br/history.php?action=showgraph&itemids%5B%5D=36254) (CPU)

 ![Memory](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1a6e665289e75a18f2221b4545f4e53af96eef76.png)  
 ![CPU](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/0/e09d131931a913862a3577ecce718d9f192cddc9.png)

---

<div class="post-metadata">

### Author: ![ErnestoBalestro](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ernestobalestro/32/89452_2.png) [@ErnestoBalestro](https://discourse.nodered.org/u/ErnestoBalestro)
#### Post date: [5 April 2024 02:58 UTC](https://discourse.nodered.org/t/question-about-importing-data-into-the-dashboard/86616/25 "2024-04-05T02:58:12Z")

</div>

I tried to import the data from the original links, but it gave the same error that I mentioned previously. When I tried to replace the Template node with the HTTP request it gave the error " " instead of the numbers to be imported by the Dashboard. Either using the Grafana URL or the original Zabbix URL

---

<div class="post-metadata">

### Author: ![ErnestoBalestro](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ernestobalestro/32/89452_2.png) [@ErnestoBalestro](https://discourse.nodered.org/u/ErnestoBalestro)
#### Post date: [5 April 2024 04:29 UTC](https://discourse.nodered.org/t/question-about-importing-data-into-the-dashboard/86616/26 "2024-04-05T04:29:27Z")

</div>

I tried to enter the URL with my username and password, the link is ok, but the data that follows with the print error did not import.

---

<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: [5 April 2024 13:34 UTC](https://discourse.nodered.org/t/question-about-importing-data-into-the-dashboard/86616/27 "2024-04-05T13:34:21Z")

</div>

> [@ErnestoBalestro](#):
>
> At this specific point in the Debug node the error "JSON parson error" appeared.

Have you configured the http request node to return a Parsed JSON Object? If so then change it to UTF8 string and see what you get from the request node.

---

<div class="post-metadata">

### Author: ![ErnestoBalestro](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ernestobalestro/32/89452_2.png) [@ErnestoBalestro](https://discourse.nodered.org/u/ErnestoBalestro)
#### Post date: [5 April 2024 18:50 UTC](https://discourse.nodered.org/t/question-about-importing-data-into-the-dashboard/86616/28 "2024-04-05T18:50:50Z")

</div>

Yes, I configured it via JSON. When I configure it via UTF-8, this appears in Debug:

```auto
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width" />
    <meta name="theme-color" content="#000" />

    <title>Grafana</title>

    <base href="/" />

    <link
      rel="preload"
      href="public/fonts/roboto/RxZJdnzeo3R5zSexge8UUVtXRa8TVwTICgirnJhmVJw.woff2"
      as="font"
      crossorigin
    />

    <link rel="icon" type="image/png" href="public/img/fav32.png" />
    <link rel="apple-touch-icon" sizes="180x180" href="public/img/apple-touch-icon.png" />
    <link rel="mask-icon" href="public/img/grafana_mask_icon.svg" color="#F05A28" />
    <link rel="stylesheet" href="public/build/grafana.dark.8037849dbb02d3339929.css" />

    <script nonce="">
      performance.mark('frontend_boot_css_time_seconds');
    </script>

    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" c...

```

---

<div class="post-metadata">

### Author: ![ErnestoBalestro](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ernestobalestro/32/89452_2.png) [@ErnestoBalestro](https://discourse.nodered.org/u/ErnestoBalestro)
#### Post date: [5 April 2024 18:52 UTC](https://discourse.nodered.org/t/question-about-importing-data-into-the-dashboard/86616/29 "2024-04-05T18:52:23Z")

</div>

![Error](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/7/a7f4973c3a0daf7e2069e4877e99fdeeaf22d225.png)  
And this appears on the dashboard.

---

<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: [5 April 2024 21:07 UTC](https://discourse.nodered.org/t/question-about-importing-data-into-the-dashboard/86616/30 "2024-04-05T21:07:00Z")

</div>

> [@ErnestoBalestro](#):
>
> this appears in Debug:

> [@ErnestoBalestro](#):
>
> `<title>Grafana</title>`

As you can see that is Grafana page, not the original data source. You need to get the data from the source, in the same way that Grafana itself does.

[Previous page](https://discourse.nodered.org/t/question-about-importing-data-into-the-dashboard/86616.md?page=1)
