talira

Open source, highly available Prometheus setup with long term storage capabilities

open sourceApache-2.0self-hostablefree

Thanos is a set of components added on top of existing Prometheus servers to give a global query view, unlimited retention and high availability. A Sidecar next to each Prometheus (or a Receiver that takes remote write) uploads data in the Prometheus block format to object storage such as S3, Google Cloud Storage or Azure; the Store Gateway serves it back, the Compactor compacts, downsamples and applies retention, and the Querier merges and deduplicates data from Prometheus HA pairs behind the Prometheus query API, so Grafana works unchanged. A Ruler evaluates recording and alerting rules over the whole dataset. It is Apache-2.0 and a CNCF incubating project.

Ways to install

Package managers

Problems it solves

  • keep a year of Prometheus metrics without buying huge disks for every server
  • query metrics from Prometheus servers in many Kubernetes clusters from one Grafana data source
  • we run two Prometheus replicas for HA and get duplicate series in every graph
  • store old metrics cheaply in S3 or GCS and still query them with PromQL
  • queries over the last six months are painfully slow on raw-resolution data
  • Prometheus loses its local data when the pod is rescheduled and we want it in durable storage
  • evaluate alert rules across data from all our clusters, not just one Prometheus
  • accept remote write from many Prometheus agents into one central metrics store
  • apply different retention to raw and downsampled metrics data
  • scale Prometheus beyond one server without switching to a different query language

Features

  • global querying view across all connected Prometheus servers
  • deduplication and merging of metrics from Prometheus HA pairs
  • Sidecar that uploads Prometheus data to object storage
  • Receiver for Prometheus remote write
  • Store Gateway that serves metrics from an object storage bucket
  • Compactor that compacts, downsamples and applies retention
  • Ruler for recording and alerting rules over Thanos data
  • Querier and Query Frontend implementing the Prometheus v1 query API, with response caching
  • object storage clients for S3 and S3-compatible stores, Google Cloud Storage, Azure, OpenStack Swift, Tencent COS, AliYun OSS, Oracle Cloud and local filesystem
  • cross-cluster federation and fault-tolerant query routing
View 1 more
  • gRPC Store API for custom metric providers

Capabilities

Has an APIplan not known

Alternatives

The same job

These do what Thanos does.

  1. Amazon Managed Service for Prometheus Serverless, Prometheus-compatible monitoring service for container metrics
  2. Cortex Horizontally scalable, highly available, multi-tenant, long term storage solution for Prometheus and OpenTelemetry Metrics
  3. Grafana Mimir Horizontally scalable, highly available, multi-tenant long-term storage for Prometheus
  4. VictoriaMetrics Fast, cost-effective and scalable time series database for monitoring, and long-term storage for Prometheus
  5. GreptimeDB The open-source observability database

Compare Thanos with the top 3