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": {
}
}
posted @ 2022-01-14 19:08  Heson  阅读(366)  评论(0编辑  收藏  举报
Live2D