iac/ansible/roles/monitoring/templates/loki.env.j2
Sergei Poljanski 27d4b73eb0
Some checks failed
deploy / ansible (push) Has been cancelled
monitoring: keep Loki chunks in S3, 90 days of logs and metrics
ops has 12 GB free on a 38 GB disk and the Traefik access log alone
is ~600 MB, so logs can't grow there. From 2026-11-14 Loki writes
chunks and index to Hetzner Object Storage (asxpio-loki-main, hel1)
with the existing project key, passed through loki.env and
-config.expand-env. Today's filesystem period ages out by retention.

Log retention goes from 14 to 90 days. Prometheus metrics are small
(~20 MB so far) and stay local, now for 90 days instead of 30.

Assisted-by: Claude:opus-5-5
2026-11-13 07:04:00 +04:00

3 lines
108 B
Django/Jinja

# Managed by Ansible (role monitoring).
S3_ACCESS_KEY={{ s3_access_key }}
S3_SECRET_KEY={{ s3_secret_key }}