Set Up Loki

Cheap logs.

Overview

Loki is Grafana’s log aggregation system, designed around a deliberately narrow indexing strategy: index labels, not content. Storage stays cheap because raw log lines live in object storage; queries stay fast because the label index is small. The discipline that matters most is keeping label cardinality under control.

The approach

Three habits keep Loki cheap and fast: monolithic mode to start, S3-backed storage from day one, and ruthless label discipline so cardinality stays under control.

Why this compounds

Each shipped service grows the team’s log visibility while keeping costs predictable. LogQL fluency compounds with PromQL fluency; the same Grafana dashboards now blend metrics, logs, and traces.