From b6738402e7ec00547e85662147c51ace77d0be7d Mon Sep 17 00:00:00 2001 From: Andy Cobaugh Date: Thu, 22 Feb 2018 19:27:27 -0500 Subject: [PATCH] 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 e960cd47fb14847f642ef275da01726496e7faff. --- grafana/dashboards/cluster.json | 3 +++ grafana/dashboards/pods.json | 3 +++ 2 files changed, 6 insertions(+) diff --git a/grafana/dashboards/cluster.json b/grafana/dashboards/cluster.json index 740f1900d3..69f2c2fc16 100644 --- a/grafana/dashboards/cluster.json +++ b/grafana/dashboards/cluster.json @@ -1,4 +1,5 @@ { + "dashboard": { "id": null, "title": "Cluster", "originalTitle": "Cluster", @@ -2459,4 +2460,6 @@ "schemaVersion": 8, "version": 10, "links": [] + }, + "overwrite": false } diff --git a/grafana/dashboards/pods.json b/grafana/dashboards/pods.json index fa91131c80..830721d964 100644 --- a/grafana/dashboards/pods.json +++ b/grafana/dashboards/pods.json @@ -1,4 +1,5 @@ { + "dashboard": { "id": null, "title": "Pods", "originalTitle": "Pods", @@ -1054,4 +1055,6 @@ "schemaVersion": 8, "version": 14, "links": [] + }, + "overwrite": false }