jsonnet-libs icon indicating copy to clipboard operation
jsonnet-libs copied to clipboard

Remove id from ceph-cluster.json;

Open Sanhajio opened this issue 1 year ago • 0 comments

I needed to remove "id" from ceph-mixin/dashboards/ceph-cluster.json

{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "description": "Ceph Cluster overview.\r ",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 2842,
  "graphTooltip": 0,
  "id": 190,
  "iteration": 1649942733255,
  "links": [],
  "liveNow": false,
  "panels": [
  ]
}

Otherwise when I apply it using grizzly, it tries to apply the changes to the id in the db that is set in json rather than the one in the dashboard db.

DEBU[0000] Getting the remote value for Dashboard.ceph DEBU[0000] Dashboard.ceph was not found, adding it... FATA[0000] Non-200 response from Grafana while applying dashboard ceph: 404 Not Found {"message":"Dashboard not found","status":"not-found"}

Related Issue: https://github.com/grafana/grafana/issues/31147

Sanhajio avatar Jan 16 '24 15:01 Sanhajio