Grafana 通过api create&update dashboard
https://grafana.com/docs/grafana/latest/http_api/dashboard/
create new dashboard
url = baseurl/api/dashboard/db
method post
headers:{Authorization: '自己申请的'}
body
{
"dashboard": {
},
"folderId": 0,
"folderUid": "xxx",
"message": "Made changes to xyz",
"overwrite": false
}
update
方式方法同上 body 略有不同
{
"folderId": 18,
"dashboard": {
}
}