diff --git a/configs/grafana/dashboards/openscap_dashboard.json b/configs/grafana/dashboards/openscap_dashboard.json index 9067967..263c154 100644 --- a/configs/grafana/dashboards/openscap_dashboard.json +++ b/configs/grafana/dashboards/openscap_dashboard.json @@ -1,47 +1,4 @@ { - "__inputs": [ - { - "name": "DS_PROMETHEUS", - "label": "Prometheus", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__elements": {}, - "__requires": [ - { - "type": "panel", - "id": "bargauge", - "name": "Bar gauge", - "version": "" - }, - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "10.4.0" - }, - { - "type": "panel", - "id": "piechart", - "name": "Pie chart", - "version": "" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - } - ], "annotations": { "list": [ { @@ -67,15 +24,11 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": null, + "id": 3, "links": [], "liveNow": false, "panels": [ { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, "fieldConfig": { "defaults": { "color": { @@ -175,10 +128,6 @@ }, "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, "disableTextWrap": false, "editorMode": "builder", "expr": "count_values(\"openscap_result\", openscap_results{target=~\"$target\", severity=~\"$severity\"})", @@ -194,10 +143,6 @@ "type": "piechart" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, "fieldConfig": { "defaults": { "color": { @@ -246,10 +191,6 @@ "pluginVersion": "10.4.0", "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, "disableTextWrap": false, "editorMode": "code", "expr": "count by(severity) (openscap_results{target=~\"$target\"} == 0)", @@ -265,10 +206,6 @@ "type": "bargauge" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, "fieldConfig": { "defaults": { "color": { @@ -344,10 +281,6 @@ "pluginVersion": "10.4.0", "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, "disableTextWrap": false, "editorMode": "builder", "exemplar": false, @@ -397,10 +330,10 @@ "list": [ { "allValue": ".+", - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "current": { + "selected": false, + "text": "All", + "value": "$__all" }, "definition": "label_values(openscap_results,target)", "hide": 0, @@ -422,10 +355,10 @@ }, { "allValue": ".+", - "current": {}, - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "current": { + "selected": false, + "text": "All", + "value": "$__all" }, "definition": "label_values(openscap_results,severity)", "hide": 0, @@ -454,7 +387,6 @@ "timepicker": {}, "timezone": "", "title": "SCAPinoculars OpenSCAP Dashboard", - "uid": "bdfrrlu4ovk74a", - "version": 13, + "version": 9, "weekStart": "" }