From cc73ad92a9f8eabfd6814652fd571058d223c9ed Mon Sep 17 00:00:00 2001 From: Nicolas Date: Thu, 31 Jul 2025 11:27:28 +0800 Subject: [PATCH] feat: add container logs collection to OpenTelemetry config for central storage --- .../templates/central-storage/opentelemetry.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/freeleaps/helm-pkg/centralStorage/templates/central-storage/opentelemetry.yaml b/freeleaps/helm-pkg/centralStorage/templates/central-storage/opentelemetry.yaml index 152f2bb3..c1626c8e 100644 --- a/freeleaps/helm-pkg/centralStorage/templates/central-storage/opentelemetry.yaml +++ b/freeleaps/helm-pkg/centralStorage/templates/central-storage/opentelemetry.yaml @@ -54,6 +54,16 @@ spec: - type: json_parser parse_from: body parse_to: attributes + otlp: + protocols: + grpc: + endpoint: 0.0.0.0:4317 + http: + endpoint: 0.0.0.0:4318 + # Add container logs receiver + k8scluster: + collection_interval: 1s + auth_type: serviceAccount processors: resource: attributes: @@ -112,7 +122,7 @@ spec: level: info pipelines: logs: - receivers: [filelog] + receivers: [filelog, otlp, k8scluster] processors: [resource, transform, batch] exporters: [otlphttp/logs] {{- end }} \ No newline at end of file