Skip to content
This repository was archived by the owner on Dec 1, 2018. It is now read-only.

Commit b673840

Browse files
committed
Fix grafana dashboards. Fixes #1958
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.
1 parent 6e01b49 commit b673840

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

grafana/dashboards/cluster.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"dashboard": {
23
"id": null,
34
"title": "Cluster",
45
"originalTitle": "Cluster",
@@ -2459,4 +2460,6 @@
24592460
"schemaVersion": 8,
24602461
"version": 10,
24612462
"links": []
2463+
},
2464+
"overwrite": false
24622465
}

grafana/dashboards/pods.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"dashboard": {
23
"id": null,
34
"title": "Pods",
45
"originalTitle": "Pods",
@@ -1054,4 +1055,6 @@
10541055
"schemaVersion": 8,
10551056
"version": 14,
10561057
"links": []
1058+
},
1059+
"overwrite": false
10571060
}

0 commit comments

Comments
 (0)