feat: add container logs collection to OpenTelemetry config for central storage

This commit is contained in:
Nicolas 2025-07-31 11:27:28 +08:00
parent 23fca62e86
commit cc73ad92a9

View File

@ -54,6 +54,16 @@ spec:
- type: json_parser - type: json_parser
parse_from: body parse_from: body
parse_to: attributes 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: processors:
resource: resource:
attributes: attributes:
@ -112,7 +122,7 @@ spec:
level: info level: info
pipelines: pipelines:
logs: logs:
receivers: [filelog] receivers: [filelog, otlp, k8scluster]
processors: [resource, transform, batch] processors: [resource, transform, batch]
exporters: [otlphttp/logs] exporters: [otlphttp/logs]
{{- end }} {{- end }}