Files
mtusi2026lab6/infra/otel/collector.yaml
T
Самохвалов Андрей Ремович 22e1764d84 feat: Add pinned telemetry stack and Grafana provisioning (U1)
Wire OTLP metrics, logs, and traces to Prometheus, Loki, and Tempo with
bounded Collector queues. Provision Grafana sources and a dashboard based on
the stores' and Collector's documented metrics. Runtime integration awaits
the application Compose stack; static syntax and wiring checks pass.
2026-10-02 14:16:47 +03:00

73 lines
1.5 KiB
YAML

receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
memory_limiter:
check_interval: 1s
limit_mib: 256
spike_limit_mib: 64
batch:
timeout: 2s
send_batch_size: 512
exporters:
prometheusremotewrite:
endpoint: http://prometheus:9090/api/v1/write
tls:
insecure: true
remote_write_queue:
enabled: true
queue_size: 1000
num_consumers: 1
retry_on_failure:
enabled: true
max_elapsed_time: 30s
otlphttp/loki:
endpoint: http://loki:3100/otlp
sending_queue:
enabled: true
queue_size: 64
retry_on_failure:
enabled: true
max_elapsed_time: 30s
otlp/tempo:
endpoint: tempo:4317
tls:
insecure: true
sending_queue:
enabled: true
queue_size: 64
retry_on_failure:
enabled: true
max_elapsed_time: 30s
service:
telemetry:
metrics:
readers:
- pull:
exporter:
prometheus:
host: 0.0.0.0
port: 8888
without_type_suffix: true
without_units: true
pipelines:
metrics:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [prometheusremotewrite]
logs:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [otlphttp/loki]
traces:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [otlp/tempo]