Files
mtusi2026lab7-safronov/infra/otel/loki/loki.yaml
T
ricoromaandClaude Opus 5.5 b6eed88e95 feat: scan images and uv.lock for vulnerabilities with a triage file and patch-line updates
make scan runs pinned Trivy (by digest, no Docker socket, images as
docker save archives, network none, read-only) over every compose image
and the app image (also secrets in layers) and pinned pip-audit over the
uv.lock groups; every CRITICAL/HIGH image finding, secret and pip-audit
finding needs a triage record (verdict, reason, control, review date)
in infra/scan/triage.toml, otherwise a non-zero exit. Fixable findings
are updated within the patch line after a 7-day quarantine: PostgreSQL
and RabbitMQ rebuilds, Valkey 9.1.4, HAProxy 3.4.7, Loki 3.7.10, Python
3.12.15, certifi, dnspython, black, filelock, virtualenv.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:48:07 +03:00

54 lines
1.9 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.
# Loki 3.7.10 — хранилище логов (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 и Prometheus ходят через TLS-шлюз
# loki-gateway в сети telemetry (change telemetry-backends-tls).
auth_enabled: false
# с change telemetry-backends-tls (design, решения 2–3) — только loopback
# пространства шлюза loki-gateway: в сеть :3100 выводит шлюз по mTLS с
# allowlist identity и правами по пути. Порт HTTP другой (13100): 3100
# занимает шлюз в том же пространстве
server:
http_listen_address: 127.0.0.1
http_listen_port: 13100
grpc_listen_address: 127.0.0.1
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