feat: add variable for datasource in grafana dashboards (#21470)

This commit is contained in:
Johannes Horn 2025-08-04 03:46:49 +02:00 committed by GitHub
parent 71f293d9ab
commit d002beaee3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 78 additions and 65 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 426 KiB

After

Width:  |  Height:  |  Size: 355 KiB

View File

@ -15,16 +15,6 @@
} }
] ]
}, },
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"description": "MinIO Grafana Dashboard - https://min.io/", "description": "MinIO Grafana Dashboard - https://min.io/",
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
@ -4151,28 +4141,39 @@
"list": [ "list": [
{ {
"current": { "current": {
"selected": true, "selected": false,
"text": "minio-job-bucket", "text": "All",
"value": "minio-job-bucket" "value": "$__all"
},
"label": "Data source",
"name": "DS_PROMETHEUS",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"type": "datasource"
},
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"definition": "label_values(job)", "definition": "label_values(job)",
"hide": 0,
"includeAll": false, "includeAll": false,
"multi": false,
"name": "scrape_jobs", "name": "scrape_jobs",
"options": [], "options": [],
"query": { "query": {
"qryType": 1,
"query": "label_values(job)", "query": "label_values(job)",
"refId": "StandardVariableQuery" "refId": "PrometheusVariableQueryEditor-VariableQuery"
}, },
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query" "type": "query"
} }
] ]
@ -4210,4 +4211,4 @@
"uid": "TgmJnqnnk2", "uid": "TgmJnqnnk2",
"version": 1, "version": 1,
"weekStart": "" "weekStart": ""
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 213 KiB

After

Width:  |  Height:  |  Size: 591 KiB

View File

@ -21,16 +21,6 @@
} }
] ]
}, },
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"description": "MinIO Grafana Dashboard - https://min.io/", "description": "MinIO Grafana Dashboard - https://min.io/",
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
@ -3800,6 +3790,20 @@
], ],
"templating": { "templating": {
"list": [ "list": [
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"label": "Data source",
"name": "DS_PROMETHEUS",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"type": "datasource"
},
{ {
"current": { "current": {
"selected": false, "selected": false,
@ -3861,4 +3865,4 @@
"uid": "TgmJnqnnk", "uid": "TgmJnqnnk",
"version": 1, "version": 1,
"weekStart": "" "weekStart": ""
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 136 KiB

View File

@ -15,16 +15,6 @@
} }
] ]
}, },
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"description": "MinIO Nodes Grafana Dashboard - https://min.io/", "description": "MinIO Nodes Grafana Dashboard - https://min.io/",
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
@ -869,7 +859,20 @@
"list": [ "list": [
{ {
"current": { "current": {
"selected": false,
"text": "All",
"value": "$__all"
}, },
"label": "Data source",
"name": "DS_PROMETHEUS",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"type": "datasource"
},
{
"current": {},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
@ -891,8 +894,7 @@
"type": "query" "type": "query"
}, },
{ {
"current": { "current": {},
},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
@ -950,4 +952,4 @@
"uid": "TgmJnnqn2k", "uid": "TgmJnnqn2k",
"version": 1, "version": 1,
"weekStart": "" "weekStart": ""
} }

View File

@ -15,16 +15,6 @@
} }
] ]
}, },
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"description": "MinIO Grafana Dashboard - https://min.io/", "description": "MinIO Grafana Dashboard - https://min.io/",
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
@ -2890,7 +2880,20 @@
"list": [ "list": [
{ {
"current": { "current": {
"selected": false,
"text": "All",
"value": "$__all"
}, },
"label": "Data source",
"name": "DS_PROMETHEUS",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"type": "datasource"
},
{
"current": {},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
@ -2946,4 +2949,4 @@
"uid": "TgmJnnqnk3", "uid": "TgmJnnqnk3",
"version": 1, "version": 1,
"weekStart": "" "weekStart": ""
} }

View File

@ -15,16 +15,6 @@
} }
] ]
}, },
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"description": "MinIO Grafana Dashboard - https://min.io/", "description": "MinIO Grafana Dashboard - https://min.io/",
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
@ -2335,7 +2325,20 @@
"list": [ "list": [
{ {
"current": { "current": {
"selected": false,
"text": "All",
"value": "$__all"
}, },
"label": "Data source",
"name": "DS_PROMETHEUS",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"type": "datasource"
},
{
"current": {},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
@ -2391,4 +2394,4 @@
"uid": "gmTJnqnnk3", "uid": "gmTJnqnnk3",
"version": 1, "version": 1,
"weekStart": "" "weekStart": ""
} }