Skip to main content
HUD LOGCHUNK SYSTEMS // LOKI 3.X SINGLE-BINARY TSDB & ZSTD TELEMETRY SCHEMA: TSDB-SHIPPER V13 | ZSTD 6X-11X | BASELINE 2026-11-13
GrafanaLokiRAM
GrafanaLokiRAM Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
TSDB & RAM Tuning

Controlling Label Cardinality in Grafana Alloy & Promtail

Drop high-cardinality labels before HTTP push to keep active TSDB streams under 15,000 and prevent ingester heap bloat.

<10k Streams = Healthy · >50k Streams = OOM Risk

Controlling Label Cardinality in Grafana Alloy & Promtail
Telemetry baseline verified 2026-11-13 by LogChunk Systems.

Every Extra Label Value Multiplies Streams

Each unique combination of label key=value pairs spawns an independent chunk stream in Loki RAM. Five apps x 3 envs x 1,000 ephemeral pod names equals 15,000 streams immediately.

Batching 1 MB Snappy Payloads

Configure batchwait: 1s and batchsize: 1048576 in Alloy/Promtail so agents compress 1,000+ log lines per HTTP POST instead of hammering Loki per line.

Measured Thresholds & Loki TSDB Parameters

Field TypeCorrect PlacementMemory Impact
env, cluster, namespace, appIndexed Stream LabelsLow cardinality (< 5,000 streams)
trace_id, pod_uid, node_ipstructured_metadata (Loki 3.x)Zero stream multiplication in ingester
http_path, query_stringParse at Query Time (LogQL)Zero upfront index/RAM overhead
<10k Streams = Healthy · >50k Streams = OOM Risk InterServer $6/TB SliceUltaHost VDS ($37.50+/mo)