Thanos adds global querying, deduplication, and object-storage retention on top of existing Prometheus deployments. Components compose into a metric system with unlimited historical capacity.
Overview
Thanos is a set of composable components that extend Prometheus into a highly available metrics stack with long-term storage. It layers onto current Prometheus installations rather than replacing them, using the Prometheus 2.0 storage format to keep query latencies low while offloading history to inexpensive object storage.
A global query layer lets you search metrics across many Prometheus servers and clusters. It deduplicates and merges series from Prometheus HA pairs on the fly, and offers cross-cluster federation plus fault-tolerant query routing. Historical data can be downsampled to speed queries over long time ranges, and retention policies can be tailored per deployment.
Optional object storage is the main external dependency. Supported backends mentioned include GCP, S3, Azure, Swift, and Tencent COS. A simple gRPC Store API unifies access to metric data, and Grafana and other tools that speak the Prometheus Query API can keep working as before.
Components follow a modular design: for example, query proxies fan out to known store endpoints and merge results, while sidecar or receive layouts fit Kubernetes or remote-write setups. Docker images and release tarballs are published for deployment alongside existing observability tooling.
Key features
- Global query across Prometheus servers
- HA pair deduplication and merging
- Object storage for unlimited retention
- Downsampling for long-range queries
- Cross-cluster federation
- Fault-tolerant query routing
- Prometheus 2.0 storage format
- gRPC Store API for metric data
Use cases
- Federated metrics across clusters
- Long-term Prometheus metric retention
- Highly available Prometheus setups
- Cross-region observability queries
- Cost-efficient historical metric storage