Loki Server Presets
OpenTelemetry JSON & Tempo Trace Correlation 250 GB/Day Preset
Configure Loki 3.x structured_metadata and 6x JSON ZSTD sizing for verbose OTel microservice log payloads.
10.8 GB RSS · 6x JSON Ratio · 90d = 4.9 TB · 8 GB Memcached
Account for Lower OTel Compression (6x)
Verbose OpenTelemetry JSON records containing UUIDs, stack traces, and baggage fields compress closer to 6x than 10x. Size storage slices conservatively.
Derived Fields in Grafana
Extract trace_id via structured_metadata so Grafana links log lines straight to Tempo spans without indexing high-cardinality trace IDs.
Measured Thresholds & Loki TSDB Parameters
| Parameter | Setting | Reason |
|---|---|---|
| Compression Ratio | 6x - 7x (high-entropy OTel JSON) | Unique UUIDs/spans reduce ZSTD density |
| Structured Metadata | trace_id, span_id, pod_name | Fast Tempo drill-down without label bloat |
| Storage Allocation | 8-Slice (8 TB) or 16-Slice (16 TB) | Covers 4.9 TB 90-day OTel footprint |