Files
mtusi2026lab6/infra/otel/collector.yaml
T

41 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
processors:
memory_limiter:
check_interval: 1s
limit_mib: 384
spike_limit_mib: 96
batch:
send_batch_size: 512
timeout: 5s
exporters:
otlphttp/tempo:
endpoint: "http://tempo:4318"
otlphttp/loki:
endpoint: "http://loki:4317" # Loki поддерживает OTLP gRPC, но для простоты используем prometheus/loki native или otlphttp если включен
# На самом деле Loki лучше принимать через promtail или loki receiver, но для OTLP в Grafana стеке часто используют otlphttp с loki, либо promtail.
# Используем нативный loki exporter или otlphttp. Для простоты и совместимости с grafana/loki:3.3.2 используем otlphttp.
prometheus:
endpoint: "0.0.0.0:8889"
resource_to_telemetry_conversion:
enabled: true
service:
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [otlphttp/tempo]
metrics:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [prometheus]
logs:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [otlphttp/loki]