From a72ed9b1b92304cd3b0c82a54712adaf7294c76b Mon Sep 17 00:00:00 2001 From: zhenyus Date: Wed, 16 Apr 2025 07:18:50 +0800 Subject: [PATCH] feat: add additional fields for pod IP and node name in OpenTelemetry log transformation Signed-off-by: zhenyus --- .../authentication/templates/authentication/opentelemetry.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml index d0fa780c..32bce7d5 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml @@ -68,6 +68,9 @@ spec: - 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