feat: add OpenTelemetry SDK, collector and telemetry stores
Collector (contrib), Prometheus, Loki, Tempo and Grafana with provisioning from git; SDK in API and worker with level 3 metrics, traces and logs carrying trace_id/span_id; telemetry off by default outside the stand; broker healthcheck runs as the broker user so a fresh stand starts once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
# Loki 3.7.9 — хранилище логов (design change otel-telemetry, решение 15).
|
||||
# Монолит из конфигурации образа (/etc/loki/local-config.yaml): filesystem,
|
||||
# inmemory ring, schema v13 tsdb; плюс срок хранения 7 суток, compactor и без
|
||||
# отчётов об использовании. Приём — родной OTLP (/otlp) от Collector, метки
|
||||
# потока по умолчанию — service_name, service_instance_id,
|
||||
# deployment_environment_name; поля записи — structured metadata. Порт не
|
||||
# публикуется: Collector и Grafana ходят в сети telemetry.
|
||||
auth_enabled: false
|
||||
|
||||
server:
|
||||
http_listen_port: 3100
|
||||
log_level: info
|
||||
|
||||
common:
|
||||
instance_addr: 127.0.0.1
|
||||
path_prefix: /loki
|
||||
storage:
|
||||
filesystem:
|
||||
chunks_directory: /loki/chunks
|
||||
rules_directory: /loki/rules
|
||||
replication_factor: 1
|
||||
ring:
|
||||
kvstore:
|
||||
store: inmemory
|
||||
|
||||
schema_config:
|
||||
configs:
|
||||
- from: 2020-10-24
|
||||
store: tsdb
|
||||
object_store: filesystem
|
||||
schema: v13
|
||||
index:
|
||||
prefix: index_
|
||||
period: 24h
|
||||
|
||||
# удаление данных старше срока делает compactor
|
||||
compactor:
|
||||
working_directory: /loki/compactor
|
||||
retention_enabled: true
|
||||
delete_request_store: filesystem
|
||||
|
||||
limits_config:
|
||||
retention_period: 168h
|
||||
|
||||
analytics:
|
||||
reporting_enabled: false
|
||||
Reference in New Issue
Block a user