Skip to content

Commit

Permalink
remove datasource variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jritter committed Mar 16, 2024
1 parent e400537 commit a252177
Showing 1 changed file with 10 additions and 78 deletions.
88 changes: 10 additions & 78 deletions configs/grafana/dashboards/openscap_dashboard.json
Original file line number Diff line number Diff line change
@@ -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": [
{
Expand All @@ -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": {
Expand Down Expand Up @@ -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\"})",
Expand All @@ -194,10 +143,6 @@
"type": "piechart"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -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)",
Expand All @@ -265,10 +206,6 @@
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -344,10 +281,6 @@
"pluginVersion": "10.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"disableTextWrap": false,
"editorMode": "builder",
"exemplar": false,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -454,7 +387,6 @@
"timepicker": {},
"timezone": "",
"title": "SCAPinoculars OpenSCAP Dashboard",
"uid": "bdfrrlu4ovk74a",
"version": 13,
"version": 9,
"weekStart": ""
}

0 comments on commit a252177

Please sign in to comment.