From 85bf1373ad38e72ceccbaf4822c6dc4d3b2710a8 Mon Sep 17 00:00:00 2001 From: IvanHunters Date: Wed, 22 Jul 2026 22:15:02 +0300 Subject: [PATCH] fix(talos-log-collector): stamp tenant and cluster labels on records Records from monitoring-agents carry tenant and cluster fields; records from this pipeline carried neither, so operators filtering the shared log store on those fields did not see Talos logs. Stamp .tenant (the destination tenant) and .cluster (root-cluster, matching monitoring-agents) and add both to the vlinsert _stream_fields. Guard the target lookup with a default so a missing global.target does not break rendering. Signed-off-by: IvanHunters --- packages/system/talos-log-collector/templates/configmap.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/system/talos-log-collector/templates/configmap.yaml b/packages/system/talos-log-collector/templates/configmap.yaml index 0b79b931f..27ae34287 100644 --- a/packages/system/talos-log-collector/templates/configmap.yaml +++ b/packages/system/talos-log-collector/templates/configmap.yaml @@ -22,11 +22,13 @@ data: source: | .log_source = "talos_system" .node = get_env_var("VECTOR_SELF_NODE_NAME") ?? "unknown" + .tenant = "{{ .Values.global.target | default "tenant-root" }}" + .cluster = "root-cluster" sinks: victorialogs: type: http inputs: [tag] - uri: "http://vlinsert-generic.{{ .Values.global.target }}.svc:9481/insert/jsonline?_stream_fields=node,log_source,talos-service,facility&_msg_field=msg&_time_field=talos-time" + uri: "http://vlinsert-generic.{{ .Values.global.target | default "tenant-root" }}.svc:9481/insert/jsonline?_stream_fields=node,log_source,talos-service,facility,tenant,cluster&_msg_field=msg&_time_field=talos-time" method: post compression: gzip encoding: