Set stable default variable selections for key dashboards

This commit is contained in:
gbanyan
2026-02-15 11:53:57 +08:00
parent 8ef073025a
commit b46d5d5233
4 changed files with 93 additions and 17 deletions

View File

@@ -15667,7 +15667,11 @@
"templating": { "templating": {
"list": [ "list": [
{ {
"current": {}, "current": {
"selected": true,
"text": "prometheus",
"value": "ff1qkncht70n4c"
},
"includeAll": false, "includeAll": false,
"label": "Datasource", "label": "Datasource",
"name": "ds_prometheus", "name": "ds_prometheus",
@@ -15678,7 +15682,11 @@
"type": "datasource" "type": "datasource"
}, },
{ {
"current": {}, "current": {
"selected": true,
"text": "linux",
"value": "linux"
},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${ds_prometheus}" "uid": "${ds_prometheus}"
@@ -15698,7 +15706,11 @@
"type": "query" "type": "query"
}, },
{ {
"current": {}, "current": {
"selected": true,
"text": "armub",
"value": "armub"
},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${ds_prometheus}" "uid": "${ds_prometheus}"
@@ -15718,7 +15730,11 @@
"type": "query" "type": "query"
}, },
{ {
"current": {}, "current": {
"selected": true,
"text": "192.168.50.4:9100",
"value": "192.168.50.4:9100"
},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "${ds_prometheus}" "uid": "${ds_prometheus}"

View File

@@ -16,7 +16,7 @@
"enable": true, "enable": true,
"hide": true, "hide": true,
"iconColor": "rgba(0, 211, 255, 1)", "iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations \u0026 Alerts", "name": "Annotations & Alerts",
"showIn": 0, "showIn": 0,
"type": "dashboard" "type": "dashboard"
} }
@@ -1219,7 +1219,7 @@
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "sum by (client, name) (rate(adguard_processing_time_milliseconds_sum[$__rate_interval])) / sum by (client, name) (rate(adguard_processing_time_milliseconds_count[$__rate_interval]) \u003e 0)", "expr": "sum by (client, name) (rate(adguard_processing_time_milliseconds_sum[$__rate_interval])) / sum by (client, name) (rate(adguard_processing_time_milliseconds_count[$__rate_interval]) > 0)",
"format": "time_series", "format": "time_series",
"hide": false, "hide": false,
"instant": false, "instant": false,
@@ -1695,7 +1695,11 @@
"templating": { "templating": {
"list": [ "list": [
{ {
"current": {}, "current": {
"selected": true,
"text": "http://192.168.20.6:80",
"value": "http://192.168.20.6:80"
},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ff1qkncht70n4c" "uid": "ff1qkncht70n4c"

View File

@@ -1128,7 +1128,11 @@
"templating": { "templating": {
"list": [ "list": [
{ {
"current": {}, "current": {
"selected": true,
"text": "TrueNas",
"value": "TrueNas"
},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ff1qkncht70n4c" "uid": "ff1qkncht70n4c"
@@ -1151,7 +1155,11 @@
"type": "query" "type": "query"
}, },
{ {
"current": {}, "current": {
"selected": true,
"text": "192.168.20.5:9108",
"value": "192.168.20.5:9108"
},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ff1qkncht70n4c" "uid": "ff1qkncht70n4c"
@@ -1175,7 +1183,15 @@
}, },
{ {
"allValue": ".*", "allValue": ".*",
"current": {}, "current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ff1qkncht70n4c" "uid": "ff1qkncht70n4c"

View File

@@ -5917,7 +5917,11 @@
"type": "datasource" "type": "datasource"
}, },
{ {
"current": {}, "current": {
"selected": true,
"text": "TrueNas",
"value": "TrueNas"
},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ff1qkncht70n4c" "uid": "ff1qkncht70n4c"
@@ -5936,7 +5940,11 @@
"type": "query" "type": "query"
}, },
{ {
"current": {}, "current": {
"selected": true,
"text": "192.168.20.5:9108",
"value": "192.168.20.5:9108"
},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ff1qkncht70n4c" "uid": "ff1qkncht70n4c"
@@ -5956,7 +5964,15 @@
}, },
{ {
"allValue": ".*", "allValue": ".*",
"current": {}, "current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ff1qkncht70n4c" "uid": "ff1qkncht70n4c"
@@ -5977,7 +5993,15 @@
}, },
{ {
"allValue": ".*", "allValue": ".*",
"current": {}, "current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ff1qkncht70n4c" "uid": "ff1qkncht70n4c"
@@ -5998,7 +6022,15 @@
}, },
{ {
"allValue": ".*", "allValue": ".*",
"current": {}, "current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ff1qkncht70n4c" "uid": "ff1qkncht70n4c"
@@ -6019,7 +6051,15 @@
}, },
{ {
"allValue": ".*", "allValue": ".*",
"current": {}, "current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"definition": "label_values(services_cpu{instance=\"$instance\"},service)", "definition": "label_values(services_cpu{instance=\"$instance\"},service)",
"includeAll": true, "includeAll": true,
"multi": true, "multi": true,