Highly available Prometheus setup with long term storage capabilities. A CNCF Incubating project.
Go to file
Giedrius Statkevičius 49a560d09d
Merge pull request #7758 from thibaultmg/life_of_a_sample_part_2
Blog article submission: Life of a Sample in Thanos Part II
2025-07-26 15:03:50 +03:00
.bingo *: bump Go to 1.24 (#8105) 2025-02-18 12:41:03 +00:00
.circleci *: bump Go to 1.24 (#8105) 2025-02-18 12:41:03 +00:00
.devcontainer Bump devcontainer Dockerfile base image from go1.22 to go1.23 (#8031) 2024-12-31 13:44:21 -08:00
.github build(deps): bump github/codeql-action from 3.26.13 to 3.28.19 (#8304) 2025-06-10 09:30:25 +05:30
cmd/thanos *: Update promql-engine and prometheus (#8388) 2025-07-25 10:39:09 -07:00
docs Merge pull request #7758 from thibaultmg/life_of_a_sample_part_2 2025-07-26 15:03:50 +03:00
examples block: bust cache if modified timestamp differs 2025-07-23 13:32:41 +03:00
internal/cortex *: Update promql-engine and prometheus (#8388) 2025-07-25 10:39:09 -07:00
mixin mixin: Fix all spelling issues discovered by codespell. 2024-08-16 15:49:29 +02:00
pkg *: Update promql-engine and prometheus (#8388) 2025-07-25 10:39:09 -07:00
scripts block: bust cache if modified timestamp differs 2025-07-23 13:32:41 +03:00
test *: Update promql-engine and prometheus (#8388) 2025-07-25 10:39:09 -07:00
tutorials tutorials: Fix all spelling issues discovered by codespell. 2024-08-16 15:25:15 +02:00
website fix: maintain expanded state based on current page (#8266) 2025-05-30 12:07:23 +03:00
.busybox-versions Updates busybox SHA (#6982) 2023-12-15 14:43:24 -08:00
.cortex-packages.txt chore: Vendor Cortex dependency as an internal package (#5504) 2022-07-15 09:32:07 -07:00
.dockerignore UI: Use native go:embed instead of go-bindata (#6900) 2023-11-18 10:28:51 +05:30
.gitattributes chore: Vendor Cortex dependency as an internal package (#5504) 2022-07-15 09:32:07 -07:00
.gitignore UI: Use native go:embed instead of go-bindata (#6900) 2023-11-18 10:28:51 +05:30
.gitpod.yml Add .gitpod (#3499) 2020-11-24 13:04:16 +01:00
.go-version *: bump Go to 1.24 (#8105) 2025-02-18 12:41:03 +00:00
.golangci.yml *: Update promql-engine and prometheus (#8388) 2025-07-25 10:39:09 -07:00
.mdox.prev-release.yaml docs: Add `mdox` remote/local link checking and move web preprocess (#4357) 2021-08-17 11:47:31 +01:00
.mdox.validate.yaml docs: Add link to ignore (#7926) 2024-11-18 14:45:18 +00:00
.mdox.yaml Added website page for companies who offer consultancy and enterprise… (#7000) 2023-12-24 13:55:17 -08:00
.promu.yml *: Update promql-engine and prometheus (#8388) 2025-07-25 10:39:09 -07:00
CHANGELOG.md [tools] add flag for uploading compacted blocks to bucket upload-blocks (#8359) 2025-07-23 17:58:01 -07:00
CODE_OF_CONDUCT.md docs: Added auto-formating and link localizing for all docs. (#4339) 2021-06-17 19:40:11 +05:30
CONTRIBUTING.md Fix all spelling issues discovered by codespell. 2024-08-16 16:01:11 +02:00
Dockerfile feat: Use non root user as default user in container image (#6107) 2023-03-17 11:21:38 +00:00
Dockerfile.e2e-tests *: Update promql-engine and prometheus (#8388) 2025-07-25 10:39:09 -07:00
Dockerfile.multi-arch feat: Use non root user as default user in container image (#6107) 2023-03-17 11:21:38 +00:00
Dockerfile.multi-stage *: bump Go to 1.24 (#8105) 2025-02-18 12:41:03 +00:00
LICENSE Initial commit 2017-11-01 17:38:04 +00:00
MAINTAINERS.md Update affiliation of kakkoyun (#7773) 2024-09-22 11:37:03 +02:00
Makefile *: Update promql-engine and prometheus (#8388) 2025-07-25 10:39:09 -07:00
README.md Update info on thanoscon 2024-05-24 17:39:30 +01:00
SECURITY.md docs: Added auto-formating and link localizing for all docs. (#4339) 2021-06-17 19:40:11 +05:30
VERSION Release 0.39.2 2025-07-17 14:17:28 +00:00
doc.go Update reference of master to main in docs (#3849) 2021-03-01 16:37:22 +00:00
go.mod *: Update promql-engine and prometheus (#8388) 2025-07-25 10:39:09 -07:00
go.sum *: Update promql-engine and prometheus (#8388) 2025-07-25 10:39:09 -07:00
netlify.toml Added blog space on Thanos website. (#5873) 2022-11-07 11:53:30 -08:00

README.md

Thanos Logo

Latest Release Go Report Card Go Code reference Slack Netlify Status CII Best Practices

CI CI go react docs Gitpod ready-to-code Open in GitHub Codespaces

📢 ThanosCon happened on 19th March 2024 as a co-located half-day on KubeCon EU in Paris.

Overview

Thanos is a set of components that can be composed into a highly available metric system with unlimited storage capacity, which can be added seamlessly on top of existing Prometheus deployments.

Thanos is a CNCF Incubating project.

Thanos leverages the Prometheus 2.0 storage format to cost-efficiently store historical metric data in any object storage while retaining fast query latencies. Additionally, it provides a global query view across all Prometheus installations and can merge data from Prometheus HA pairs on the fly.

Concretely the aims of the project are:

  1. Global query view of metrics.
  2. Unlimited retention of metrics.
  3. High availability of components, including Prometheus.

Getting Started

Features

  • Global querying view across all connected Prometheus servers
  • Deduplication and merging of metrics collected from Prometheus HA pairs
  • Seamless integration with existing Prometheus setups
  • Any object storage as its only, optional dependency
  • Downsampling historical data for massive query speedup
  • Cross-cluster federation
  • Fault-tolerant query routing
  • Simple gRPC "Store API" for unified data access across all metric data
  • Easy integration points for custom metric providers

Architecture Overview

Deployment with Sidecar for Kubernetes:

Sidecar

Deployment with Receive in order to scale out or implement with other remote write compatible sources:

Receive

Thanos Philosophy

The philosophy of Thanos and our community is borrowing much from UNIX philosophy and the golang programming language.

  • Each subcommand should do one thing and do it well
    • e.g. thanos query proxies incoming calls to known store API endpoints merging the result
  • Write components that work together
    • e.g. blocks should be stored in native prometheus format
  • Make it easy to read, write, and, run components
    • e.g. reduce complexity in system design and implementation

Releases

Main branch should be stable and usable. Every commit to main builds docker image named main-<date>-<sha> in quay.io/thanos/thanos and thanosio/thanos dockerhub (mirror)

We also perform minor releases every 6 weeks.

During that, we build tarballs for major platforms and release docker images.

See release process docs for details.

Contributing

Contributions are very welcome! See our CONTRIBUTING.md for more information.

Community

Thanos is an open source project and we value and welcome new contributors and members of the community. Here are ways to get in touch with the community:

Adopters

See Adopters List.

Maintainers

See MAINTAINERS.md