From db433944855db4a5bc66144995e145c307dea206 Mon Sep 17 00:00:00 2001 From: Fi3w0 Date: Thu, 27 Aug 2026 21:42:00 +0200 Subject: [PATCH] fix(observability): cap log batches under loki's grpc limit --- deploy/observability/otel-log-collector.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy/observability/otel-log-collector.yaml b/deploy/observability/otel-log-collector.yaml index 887c904..e84f2ed 100644 --- a/deploy/observability/otel-log-collector.yaml +++ b/deploy/observability/otel-log-collector.yaml @@ -24,6 +24,11 @@ data: limit_mib: 96 batch: timeout: 5s + # Loki's internal gRPC push limit is 4 MiB. start_at: beginning replays + # whole files after a restart, so an uncapped batch exceeds it and the + # exporter retries the same oversized request forever. + send_batch_size: 1000 + send_batch_max_size: 2000 exporters: otlphttp/loki: