From 1748ad1a113a8726f4181a5bd91613196323e5b1 Mon Sep 17 00:00:00 2001 From: gbanyan Date: Sun, 15 Feb 2026 11:43:03 +0800 Subject: [PATCH] Fix unbound redis metric and normalize dashboard variables --- GBarmUB/gbarmub-node-exporter.json | 12 ++++++------ HomeLab/truenas-scale-overview.json | 6 +++++- HomeLab/unbound-resolver-overview.json | 14 +++++++------- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/GBarmUB/gbarmub-node-exporter.json b/GBarmUB/gbarmub-node-exporter.json index 25b1fa7..d6b8955 100644 --- a/GBarmUB/gbarmub-node-exporter.json +++ b/GBarmUB/gbarmub-node-exporter.json @@ -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" } -} \ No newline at end of file +} diff --git a/HomeLab/truenas-scale-overview.json b/HomeLab/truenas-scale-overview.json index 3f0b00a..3d50ea8 100644 --- a/HomeLab/truenas-scale-overview.json +++ b/HomeLab/truenas-scale-overview.json @@ -5904,7 +5904,11 @@ "templating": { "list": [ { - "current": {}, + "current": { + "text": "prometheus", + "value": "ff1qkncht70n4c", + "selected": true + }, "label": "Data source", "name": "DS_MIMIR", "options": [], diff --git a/HomeLab/unbound-resolver-overview.json b/HomeLab/unbound-resolver-overview.json index dfe83df..bee5304 100644 --- a/HomeLab/unbound-resolver-overview.json +++ b/HomeLab/unbound-resolver-overview.json @@ -16,7 +16,7 @@ "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations \u0026 Alerts", + "name": "Annotations & Alerts", "type": "dashboard" } ] @@ -489,7 +489,7 @@ "pluginVersion": "12.2.1", "targets": [ { - "expr": "redis_used_memory_bytes", + "expr": "redis_memory_used_bytes", "legendFormat": "Used Memory", "refId": "A" }, @@ -504,7 +504,7 @@ "refId": "C" } ], - "title": "Redis – Memory \u0026 Key Turnover", + "title": "Redis – Memory & Key Turnover", "type": "timeseries" }, { @@ -1001,7 +1001,7 @@ { "direction": "backward", "editorMode": "code", - "expr": "topk(10, sum by (domain) (count_over_time({job=\"unbound\"} | pattern \"\u003c_\u003e \u003c_\u003e reply: \u003cclient\u003e \u003cdomain\u003e \u003cqtype\u003e \u003cclass\u003e \u003crcode\u003e \u003cduration\u003e \u003ccached\u003e \u003canswer_len\u003e\" [5m])))", + "expr": "topk(10, sum by (domain) (count_over_time({job=\"unbound\"} | pattern \"<_> <_> reply: \" [5m])))", "queryType": "instant", "refId": "A" } @@ -1057,7 +1057,7 @@ "pluginVersion": "12.2.1", "targets": [ { - "expr": "{job=\"unbound\"} | pattern \"\u003c_\u003e \u003c_\u003e reply: \u003cclient\u003e \u003cdomain\u003e \u003cqtype\u003e \u003cclass\u003e \u003crcode\u003e \u003cduration\u003e \u003ccached\u003e \u003canswer_len\u003e\"", + "expr": "{job=\"unbound\"} | pattern \"<_> <_> reply: \"", "refId": "A" } ], @@ -1587,7 +1587,7 @@ "refId": "B" } ], - "title": "Unbound Process CPU \u0026 Memory", + "title": "Unbound Process CPU & Memory", "type": "timeseries" } ], @@ -1611,4 +1611,4 @@ "timezone": "browser", "title": "Unbound Resolver Overview" } -} \ No newline at end of file +}