Looking to copy over a dashboard template via json but struggling to find a solution to this error Failed to upgrade legacy queries Datasource prometheus was not found
does someone know what this means or what I should change in the template?
I also bumped into this issue. Have you managed to resolve this out ?
no I havent, I read something in a github issue that a dashboard UID is needed but no clear answer how to get that exactly
I figured out my error, what I needed to do was to change ALL the datasources in the json, I was only changing the one at the top. I changed all the datasources NOT labeled "null"
(leave those)…and changed the datasources from prometheus
to Mimir
(capital M), then grafana was happy. example below:
"list": [
{
"builtIn": 1,
"datasource": "Mimir",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},```