feat: add container logs collection to OpenTelemetry config for central storage
This commit is contained in:
parent
23fca62e86
commit
cc73ad92a9
@ -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 }}
|
||||
Loading…
Reference in New Issue
Block a user