Skip to main content
Account

Thanos

Thanos extends Prometheus with long-term storage, high availability and a global query view. Learn how its Sidecar, Querier, Compactor and Store Gateway work.

Status
Stable
Category
Observability and Analysis
Subcategory
Observability
License
Apache-2.0
Technology matrix Skip Just not for me See the matrix

Thanos extends Prometheus with unlimited retention, high availability, and a single global query view across many Prometheus servers. It is a set of stateless components that cooperate with existing Prometheus instances rather than a rewrite, so teams can adopt it incrementally.

The Sidecar runs next to each Prometheus and uploads completed TSDB blocks to an object store (S3, GCS, Azure Blob, Ceph, MinIO, etc.). Store Gateway exposes those historical blocks as a query API backed by object storage. Querier is a stateless PromQL engine that fans out over Sidecars, Store Gateways, and other Queriers via the Thanos gRPC Store API, deduplicates samples from HA Prometheus pairs, and returns a global result. Compactor downsamples old blocks to 5m and 1h resolutions and runs vertical compaction to make long-range queries tractable. Receive accepts Prometheus remote-write for push-based or multi-tenant setups, and Ruler evaluates recording and alerting rules against the global view.

Thanos is a CNCF Incubating project originated at Improbable and is one of the two dominant approaches (the other being Cortex/Mimir) for turning Prometheus into a long-term, global monitoring system.

Thanos recordings

2 recordings, newest first

Observability

Email signup loads here. You can also manage email preferences in account settings.

Build Thanos? I'll show you where engineers get stuck with it โ†’ Back free content for the community โ†’