forked from mtusi2026/mtusi2026lab7
Source: mtusi2026lab6-safronov, solution/bvt2301-safronov, 6c6a065. Files follow AGENTS.md, "Переход в следующую лабу". Contracts, public tests, README, REPORT and evidence of lab 6 are not carried over; infra and scripts of the lab 7 skeleton stay as they are. Makefile is the lab 6 one with the lab 7 skeleton part restored (HTTPS BASE_URL on 8443, test-security); .gitignore and .dockerignore are taken from lab 6 because both skeletons have the same files; .env.example is the lab 6 one without changes. The compose project, image and CI prefix are renamed to lab7, and references to the previous lab now name lab6. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
# 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
|