I’m using Grafana v8.3.3 (30bb7a93ca) on Linux and I’m trying to automate exporting my dashboards to json files for automation.
I’d eventually use these to import dashboards on a fresh instance using /etc/grafana/provisioning/dashboards
I’m able to pull the dashboards out using a call to /api/dashboards/uid/$uid but the JSON output is different from that which I can copy from the web UI’s JSON Model tab in the dashboard’s settings.
When I try to provision the API output using the provisioning directory, the dashboard gets created but is completely empty / broken.
When I provision the API output using the JSON Model that I’ve copied and pasted, it works great.
So, ultimately - Is there any way to get the same output as “JSON Model” via the API, or is there something else I can use to try to find out why the api-exported JSON doesn’t work on provisioning?