crusto/infra/otel-collector-config.yaml
2024-12-09 15:43:16 +03:00

39 lines
717 B
YAML

# 1. Receive otlp
# 2. Log logs to stdout
# 3. Send traces to jaeger at jaeger:4317 (using otlp)
# 4. Export metrics to prometheus using port 8889
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
batch:
exporters:
debug:
otlp/jaeger:
endpoint: jaeger:4317
tls:
insecure: true
prometheus:
endpoint: 0.0.0.0:8889
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlp/jaeger]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [prometheus]
logs:
receivers: [otlp]
processors: [batch]
exporters: [debug]