Filtering debug logs from 250 Kubernetes pods
A platform team sees 40 log lines per pod per second and plans to keep 45%. Its 250 pods also produce Prometheus samples and a small volume of sampled traces.
Jump to resultsInputs
Results
Runs in your browser- 30-day ingest
- 4.708TB
- Active metric series
- 250,000
- Monthly telemetry bill
- $2,018.52/ month
The bill combines 30 days of ingest with the steady-state retained volume. Rates use decimal GB.
| Log ingest | 4.082 TB |
|---|---|
| Metric ingest | 345.6 GB |
| Trace ingest | 279.936 GB |
| Metric sample rate | 16,666.667 samples/s |
| 14-day retained volume | 2.197 TB |
| Ingest avoided by sampling | 7.509 TB |
| Savings from sampling | $2,997.82 / month |
| Log ingestion cost | $1,837.08 / month |
| Metric ingestion cost | $34.56 / month |
| Trace ingestion cost | $69.98 / month |
| Retained data cost | $76.90 / month |
What to try
The current filtering plan keeps about 4.08 TB of logs each month. Compare an always-keep error class with sampled debug traffic before committing to one blanket keep rate.
How the estimate works
Metric samples per second = active series ÷ scrape interval
The 30-day ingest estimate multiplies per-source signal rates by the number of sources. Logs and traces are sampled before ingestion. Metrics use active series × bytes per sample ÷ scrape interval.
Retained bytes equal the post-sampling daily ingest times the retention days, assuming steady traffic and equal billed and retained bytes. A separate retained-data rate applies to this steady-state volume.
Sampling savings compare the same workload at 100% log and trace capture. Prices use decimal GB. Adjust the byte sizes to match the meter you pay for. Cardinality-based tiers and cross-region duplication need separate charges.
Frequently asked questions
Can 45% log retention be modeled as dropping debug messages only?
Use the byte share after filtering. If debug messages are smaller than average, keeping 45% of lines can retain more than 45% of bytes.
Does filtering Kubernetes logs reduce Prometheus active series?
Log rules remove log bytes. Prometheus series depend on scraped metric labels and endpoints, so the metrics outputs remain unchanged here.