Interview Prep/Monitoring & Observability/Long-Term Storage, Scale and Cost

Object storage for metrics has grown to 400 TB. How do you reduce the cost?

IntermediateScenarioLong-Term Storage, Scale and Cost
Answer

Situation read → Retention is probably "keep everything forever at raw resolution".

What I'd do →

  1. Measure size by resolution and tenant (thanos tools bucket inspect).
  2. Set retention per resolution: raw 30 days, 5m 6 months, 1h 2 years.
  3. Check that the compactor actually runs and keeps up; a halted compactor means no retention at all.
  4. Move older objects to a cheaper storage class only if the store gateway can still read them (avoid archive classes like Glacier that need restores).
  5. Reduce cardinality at the source so fewer series are stored at all.

Why → Raw data is the bulk of storage, and almost nobody queries raw data older than a month.

Interview tip → Never use bucket lifecycle rules to delete blocks behind the compactor's back; it causes missing-block errors.

All Monitoring & Observability questions

More on Long-Term Storage, Scale and Cost