Fix unbound redis metric and normalize dashboard variables

This commit is contained in:
gbanyan
2026-02-15 11:43:03 +08:00
parent 9a90a8606c
commit 1748ad1a11
3 changed files with 18 additions and 14 deletions

View File

@@ -16,7 +16,7 @@
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations \u0026 Alerts",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
@@ -1963,7 +1963,7 @@
},
{
"editorMode": "code",
"expr": "sum by(instance) (irate(node_cpu_guest_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval]))) \u003e 0",
"expr": "sum by(instance) (irate(node_cpu_guest_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval])) / on(instance) group_left sum by (instance)((irate(node_cpu_seconds_total{instance=\"$node\",job=\"$job\"}[$__rate_interval]))) > 0",
"format": "time_series",
"legendFormat": "Guest CPU usage",
"range": true,
@@ -4143,7 +4143,7 @@
"editorMode": "code",
"expr": "node_memory_Inactive_anon_bytes{instance=\"$node\",job=\"$job\"}",
"format": "time_series",
"legendFormat": "Inactive_anon Anonymous memory on inactive LRU (incl. tmpfs \u0026 swap cache)",
"legendFormat": "Inactive_anon Anonymous memory on inactive LRU (incl. tmpfs & swap cache)",
"range": true,
"refId": "B",
"step": 240
@@ -4161,7 +4161,7 @@
"editorMode": "code",
"expr": "node_memory_Active_anon_bytes{instance=\"$node\",job=\"$job\"}",
"format": "time_series",
"legendFormat": "Active_anon Anonymous memory on active LRU (incl. tmpfs \u0026 swap cache)",
"legendFormat": "Active_anon Anonymous memory on active LRU (incl. tmpfs & swap cache)",
"range": true,
"refId": "D",
"step": 240
@@ -15683,7 +15683,7 @@
"type": "prometheus",
"uid": "${ds_prometheus}"
},
"definition": "",
"definition": "label_values(node_uname_info, job)",
"includeAll": false,
"label": "Job",
"name": "job",
@@ -15747,4 +15747,4 @@
"timezone": "browser",
"title": "GBarmUB Node Exporter"
}
}
}