forked from mtusi2026/mtusi2026lab7
лр7: Docker-прогон, evidence, исправления
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
# Tempo 3.1.1 — хранилище ТРАСС (single binary: distributor -> live-store -> блоки в volume tempodata,
|
||||
# без Kafka). Трассы приходят от Collector по OTLP gRPC :4317 (только внутренняя сеть telemetry),
|
||||
# запросы Grafana и тестов — HTTP :3200 (/api/traces/<trace_id>, /api/search, TraceQL).
|
||||
# Проверка: tempo -config.file=tempo.yaml -config.verify=true
|
||||
stream_over_http_enabled: true
|
||||
|
||||
# lab7: все точки входа Tempo — только mTLS с сертификатом нашего CA:
|
||||
# HTTP :3200 (запросы Grafana, scrape Prometheus, оператор), OTLP gRPC :4317 (Collector, CN=otel-collector),
|
||||
# внутренний gRPC :9095 между компонентами single binary (клиенты ниже ходят с сертификатом tempo).
|
||||
server:
|
||||
http_listen_port: 3200
|
||||
grpc_listen_port: 9095
|
||||
log_level: warn
|
||||
tls_min_version: VersionTLS12
|
||||
http_tls_config:
|
||||
cert_file: /run/tls/tls.crt
|
||||
key_file: /run/tls/tls.key
|
||||
client_auth_type: RequireAndVerifyClientCert
|
||||
client_ca_file: /run/tls-ca/ca.crt
|
||||
grpc_tls_config:
|
||||
cert_file: /run/tls/tls.crt
|
||||
key_file: /run/tls/tls.key
|
||||
client_auth_type: RequireAndVerifyClientCert
|
||||
client_ca_file: /run/tls-ca/ca.crt
|
||||
|
||||
distributor:
|
||||
receivers:
|
||||
otlp:
|
||||
protocols:
|
||||
grpc:
|
||||
endpoint: 0.0.0.0:4317
|
||||
tls:
|
||||
cert_file: /run/tls/tls.crt
|
||||
key_file: /run/tls/tls.key
|
||||
client_ca_file: /run/tls-ca/ca.crt
|
||||
min_version: "1.2"
|
||||
|
||||
# Внутренние gRPC-клиенты single binary -> собственный сервер :9095 (TLS, сертификат tempo, имя tempo).
|
||||
live_store_client:
|
||||
grpc_client_config: &tempo_grpc_tls
|
||||
tls_enabled: true
|
||||
tls_cert_path: /run/tls/tls.crt
|
||||
tls_key_path: /run/tls/tls.key
|
||||
tls_ca_path: /run/tls-ca/ca.crt
|
||||
tls_server_name: tempo
|
||||
querier:
|
||||
frontend_worker:
|
||||
grpc_client_config: *tempo_grpc_tls
|
||||
backend_scheduler_client:
|
||||
grpc_client_config: *tempo_grpc_tls
|
||||
|
||||
storage:
|
||||
trace:
|
||||
backend: local
|
||||
wal:
|
||||
path: /var/tempo/wal
|
||||
local:
|
||||
path: /var/tempo/traces
|
||||
|
||||
# Хранение 7 дней (как у Loki); удаление старых блоков делают backend-scheduler/worker.
|
||||
backend_scheduler:
|
||||
local_work_path: /var/tempo/scheduler
|
||||
provider:
|
||||
compaction:
|
||||
compaction:
|
||||
block_retention: 168h
|
||||
backend_worker:
|
||||
compaction:
|
||||
block_retention: 168h
|
||||
|
||||
usage_report:
|
||||
reporting_enabled: false
|
||||
Reference in New Issue
Block a user