Layer 3 · self-hosting reality check
What it actually takes to self-host Grafana Loki
The docs say 1 GB. In practice you want 4 GB. Here is the honest version — real requirements, real monthly cost, what you will be maintaining, and the one thing that catches people out.
Usually reached from Splunk alternatives, where Grafana Loki is one of the picks.
| RAM — documented minimum | 1 GB |
|---|---|
| RAM — what it really needs | 4 GB |
| CPU | 2 vCPU |
| Disk | Compressed logs — roughly a tenth of raw. Object storage is the sane backend. |
| Monthly cost | $20–40/mo plus object storage, against Splunk pricing that is famously per-GB-ingested |
| Setup time | Half a day |
| How you install it | container; single-binary mode is legitimate well past the point people assume |
| Ongoing maintenance | Moderate. Label hygiene and retention are ongoing. |
| Where it stops scaling | Terabytes a day in microservices mode. Single-binary handles small and mid-size estates comfortably. |
The thing that catches people out
Loki indexes labels, not log content — that is the design that makes it cheap. Put anything high-cardinality in a label (request ID, user ID, pod name with a hash) and you create millions of tiny streams, queries crawl, and memory explodes. Keep labels to a handful of bounded values and search the content with the query language instead. This is the same cardinality trap as Prometheus, and it catches the same people twice.
When not to self-host Grafana Loki
Your team expects full-text search across everything with sub-second results. Loki trades that away deliberately in exchange for cost.
Every guide here carries this section. A site that only ever tells you to self-host is selling something — the useful answer is sometimes no.
Other Layer 3 self-hosting guides
Common questions
- How much RAM does Grafana Loki actually need?
- 4 GB in practice. The documented minimum is 1 GB, which is the figure at which the process starts rather than the figure at which it works under real use. 2 vCPU alongside it.
- What does self-hosting Grafana Loki cost per month?
- $20–40/mo plus object storage, against Splunk pricing that is famously per-GB-ingested This is commodity VPS pricing and excludes your time, which is the larger cost for most people — budget for moderate. Label hygiene and retention are ongoing.
- How long does it take to set up Grafana Loki?
- Half a day, via container; single-binary mode is legitimate well past the point people assume.
- When should I NOT self-host Grafana Loki?
- Your team expects full-text search across everything with sub-second results. Loki trades that away deliberately in exchange for cost.
- What is the most common mistake when self-hosting Grafana Loki?
- Loki indexes labels, not log content — that is the design that makes it cheap. Put anything high-cardinality in a label (request ID, user ID, pod name with a hash) and you create millions of tiny streams, queries crawl, and memory explodes. Keep labels to a handful of bounded values and search the content with the query language instead. This is the same cardinality trap as Prometheus, and it catches the same people twice.