What Grafana version and what operating system are you using?
v.7 on Unix
What are you trying to achieve?
I’m trying to use the API to get a rendered PNG image of a dashboard.
How are you trying to achieve it?
I’ve searched through tons of posts to see how to do it with play.grafana.org and none of the following has been working:
curl "http://play.grafana.org/render/dashboard-solo/db/grafana-play-home?orgId=1&panelId=4&from=1498583548146&to=1498590748147&width=1000&height=500&tz=UTC%2B02%3A00" > testdemo.png curl "https://play.grafana.org/render/dashboard/db/grafana-play-home?orgId=1&from=1577981910905&to=1577989110905&width=1000&height=1500&tz=Europe%2FBudapest" > testdemo.png
Both download the png file but it is unopenable. I tried on MacOS and Unix. If I try to open the above links through a browser, it returns a failed to render error.
What did you expect to happen?
I expected it to be an image of the dashboard.