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:
parent
f98f980a7b
commit
5101e6d2cd
@ -122,7 +122,7 @@ spec:
|
||||
level: info
|
||||
pipelines:
|
||||
logs:
|
||||
receivers: [filelog, otlp, k8scluster]
|
||||
receivers: [filelog] # 只使用文件日志接收器,避免重复收集
|
||||
processors: [resource, transform, batch]
|
||||
exporters: [otlphttp/logs]
|
||||
{{- end }}
|
||||
@ -120,7 +120,7 @@ spec:
|
||||
level: info
|
||||
pipelines:
|
||||
logs:
|
||||
receivers: [filelog, otlp, k8scluster]
|
||||
receivers: [filelog] # 只使用文件日志接收器,避免重复收集
|
||||
processors: [resource, transform, batch]
|
||||
exporters: [otlphttp/logs]
|
||||
{{- end }}
|
||||
Loading…
Reference in New Issue
Block a user