Loki Server Presets
Kubernetes 100 GB/Day Grafana Alloy DaemonSet Preset (4-Slice)
Size batchwait, batchsize, and Loki WAL buffers when 40-120 K8s worker nodes push structured JSON container logs.
5.8 GB RSS · 1.6 TB (90d) · 4 GB Cache · $24/mo 4-Slice
Stopping Label Cardinality Explosion
In Kubernetes, indexing container_id or pod_name with rolling hashes spawns 50,000+ streams and spikes ingester RAM. Move ephemeral IDs into structured_metadata.
4-Slice Storage Headroom
At 100 GB/day and 8x ZSTD, 90 days consumes roughly 1.56 TB, leaving 2.4 TB free on an InterServer 4-Slice ($24/mo).
Measured Thresholds & Loki TSDB Parameters
| Layer | Configured Directive | Purpose |
|---|---|---|
| Alloy Batching | batchwait: 1s / batchsize: 1048576 | Reduces HTTP push RPS by 14x |
| WAL Replay Limit | replay_memory_ceiling: 2GB | Caps crash-recovery heap spike |
| Structured Metadata | allow_structured_metadata: true | Indexes pod/trace_id without stream explosion |