This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

configs.monitoring: fill logs dashboard host/unit dropdowns from VictoriaLogs

Query field values for host and unit (unit narrowed by the selected hosts), with multi-select and All = *, and filter the panel with in().

+31 -7
+31 -7
configs/monitoring/dashboards/logs.json
··· 7 7 "list": [ 8 8 { 9 9 "name": "host", 10 - "type": "custom", 11 - "query": "*", 12 - "current": { "text": "*", "value": "*" } 10 + "type": "query", 11 + "datasource": { "type": "victoriametrics-logs-datasource", "uid": "victorialogs" }, 12 + "query": { 13 + "refId": "VictoriaLogsVariableQueryEditor-VariableQuery", 14 + "type": "fieldValue", 15 + "field": "host", 16 + "query": "*", 17 + "limit": 1000 18 + }, 19 + "refresh": 2, 20 + "sort": 1, 21 + "multi": true, 22 + "includeAll": true, 23 + "allValue": "*", 24 + "current": { "text": "All", "value": "$__all" } 13 25 }, 14 26 { 15 27 "name": "unit", 16 - "type": "custom", 17 - "query": "*", 18 - "current": { "text": "*", "value": "*" } 28 + "type": "query", 29 + "datasource": { "type": "victoriametrics-logs-datasource", "uid": "victorialogs" }, 30 + "query": { 31 + "refId": "VictoriaLogsVariableQueryEditor-VariableQuery", 32 + "type": "fieldValue", 33 + "field": "unit", 34 + "query": "host:in($host)", 35 + "limit": 1000 36 + }, 37 + "refresh": 2, 38 + "sort": 1, 39 + "multi": true, 40 + "includeAll": true, 41 + "allValue": "*", 42 + "current": { "text": "All", "value": "$__all" } 19 43 }, 20 44 { 21 45 "name": "search", ··· 37 61 { 38 62 "refId": "A", 39 63 "queryType": "instant", 40 - "expr": "host:$host unit:$unit $search", 64 + "expr": "host:in($host) unit:in($unit) $search", 41 65 "maxLines": 1000 42 66 } 43 67 ]