Nereus/observability/otel-collector/config.yaml

44 lines
902 B
YAML

receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
file_log/nereus:
include:
- /var/log/pods/nereus_*/*/*.log
include_file_path: true
operators:
- type: container
id: parse-container-log
processors:
memory_limiter:
check_interval: 1s
limit_mib: 256
k8s_attributes:
extract:
metadata:
- k8s.namespace.name
- k8s.pod.name
- k8s.container.name
batch:
timeout: 5s
exporters:
otlp_grpc/tempo:
endpoint: tempo:4317
tls:
insecure: true
otlp_http/loki:
endpoint: http://loki:3100/otlp
service:
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, k8s_attributes, batch]
exporters: [otlp_grpc/tempo]
logs:
receivers: [file_log/nereus]
processors: [memory_limiter, k8s_attributes, batch]
exporters: [otlp_http/loki]