fix: Loki reject_old_samples_max_age настройка для устранения ошибок Promtail

Проблема:
- Promtail логи показывали множество ошибок "entry too far behind"
- Loki использовал дефолтное значение reject_old_samples_max_age = 1h
- Это конфликтовало с retention_period = 720h (30 дней)

Решение:
- Добавлена настройка reject_old_samples_max_age: 720h
- Теперь Loki принимает логи возрастом до 30 дней
- Соответствует периоду retention

Результат:
- Ошибки "entry too far behind" исчезли из логов Promtail
- Loki и Promtail работают стабильно после рестарта

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
SamoilenkoVadym 2025-11-07 14:52:02 +00:00
parent 12b95e25f9
commit cc95b76117

View file

@ -22,6 +22,8 @@ limits_config:
ingestion_burst_size_mb: 100
max_entries_limit_per_query: 5000
retention_period: 720h
reject_old_samples: true
reject_old_samples_max_age: 720h # Accept logs up to 30 days old (matches retention)
query_range:
results_cache: