grafana-tools / grafana-backup

[ON HOLD] CLI tool for backup/restore Grafana dashboards and datasources.
GNU General Public License v3.0
28 stars 3 forks source link

Change JSON output to reflect API syntax instead of GUI syntax? #8

Open omadawn opened 6 years ago

omadawn commented 6 years ago

Backups look like the JSON you get if you navigate the GUI and choose 'view JSON' which is missing things that could make the restore process more reliable such as the dashboard: {} element.

Supporting both would of course be ideal.

I.E. a dashboard from the API would look like: { "meta": { "isStarred": false, "slug": "production-overview" }, "dashboard": { "id": 25, "title": "Production Overview", "tags": [ "templated" ], "timezone": "browser", "rows": [

Instead of: { "annotations": { "list": [] }, "editable": true, "gnetId": null, "graphTooltip": 0, "hideControls": false, "id": 25, "links": [], "refresh": "10s", "rows": [