1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-06 16:57:10 +00:00

Allow DS_PROMETHEUS substitution for grafana dashboard

This PR allows the substitution to be used since the
datasource was not being picked up correctly
This commit is contained in:
Scotte Zinn 2025-02-04 09:34:24 -05:00
parent 4f24a38ad4
commit 175909ccd1
No known key found for this signature in database
GPG key ID: B2F1677DB0348B42

View file

@ -1,4 +1,28 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "9.3.6"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
}
],
"annotations": {
"list": [
{
@ -18,14 +42,14 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 30,
"id": null,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -76,7 +100,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"disableTextWrap": false,
"editorMode": "builder",
@ -96,7 +120,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -147,7 +171,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"disableTextWrap": false,
"editorMode": "builder",
@ -167,7 +191,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -218,7 +242,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"disableTextWrap": false,
"editorMode": "builder",
@ -238,7 +262,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -289,7 +313,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"disableTextWrap": false,
"editorMode": "builder",
@ -309,7 +333,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -387,7 +411,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"disableTextWrap": false,
"editorMode": "builder",
@ -407,7 +431,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -485,7 +509,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"disableTextWrap": false,
"editorMode": "builder",
@ -505,7 +529,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -583,7 +607,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "nfd_master_node_update_failures_total",
@ -598,7 +622,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -676,7 +700,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "nfd_master_nodefeaturerule_processing_errors_total",
@ -692,7 +716,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -770,7 +794,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"disableTextWrap": false,
"editorMode": "builder",
@ -789,7 +813,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -867,7 +891,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"disableTextWrap": false,
"editorMode": "builder",
@ -886,7 +910,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -937,7 +961,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "sum by(le) (nfd_worker_feature_discovery_duration_seconds_bucket)",
@ -953,7 +977,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -1004,7 +1028,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "sum by(le) (nfd_master_nodefeaturerule_processing_duration_seconds_bucket)",
@ -1020,7 +1044,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -1098,7 +1122,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "nfd_master_node_labels_rejected_total",
@ -1113,7 +1137,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -1191,7 +1215,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "nfd_master_node_extendedresources_rejected_total",
@ -1207,7 +1231,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"fieldConfig": {
"defaults": {
@ -1285,7 +1309,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "nfd_master_node_taints_rejected_total",