For the exam you do not need to memorize Thanos’s entire internals. Focus on its purpose—providing long‑term storage and a single query layer for multiple Prometheus instances—and the main benefits summarized below.
- Single pane of glass: Query metrics from many Prometheus instances through one Thanos Query endpoint instead of logging into each Prometheus server.
- High‑availability deduplication: When you run Prometheus in HA (multiple Prometheus servers scraping the same targets), Thanos can deduplicate duplicate series so dashboards and alerts reflect a single logical view.
- Cost‑effective long‑term storage: Thanos uploads Prometheus TSDB blocks to object stores (AWS S3, Azure Blob Storage, GCS) so local disk usage on each Prometheus server doesn’t grow without bound.
Architecture overview
- Thanos Sidecar: Deployed with each Prometheus server. Uploads local blocks to long‑term object storage and exposes the instance’s recent data to Thanos Query.
- Thanos Store: Loads historical blocks from object storage (S3, GCS, Azure Blob) and serves those blocks to Thanos Query.
- Thanos Query: The PromQL‑aware query frontend that merges results from sidecars (recent data) and stores (historical data), deduplicates series, and returns unified results to clients such as Grafana.

2h) prevents Prometheus from running compaction and keeps block boundaries stable while Thanos uploads blocks to object storage.
Disabling compaction reduces Prometheus’s on‑disk optimizations and can affect local query performance or disk usage patterns. Test this configuration in staging and monitor resource use before applying in production.
- Focus on what Thanos does and the benefits it adds to Prometheus: unified querying, deduplication for HA, and long‑term storage in object stores.
- Know the roles of Sidecar, Store, and Query as the main Thanos building blocks.
- Understand why you might disable Prometheus compaction when integrating with Thanos and be aware of the operational tradeoffs.
- Thanos documentation: https://thanos.io/
- Prometheus TSDB concepts: https://prometheus.io/docs/introduction/overview/
- Thanos provides a global view across multiple Prometheus servers, deduplicates HA series, and enables durable, cost‑effective long‑term storage by backing Prometheus blocks up to object stores.
- For exam purposes, prioritize understanding Thanos’s purpose and the core components rather than its full internal architecture.
