Skip to content

Commit

Permalink
Fix grafana dashboards. Fixes kubernetes-retired#1958
Browse files Browse the repository at this point in the history
Grafana dashboard JSON needs to be wrapped in "dashboard": {} when
POSTing to /api/dashboards/db [1]. The bare dashboard is usable when
importing via the UI as it handles that wrapping for us. The wrapped
dashboard also imports just fine in the UI.

[1] http://docs.grafana.org/http_api/dashboard/)

This reverts commit e960cd4.
  • Loading branch information
acobaugh committed Feb 23, 2018
1 parent 6e01b49 commit b673840
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions grafana/dashboards/cluster.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"dashboard": {
"id": null,
"title": "Cluster",
"originalTitle": "Cluster",
Expand Down Expand Up @@ -2459,4 +2460,6 @@
"schemaVersion": 8,
"version": 10,
"links": []
},
"overwrite": false
}
3 changes: 3 additions & 0 deletions grafana/dashboards/pods.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"dashboard": {
"id": null,
"title": "Pods",
"originalTitle": "Pods",
Expand Down Expand Up @@ -1054,4 +1055,6 @@
"schemaVersion": 8,
"version": 14,
"links": []
},
"overwrite": false
}

0 comments on commit b673840

Please sign in to comment.