bruv613
December 13, 2022, 9:29am
1
Hi!
I want to import this link (also Grafana dashboard) into my personal account. The link I want to import is:
Grafana (madavi.de)
When I want to import the link in to my account it says:
How can I change this link into a link that is accepted by Grafana?
Thank you very much for your help!
Hi @bruv613 ,
Can you please share some screenshots OR a screencast so that we can see as what you’re trying to achieve and why you get this error?
Thanks
bruv613
December 14, 2022, 9:35am
3
Thank you for your effort in helping me!
The website I want the data from is called:
PM sensors - Dashboards - Dashboards - Grafana (madavi.de)
As you can see from the link, it’s not a “madavi.de ” URL, although the is the Grafana logo…
When I want to add this dashboard (please click on the link above and take a look at it) to my personal account under the section “import dashboard” I get the following error message:
I then try to download the .json and upload it.
But then the dashboard is empty:
bruv613
December 14, 2022, 9:37am
4
And when I use the panel .json this appeares:
bruv613
December 18, 2022, 12:27pm
5
Any ideas of what can be done?
Hi @bruv613 ,
Try this as I think this is what you are also having the issue.
opened 04:35PM - 15 Apr 19 UTC
## Error received
```
curl -XPOST -i http://grafana.staged-by-discourse.com/api/dashboards/db … -u xxxx:xxxxx --data-binary @./desktop.json -H "Content-Type: application/json"
HTTP/1.1 100 Continue
HTTP/1.1 404 Not Found
Content-Type: application/json
Date: Mon, 15 Apr 2019 15:57:45 GMT
Content-Length: 54''
{“message”:“Dashboard not found”,“status”:“not-found”}
```
## Root Cause:
File export includes the 'id' of the dashboard. This needs to be set to 'null' in order to be imported.
![image](https://user-images.githubusercontent.com/6360456/56148907-54ce5280-5f79-11e9-9458-6cb30baa22a7.png)
Also see: https://community.grafana.com/t/unable-to-create-grafana-dashboard-through-api-but-working-through-ui-import-option-with-same-json-file/2470
## Workaround:
Execute the following in the dashboards directory (works with GNU sed only)
```
sed -i '0,/"id": .*/{s/"id": .*/"id": null,/}' *.json
```
1 Like