Skip to content

Commit dc4ac2f

Browse files
stackptrclaude
andauthored
fix(spore): fix Log Explorer host variable query (#391)
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 <noreply@anthropic.com>
1 parent 6dcd84e commit dc4ac2f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎hosts/spore/services/dashboards/logs.json‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,19 @@
180180
"templating": {
181181
"list": [
182182
{
183-
"current": {},
183+
"current": { "selected": true, "text": "All", "value": "$__all" },
184184
"hide": 0,
185185
"includeAll": true,
186+
"allValue": ".*",
186187
"label": "Host",
187188
"multi": true,
188189
"name": "host",
189190
"options": [],
190-
"query": "label_values({}, host)",
191+
"query": "label_values(host)",
191192
"refresh": 2,
192193
"regex": "",
193-
"type": "query"
194+
"type": "query",
195+
"datasource": { "type": "loki", "uid": "${datasource}" }
194196
},
195197
{
196198
"current": { "selected": false, "text": "", "value": "" },

0 commit comments

Comments
 (0)