We use the Grafana API for bulk edits on Dashboards: http://docs.grafana.org/http_api/dashboard/
We write back the changed Dashboard like this:
print (cli.dashboards.db.create(dashboard=tDashboard, overwrite=False))
This returns the slug on success, worked fine in Grafana 4.3, and still works in Grafana 4.4.
- In the version history, an empty comment is shown. We’d like a descriptive message.
- The compare functionality fails when comparing to such a comment-less version (even when only the version number has changed, so absolute minimum number of changes - seems like a bug. It just stalls the browser, waited several minutes)
We could not find in the docs how to add a commit message. We tried:
tDashboard['message']='API Edit by Python script' print (cli.dashboards.db.create(dashboard=tDashboard, overwrite=False))
But that wasn’t it. Could you advise?