Cost estimates
What 5 TB/day of logs costs to run on Plural Telemetry, on self-hosted Loki, and on Datadog. Every assumption is adjustable.
Compute 16 writer + 16 reader vCPU | $953 |
Object storage 10,313 GB incl. index | $237 |
Object requests WAL, SST, compaction, cache misses | $677 |
Cross-AZ traffic write forwarding + query fan-out | $522 |
Compute 127 vCPU (66 in RF=3 ingesters) | $3,783 |
Object storage 9,656 GB chunks + index | $222 |
Object requests chunk flushes, query fetches | $693 |
Cross-AZ traffic replication to 3 ingesters | $2,027 |
WAL volumes 17 × 100 GB gp3 | $136 |
Ingestion $0.10 / GB ingested | $15k |
Indexing $1.70 / M events, 15-day retention | $398k |
The scenario
The default scenario is a mid-to-large platform team:
- 5 TB/day of raw logs, about 58 MB/s on average and 87 MB/s at a 1.5× peak.
- 15-day retention, which is Datadog's standard indexed tier.
- 650-byte average event: 70% at 250 B, 25% at 1 KiB, 5% at 4 KiB. That's about 7.7 billion events a day.
- 8× compression on the stored data, applied equally to Plural Telemetry and Loki.
- AWS us-east-1 on-demand prices, three availability zones.
Where the differences come from
Datadog is priced per event indexed. At this volume, indexing is about 96% of the bill, and the price scales linearly with event count, not bytes. Flex Logs and sampling bring it down, but only by keeping less searchable data.
Loki is much cheaper than Datadog, but three things in its architecture cost real money at this scale:
- Replication factor 3. Every write fans out to three ingesters, so ingest CPU and memory roughly triple.
- Cross-AZ traffic. Two of the three replicas sit in other zones, and AWS charges $0.01/GB in each direction. At 5 TB/day that's around $2,000/month that does nothing but move bytes.
- Component sprawl. Frontends, schedulers, index gateways, rulers and three memcached fleets all need baseline capacity.
Plural Telemetry writes each record once, to one shard owner, and lets S3 provide durability. One 4-vCPU writer sustains about 2.9 TB/day of log lines, so the default 5 TB/day at a 1.5× peak needs four writers and 16 writer vCPU, where Loki's replicated ingesters alone need about 66. Its cross-AZ cost comes from forwarding a request to the shard owner when an agent hits a different writer, and from queries reading other shards' reader groups. An ingest buffer partitioned by shard would remove the first. The second carries only query results, not ingest volume, so it stays small.
Reader groups
Each storage shard gets its own group of readers, two replicas by default, and each reader opens only its shard. The reader tier grows with the shard count, but each pod is smaller: its cache holds one shard's working set, and it scans one shard per query. Reads from other shards go over gRPC to their groups:
- Compute. Pods per shard replace a few large readers. Total reader vCPU is similar for the same query load, but the floor is
shards × minReplicaspods. - Object requests. Manifest polling and cache misses scale with (reader pod, shard) pairs, which is the same as when every reader opens every shard.
- Cross-AZ traffic. A query moves the partial results of every remote shard to the reader that received it, and about two-thirds of that traffic crosses a zone.
- Autoscaling. A CPU-targeted HorizontalPodAutoscaler per group scales a hot shard's readers without scaling the rest, so you pay for query headroom only where it's used.
See capacity planning for the formulas.
Assumptions
| Input | Value | Source |
|---|---|---|
| Compute | $0.0408 per vCPU-hour, memory included | m7g.2xlarge: 8 vCPU / 32 GiB at $0.3264/h |
| Plural Telemetry writer throughput | 25 MB/s of raw log lines per 4-vCPU writer at peak | 75% of the measured 52,500 entries/s (636-byte lines) a writer sustained in the scale test |
| Plural Telemetry readers | One group per storage shard, 2 replicas × 2 vCPU | Moderate query load; readers do not perform ingestion or compaction |
| Plural Telemetry reader GETs | 17 / s per (reader pod, opened shard) | Manifest polling and cache misses |
| Plural Telemetry query fan-out | 1% of raw ingest per day returned by remote shards | Query results only; two-thirds cross a zone |
| Loki distributor | 1 vCPU per 10 MB/s at peak | Grafana sizing guidance |
| Loki ingester | 1 vCPU per 4 MB/s, ×3 replicas | RF=3 |
| Loki query path | 60% of Plural Telemetry's total compute | Generous to Loki |
| Loki other | 12 vCPU + 4 per TB/day | index-gw, compactor, ruler, frontend, scheduler, memcached |
| S3 storage | $0.023 / GB-month | S3 Standard |
| S3 requests | $0.005 / 1k PUT, $0.0004 / 1k GET | WAL at 10 PUT/s per writer, plus SST and compaction writes |
| Cross-AZ | $0.02 / GB crossing | Wire compression about 3× |
| Datadog | $0.10 / GB ingested + $1.06–$2.50 / M events indexed by retention | List price, annual commitment |