From 24cdce6fcf1516bf40debda2437396400028c694 Mon Sep 17 00:00:00 2001 From: rahulguptajss Date: Fri, 2 Aug 2024 19:42:14 +0530 Subject: [PATCH] refactor: remove deprecated compliance dashboard --- docs/prepare-fsx-clusters.md | 1 - grafana/dashboards/cmode/compliance.json | 159 ----------------------- grafana/dashboards/cmode/security.json | 2 +- integration/test/dashboard_test.go | 1 - 4 files changed, 1 insertion(+), 162 deletions(-) delete mode 100644 grafana/dashboards/cmode/compliance.json diff --git a/docs/prepare-fsx-clusters.md b/docs/prepare-fsx-clusters.md index 531794912..e523709a4 100644 --- a/docs/prepare-fsx-clusters.md +++ b/docs/prepare-fsx-clusters.md @@ -14,7 +14,6 @@ The dashboards that work with FSx are tagged with `fsx` and listed below: * ONTAP: cDOT * ONTAP: Cluster -* ONTAP: Compliance * ONTAP: Data Protection Snapshots * ONTAP: Datacenter * ONTAP: FlexGroup diff --git a/grafana/dashboards/cmode/compliance.json b/grafana/dashboards/cmode/compliance.json deleted file mode 100644 index 837ee583e..000000000 --- a/grafana/dashboards/cmode/compliance.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "__inputs": [ - { - "description": "", - "label": "Prometheus", - "name": "DS_PROMETHEUS", - "pluginId": "prometheus", - "pluginName": "Prometheus", - "type": "datasource" - } - ], - "__requires": [ - { - "id": "bargauge", - "name": "Bar gauge", - "type": "panel", - "version": "" - }, - { - "id": "grafana", - "name": "Grafana", - "type": "grafana", - "version": "7.5.4" - }, - { - "id": "prometheus", - "name": "Prometheus", - "type": "datasource", - "version": "1.0.0" - }, - { - "id": "stat", - "name": "Stat", - "type": "panel", - "version": "" - }, - { - "id": "table", - "name": "Table", - "type": "panel", - "version": "" - } - ], - "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": "", - "editable": true, - "gnetId": null, - "graphTooltip": 1, - "id": "", - "iteration": 1648624960194, - "links": [ - { - "asDropdown": true, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "cdot" - ], - "targetBlank": false, - "title": "Related Dashboards", - "tooltip": "", - "type": "dashboards", - "url": "" - } - ], - "panels": [ - { - "datasource": "${DS_PROMETHEUS}", - "description": "", - "gridPos": { - "h": 2, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 176, - "options": { - "content": "These panels were moved to the `ONTAP: Security` dashboard.", - "mode": "markdown" - }, - "pluginVersion": "8.1.8", - "title": "Important Information about Compliance dashboard", - "type": "text" - } - ], - "refresh": "", - "schemaVersion": 30, - "style": "dark", - "tags": [ - "harvest", - "ontap", - "cdot", - "fsx" - ], - "templating": { - "list": [ - { - "current": { - "selected": false, - "text": "Prometheus", - "value": "Prometheus" - }, - "description": null, - "error": null, - "hide": 2, - "includeAll": false, - "label": "Data Source", - "multi": false, - "name": "DS_PROMETHEUS", - "options": [], - "query": "prometheus", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "type": "datasource" - } - ] - }, - "time": { - "from": "now-3h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ] - }, - "timezone": "", - "title": "ONTAP: Compliance", - "uid": "cdot-compliance", - "version": 3 -} diff --git a/grafana/dashboards/cmode/security.json b/grafana/dashboards/cmode/security.json index c5823049f..0bee56b7b 100644 --- a/grafana/dashboards/cmode/security.json +++ b/grafana/dashboards/cmode/security.json @@ -98,7 +98,7 @@ "mode": "markdown" }, "pluginVersion": "8.1.8", - "title": "Important Information about Compliance dashboard", + "title": "Important Information about Security dashboard", "type": "text" }, { diff --git a/integration/test/dashboard_test.go b/integration/test/dashboard_test.go index 78d410eb7..64e45672b 100644 --- a/integration/test/dashboard_test.go +++ b/integration/test/dashboard_test.go @@ -83,7 +83,6 @@ func TestCModeDashboardCount(t *testing.T) { "ONTAP: Data Protection Snapshots", "ONTAP: Qtree", "ONTAP: Security", - "ONTAP: Compliance", "ONTAP: Power", "ONTAP: cDOT", }