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

@@ -16,7 +16,7 @@
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations \u0026 Alerts",
"name": "Annotations & Alerts",
"showIn": 0,
"type": "dashboard"
}
@@ -1219,7 +1219,7 @@
},
"editorMode": "code",
"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",
"hide": false,
"instant": false,
@@ -1695,7 +1695,11 @@
"templating": {
"list": [
{
"current": {},
"current": {
"selected": true,
"text": "http://192.168.20.6:80",
"value": "http://192.168.20.6:80"
},
"datasource": {
"type": "prometheus",
"uid": "ff1qkncht70n4c"
@@ -1722,4 +1726,4 @@
"title": "AdGuard Home Exporter",
"weekStart": ""
}
}
}

View File

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

View File

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