Grafana Screenshot through API

Ok, I figured this out.
curl 'http://<IP>:<PORT>/render/dashboard-solo/db/<DASHBOARD_NAME>?refresh=5m&orgId=1&panelId=<TAB_ID>&width=300&height=300&tz=UTC%202%3A00' -H 'Authorization: Bearer <API_KEY>' --compressed > OUTPUT.png

Before this you must generate API key in grafana settings

2 Likes