fix: optimize OpenTelemetry configuration to prevent duplicate log collection

- Change receivers from [filelog, otlp, k8scluster] to [filelog] only
- Prevent duplicate logs from multiple collection sources
- Keep only filelog receiver to collect logs from application log files
- This eliminates duplicate logs appearing in Grafana for devsvc and central-storage
This commit is contained in:
Nicolas 2025-07-31 23:08:10 +08:00
parent f98f980a7b
commit 5101e6d2cd
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ spec:
level: info
pipelines:
logs:
receivers: [filelog, otlp, k8scluster]
receivers: [filelog] # 只使用文件日志接收器,避免重复收集
processors: [resource, transform, batch]
exporters: [otlphttp/logs]
{{- end }}

View File

@ -120,7 +120,7 @@ spec:
level: info
pipelines:
logs:
receivers: [filelog, otlp, k8scluster]
receivers: [filelog] # 只使用文件日志接收器,避免重复收集
processors: [resource, transform, batch]
exporters: [otlphttp/logs]
{{- end }}