RousselTMLEARNING

TP · Thanos: from discovery to expertise

Lab: Store Gateway, Compactor and downsampling

What you will learn in this TP
  • Serve the history
  • Configure retention
  • Inspect the bucket
  • Query long periods

History and compaction #

What you will learn in this section
  • Serve the history
  • Configure retention
  • Inspect the bucket
  • Query long periods

Context. Recent data is served by the sidecars, but the history lives in object storage. You add the Store Gateway to read it and the Compactor to compact, downsample and apply retention.

Prerequisites: previous labs  ·  Estimated time: 45 min

Store and Compactor.
  1. 1. Start the Store Gateway

    Why? Without a Store Gateway, the archived blocks exist but nothing can read them: queries cannot go back further than local retention.

    Add it to Query with --endpoint=store:10901.
  2. 2. Start the Compactor

    Why? The compactor reduces the number of blocks and creates lower resolutions so you can keep years of history at low cost; only one instance must write to the bucket.

    Retention: 30 days raw, 6 months at 5 min, 2 years at 1 h. Why only one instance?
  3. 3. Inspect the bucket

    Why? Inspecting the bucket shows the actual blocks (time range, resolution) and helps with diagnosis when a period seems to be missing.

    Display the list of blocks with their resolution.
  4. 4. Query the history

    Why? Automatic downsampling speeds up queries over long periods by reading fewer data points.

    Run a 7-day query with automatic resolution.

Difficulty level : ●●●○○ (3/5)

My progress

  • ⏱ Estimated time : ≈ 45 min

Sign in to track your progress and take notes. Sign in

✉️ Ask a question

Recommended Articles

Thanos Store Gateway et Compactor : historique, downsampling et rétention

Servir l'historique avec le Store Gateway et optimiser le stockage avec le Compactor : compaction...

Understanding the concept of score

The concept of score allows Elasticsearch to rank your documents by relevance during a search.

Understanding the Elastic Common Schema (ECS)

As always in our consulting engagements, we recommend that companies harmonise and standardise: k...

License consumption types

Understand the evolution of billing in Dynatrace: the difference between the old licensing model ...

Grafana Alloy: The importance of Self-Monitoring

Discover why and how to configure Grafana Alloy so that it monitors itself, collecting its own lo...

Grafana Alloy: Understanding and exploiting the User Interface (UI)

Discover how to enable, secure, and use Grafana Alloy's built-in web interface to visualize your ...

Grafana Alloy: Introduction and Architecture

Discover the fundamental concepts of Grafana Alloy, the transition from the static Agent to Alloy...

Grafana Alloy: Syntax and Configuration (Alloy Language: River)

As part of a Grafana training or observability training, master the declarative syntax of Grafana...

Grafana Alloy: Metrics Collection (Prometheus & Ecosystem)

Learn how to configure Grafana Alloy to collect, transform, and forward metrics using the Prometh...