I used the snapshot API to create a snapshot. The response provides a URL to view the snapshot.
However, I’d like to avoid providing that URL and want to render the page as a downloadable self contained HTML page.
It seems the only way to do this is to use selenium or some headless browser, but that failed with an error for me because this is running in a pod with an obscure base OS etc.
Any ideas for me to export dashboards as a self-contained entity? Many thanks
If you can consider a full screenshot image of the dashboard, I would like to point you towards image-renderer plug-in, but I’m not sure if it’s going to work since you got that “running in a pod with an obscure base OS etc” thing.
It’s in a pod, so there’s no UI. Moreover, it can’t even render because it fails to visit the URL. I tried 2 very different ways to render like that. Both railed.
It sounds like the only option is to reinvent the dashboard. Not liking this option
Mentioned image render plugin is native way for Grafana rendering in headless browser (Chromium in this case). So I wouldn’t reinvent a wheel with custom selenium, headless browser and I would use a solution, which is already used by others.
I don’t know what the execs will go for. I’m looking for options. Maybe we should be collecting their data remotely so that snapshots aren’t needed. But that won’t scale easily.