feat(grafana): human-readable job variable selector (#14719)

This commit is contained in:
Alexey Shekhirin
2025-02-27 11:58:42 +00:00
committed by GitHub
parent 80250f0281
commit 9216247887

View File

@@ -1,19 +1,19 @@
{
"__inputs": [
{
"name": "datasource",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
},
{
"name": "DS_EXPRESSION",
"label": "Expression",
"description": "",
"type": "datasource",
"pluginId": "__expr__"
},
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
@@ -7738,6 +7738,7 @@
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -7900,6 +7901,7 @@
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -8208,6 +8210,7 @@
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -8305,6 +8308,7 @@
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -8401,6 +8405,7 @@
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -8536,7 +8541,7 @@
"sort": "none"
}
},
"pluginVersion": "10.1.0",
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -8628,7 +8633,7 @@
"unit": "percentunit"
}
},
"pluginVersion": "11.2.0",
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -8727,7 +8732,7 @@
"sort": "none"
}
},
"pluginVersion": "10.1.0",
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -8815,7 +8820,7 @@
"unit": "percentunit"
}
},
"pluginVersion": "11.2.0",
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -8950,6 +8955,7 @@
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -9169,7 +9175,7 @@
"sort": "none"
}
},
"pluginVersion": "10.1.0",
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -9279,6 +9285,7 @@
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -9375,6 +9382,7 @@
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -9471,6 +9479,7 @@
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -9579,6 +9588,7 @@
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -9648,7 +9658,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.2.0",
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -9759,6 +9769,7 @@
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -9870,6 +9881,7 @@
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -9982,6 +9994,7 @@
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -10119,7 +10132,7 @@
"sort": "none"
}
},
"pluginVersion": "10.1.0",
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -10247,7 +10260,7 @@
"sort": "none"
}
},
"pluginVersion": "10.1.0",
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -10375,7 +10388,7 @@
"sort": "none"
}
},
"pluginVersion": "10.1.0",
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -10503,7 +10516,7 @@
"sort": "none"
}
},
"pluginVersion": "10.1.0",
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
@@ -10531,18 +10544,35 @@
"tags": [],
"templating": {
"list": [
{
"current": {},
"definition": "query_result(reth_info)",
"label": "Job",
"name": "job",
"options": [],
"query": {
"qryType": 3,
"query": "query_result(reth_info)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "/.*job=\\\"([^\\\"]*).*/",
"type": "query"
},
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"definition": "query_result(reth_info)",
"definition": "query_result(reth_info{job=\"${job}\"})",
"includeAll": false,
"label": "Instance (auto-selected)",
"name": "instance",
"options": [],
"query": {
"query": "query_result(reth_info)",
"qryType": 3,
"query": "query_result(reth_info{job=\"${job}\"})",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
@@ -10570,6 +10600,6 @@
"timezone": "",
"title": "Reth",
"uid": "2k8BXz24x",
"version": 2,
"version": 3,
"weekStart": ""
}