From c85f4966c5e1a809b72da050b9b536ef8b679e4c Mon Sep 17 00:00:00 2001 From: zhenyus Date: Wed, 16 Apr 2025 07:23:27 +0800 Subject: [PATCH] fix: remove transform section from OpenTelemetry configuration Signed-off-by: zhenyus --- .../templates/authentication/opentelemetry.yaml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml index e3a6390b..eb675c30 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml @@ -60,17 +60,6 @@ spec: - key: loki.format action: insert value: json - # 使用transform将k8s和资源属性添加到原始JSON中 - transform: - log_statements: - - context: log - statements: - - set(body["k8s"], resource.attributes["k8s.pod.name"]) - - set(body["service"], resource.attributes["service.name"]) - - set(body["namespace"], resource.attributes["service.namespace"]) - # 可以添加更多需要的字段 - - set(body["pod_ip"], resource.attributes["k8s.pod.ip"]) - - set(body["node_name"], resource.attributes["k8s.node.name"]) batch: send_batch_size: 1000 timeout: 10s