From 888b5c41b1affaf49884dd61a42deda80e40b9cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=BF=20corey?= Date: Fri, 20 Mar 2026 12:10:28 -0700 Subject: [PATCH] fix(spore): fix Log Explorer host variable query label_values({}, host) fails because Loki requires at least one matcher in stream selectors. Use label_values(host) instead, set default selection to All, and bind the variable to the Loki datasource explicitly. Co-Authored-By: Claude Opus 4.6 --- hosts/spore/services/dashboards/logs.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hosts/spore/services/dashboards/logs.json b/hosts/spore/services/dashboards/logs.json index 554e5e0f..b6830620 100644 --- a/hosts/spore/services/dashboards/logs.json +++ b/hosts/spore/services/dashboards/logs.json @@ -180,17 +180,19 @@ "templating": { "list": [ { - "current": {}, + "current": { "selected": true, "text": "All", "value": "$__all" }, "hide": 0, "includeAll": true, + "allValue": ".*", "label": "Host", "multi": true, "name": "host", "options": [], - "query": "label_values({}, host)", + "query": "label_values(host)", "refresh": 2, "regex": "", - "type": "query" + "type": "query", + "datasource": { "type": "loki", "uid": "${datasource}" } }, { "current": { "selected": false, "text": "", "value": "" },