Exporting a Grafana dashboard is simple, however, in standard mode it is linked to a previous or different datasource.
So after importing it there will be all the wrong variables and the data will not be shown.
To fix this problem open the JSON file before importing the dashboard and edit this section:
“datasource”: {
“type”: “prometheus”,
“uid”: “${DS_PROMETHEUS}”