diff options
| author | unitexe <unitexe70@gmail.com> | 2026-01-24 00:29:15 -0600 |
|---|---|---|
| committer | unitexe <unitexe70@gmail.com> | 2026-01-24 00:29:15 -0600 |
| commit | 3a6256a82d6a236cc2d8fe76c49806ddff38d344 (patch) | |
| tree | 5c22f852a84736249c4da51b9828adec2d5e6a2d | |
| parent | 1ad265a9728cba9bb6b79cbad8c9a8890982cf93 (diff) | |
Fix dashboard so it detects prometheus datasource automatically
Could only get dashboard to work if it was manually imported to grafana. These changes (copied from the node-exporter-full dashboard https://grafana.com/grafana/dashboards/1860-node-exporter-full/) eliminate the need for manual import and allows the dashboard to automatically work after being mounted into grafana container.
| -rw-r--r-- | nebula.json | 122 |
1 files changed, 92 insertions, 30 deletions
diff --git a/nebula.json b/nebula.json index 50724ab..09279d2 100644 --- a/nebula.json +++ b/nebula.json @@ -1,14 +1,4 @@ { - "__inputs": [ - { - "name": "DS_PROMETHEUS", - "label": "Prometheus", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], "__elements": {}, "__requires": [ { @@ -68,7 +58,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" }, "fieldConfig": { "defaults": { @@ -115,7 +105,7 @@ "refId": "A", "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" } } ], @@ -125,7 +115,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" }, "fieldConfig": { "defaults": { @@ -175,7 +165,7 @@ "refId": "E", "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" } } ], @@ -185,7 +175,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" }, "fieldConfig": { "defaults": { @@ -234,7 +224,7 @@ "refId": "B", "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" } } ], @@ -248,7 +238,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" }, "fill": 1, "fillGradient": 0, @@ -290,7 +280,7 @@ "refId": "C", "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" } } ], @@ -331,7 +321,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" }, "fieldConfig": { "defaults": { @@ -377,7 +367,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" }, "expr": "prometheusns_nebula_debug_GCStats_NumGC", "legendFormat": "Number of GC Operations", @@ -386,7 +376,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" }, "expr": "prometheusns_nebula_debug_GCStats_PauseTotal", "legendFormat": "Total GC Pause Time", @@ -432,7 +422,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" }, "fill": 1, "fillGradient": 0, @@ -474,7 +464,7 @@ "refId": "F", "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" } } ], @@ -515,7 +505,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" }, "fieldConfig": { "defaults": { @@ -563,7 +553,7 @@ "refId": "G", "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" } } ], @@ -606,7 +596,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" }, "fill": 1, "fillGradient": 0, @@ -648,7 +638,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" }, "expr": "prometheusns_nebula_runtime_MemStats_HeapAlloc", "interval": "", @@ -693,7 +683,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" }, "fieldConfig": { "defaults": { @@ -741,7 +731,7 @@ "refId": "D", "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "${ds_prometheus}" } } ], @@ -785,7 +775,79 @@ "system" ], "templating": { - "list": [] + "list": [ + { + "current": {}, + "includeAll": false, + "label": "Datasource", + "name": "ds_prometheus", + "options": [], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${ds_prometheus}" + }, + "definition": "", + "includeAll": false, + "label": "Job", + "name": "job", + "options": [], + "query": { + "query": "label_values(node_uname_info, job)", + "refId": "Prometheus-job-Variable-Query" + }, + "refresh": 1, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${ds_prometheus}" + }, + "definition": "label_values(node_uname_info{job=\"$job\"}, nodename)", + "includeAll": false, + "label": "Nodename", + "name": "nodename", + "options": [], + "query": { + "query": "label_values(node_uname_info{job=\"$job\"}, nodename)", + "refId": "Prometheus-nodename-Variable-Query" + }, + "refresh": 1, + "regex": "", + "sort": 1, + "type": "query" + }, + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${ds_prometheus}" + }, + "definition": "label_values(node_uname_info{job=\"$job\", nodename=\"$nodename\"}, instance)", + "includeAll": false, + "label": "Instance", + "name": "node", + "options": [], + "query": { + "query": "label_values(node_uname_info{job=\"$job\", nodename=\"$nodename\"}, instance)", + "refId": "Prometheus-node-Variable-Query" + }, + "refresh": 1, + "regex": "", + "sort": 1, + "type": "query" + } + ] }, "time": { "from": "now-5m", |
