Skills / Engineering / Thanos

Thanos

Give Prometheus unlimited retention and global querying with Thanos. Deploy the sidecar, store, query, and compactor components for durable metric storage in object storage, cross-cluster queries, downsampling, and HA deduplication.

This skill helps you scale Prometheus with Thanos. It deploys the sidecar to ship blocks to object storage (S3, GCS), runs the Store Gateway for historical reads, federates a global view with the Querier across clusters, dedupes HA Prometheus pairs, and configures the Compactor for downsampling and retention. It also covers object-store configuration, query performance tuning, and migrating from plain Prometheus to a Thanos topology.

thanos prometheus metrics observability long-term-storage

When to use

Use when scaling Prometheus with Thanos — sidecar block shipping, Store Gateway, global Querier across clusters, HA deduplication, or the Compactor for downsampling and long-term retention.

Examples

Sidecar to object storage

Ship Prometheus blocks to S3

Configure a Thanos sidecar alongside Prometheus that uploads TSDB blocks to an S3 bucket, and set up the Store Gateway to serve historical queries from that bucket

Global query view

Query across two clusters

Deploy a Thanos Querier that fans out to two cluster sidecars and the Store Gateway, deduplicating results from an HA Prometheus pair by the replica label
Added to wishlist