From ed5c6a45af011dc404a5b702a1520d16efe1f2ab Mon Sep 17 00:00:00 2001 From: zhenyus Date: Wed, 16 Apr 2025 06:06:43 +0800 Subject: [PATCH] fix: refactor OpenTelemetry configuration by removing unused operators and restructuring metadata extraction Signed-off-by: zhenyus --- .../authentication/opentelemetry.yaml | 28 +++++++------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml index 9756f1c6..3f718406 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml @@ -15,30 +15,20 @@ spec: start_at: beginning include_file_path: true include_file_name: true - operators: - - type: json_parser - timestamp: - parse_from: record.time.timestamp - layout: unix_float - - type: move - from: record.level.name - to: severity - - type: move - from: record.message - to: message processors: k8sattributes: auth_type: "serviceAccount" passthrough: false extract: - - k8s.pod.name - - k8s.pod.ip - - k8s.pod.uid - - k8s.deployment.name - - k8s.deployment.uid - - k8s.namespace.name - - k8s.node.name + metadata: + - k8s.pod.name + - k8s.pod.ip + - k8s.pod.uid + - k8s.deployment.name + - k8s.deployment.uid + - k8s.namespace.name + - k8s.node.name pod_association: - sources: - from: resource_attribute @@ -46,6 +36,8 @@ spec: - sources: - from: resource_attribute name: k8s.pod.uid + - sources: + - from: connection resource: attributes: - key: service.name