Skip to content
CoRISE

Long-Term Metrics Beyond Prometheus: Thanos Retention, HA and Queries

Separate recent Prometheus collection from long-term S3 retention. Design Thanos HA, permissions, compaction and queries, with configuration examples and checks for expected data.

T. AsanoPublished Updated 26 min read
  • Observability
  • Storage
  • Operations
Open table of contents

Separate Prometheus from the long-term archive

Comparing an incident with one six months ago, reviewing year-over-year capacity and investigating latency before a release all require a longer time axis than a dashboard of the last few days.

Increasing Prometheus disk space and retention is one option. It also concentrates collection, long-term state, compaction, recovery and expensive queries in one local TSDB. Prometheus documents the single-node limits of local storage, time/size retention, compaction headroom and unsupported filesystems including NFS. [1]

With Thanos, Prometheus handles recent collection and evaluation, object storage retains historical blocks, and Query provides a unified read plane. This is a continuously usable archive, not simply a Prometheus backup to S3. It gives a concrete implementation direction for the monitoring-to-observability architecture.

Download the complete example. The HCL, Kubernetes manifests and query-checking scripts are authored designs. OpenTofu, promtool, manifest validation, AWS/Kubernetes apply, query probes and failure exercises were not executed for publication. Expected behavior below is not a performance, availability or RPO measurement.

Code below is excerpted from the bundle. Its README describes prerequisites and the complete resource definitions.

1. Separate the write and read paths

In the Sidecar architecture, Prometheus scrapes into its WAL/head and normally creates two-hour blocks. Sidecar uploads blocks to object storage and exposes recent Prometheus data through Store API. Store Gateway exposes blocks from object storage. [2]

Scroll horizontally to view the complete diagram.

Connect recent and historical data to one query plane Grafana uses Frontend and Query. Query discovers both Sidecars and the Stores. Sidecars upload Prometheus blocks to S3; Stores serve history. Compactor independently manages bucket blocks, outside the synchronous query path.
Fig. 01 — Connect recent and historical data to one query plane
Read the diagram as text

Grafana uses Frontend and Query. Query discovers both Sidecars and the Stores. Sidecars upload Prometheus blocks to S3; Stores serve history. Compactor independently manages bucket blocks, outside the synchronous query path.

Query Frontend splits and caches range queries; Query fans out to Store APIs and evaluates PromQL. Compactor is outside that synchronous read path: it compacts, downsamples and applies retention to bucket blocks. This separates a temporary Compactor outage from evaluation of recent alerts.

The sample baseline is Thanos v0.42.4 and Prometheus v3.14.0, checked against official releases dated July 30 and August 18, 2026. These are selected versions, not an instruction to use “latest.” Resolve actual image digests and pin the execution environment before adoption. This article did not execute these versions together. [3]

2. Treat external labels as data identity

Prometheus A and B independently scrape the same targets. They do not replicate a database, so sample times and gaps can differ. Keep logical monitoring identity common and vary only the replica label.

global:
  scrape_interval: 30s
  evaluation_interval: 30s
  external_labels:
    region: ap-northeast-1
    environment: staging
    cluster: metrics-lab
    monitor: platform
    replica: prometheus-a
rule_files:
  - rules/*.yml
scrape_configs:
  - job_name: example-node
    static_configs:
      # Provision this shared test exporter, or replace with your target discovery.
      - targets: ['demo-metrics.thanos-lab.svc.cluster.local:9100']

B uses replica: prometheus-b. The shared test exporter must be supplied separately; replace it with appropriate target discovery for production. Do not use only ephemeral Pod names or node addresses as long-term producer identity. [4]

Scroll horizontally to view the complete diagram.

Separate logical identity from replica identity A and B independently scrape the same targets and share region, environment, cluster and monitor labels. Only replica differs. Query deduplicates reads; both replicas remain stored. Different systems need distinct logical identity.
Fig. 02 — Separate logical identity from replica identity
Read the diagram as text

A and B independently scrape the same targets and share region, environment, cluster and monitor labels. Only replica differs. Query deduplicates reads; both replicas remain stored. Different systems need distinct logical identity.

Query treats series whose label sets match after removing the configured replica label as HA replicas. Missing environment or cluster identity can merge unrelated systems. Varying additional labels between A and B can prevent deduplication. Decide whether a region label describes logical HA identity or target geography based on what the replicas actually scrape.

External labels are written into block meta.json and participate in compaction grouping and Store selection. Changing them is not merely renaming a dashboard. Labels and tenant headers also do not, by themselves, enforce access control; authenticate and authorize access to the Query plane separately. [4][5]

3. Reserve local retention as an upload buffer

Use these Prometheus arguments:

args:
  - --config.file=/etc/prometheus/prometheus.yml
  - --storage.tsdb.path=/prometheus
  - --storage.tsdb.retention.time=24h
  - --storage.tsdb.retention.size=40GB
  - --storage.tsdb.min-block-duration=2h
  - --storage.tsdb.max-block-duration=2h
  - --web.enable-admin-api

For Sidecar upload combined with Thanos Compactor, equal two-hour minimum/maximum block durations prevent Prometheus from recompacting the local blocks. The initial head-to-block operation still occurs. Migrating existing compacted history requires a separate plan, potentially including --shipper.upload-compacted. [2]

--web.enable-admin-api follows the referenced Sidecar integration guidance; do not expose that administrative API to users. --web.enable-lifecycle is needed for Sidecar reload features, which this example does not configure. The full manifests roll Pods when Kustomize changes ConfigMap names.

Thanos recommends at least three block durations of local retention—six hours for two-hour blocks. This is not a guarantee against every object-store outage. The sample uses 24 hours. [2]

Scroll horizontally to view the complete diagram.

Size the upload buffer from effective retention Samples pass through WAL/head and block creation before upload. Failed uploads wait locally, but time or size retention may remove blocks first. Losing both storage copies exposes all unuploaded data; two hours is not a loss bound.
Fig. 03 — Size the upload buffer from effective retention
Read the diagram as text

Samples pass through WAL/head and block creation before upload. Failed uploads wait locally, but time or size retention may remove blocks first. Losing both storage copies exposes all unuploaded data; two hours is not a loss bound.

Local capacity must cover the head, WAL, blocks and working space. When both time and size retention are configured, whichever threshold triggers first removes blocks. If 40GB triggers first, this sample may retain less than 24 hours. The official 80–85% sizing guideline is not a guarantee against disk exhaustion without measuring head/WAL usage and growth. The example PVC is 50 GiB; its achievable time buffer has not been measured. [1]

Run Sidecar in the same Pod

name: sidecar
image: quay.io/thanos/thanos:v0.42.4
args:
  - sidecar
  - --tsdb.path=/prometheus
  - --prometheus.url=http://127.0.0.1:9090
  - --objstore.config-file=/etc/thanos/objstore.yml
  - --http-address=0.0.0.0:10902
  - --grpc-address=0.0.0.0:10901
  - --store.limits.request-series=100000
  - --store.limits.request-samples=5000000
volumeMounts:
  - name: data
    mountPath: /prometheus
  - name: objectstore
    mountPath: /etc/thanos

Prometheus and Sidecar share a TSDB volume. A and B have separate PVCs, and required anti-affinity separates their nodes. Pods can remain Pending with fewer than two eligible nodes; removing placement constraints does not establish HA. Shared zones, storage systems, networks and scrape targets remain failure dependencies.

Sidecar does not synchronously replicate every scraped sample to object storage. Losing both Prometheus storage copies can lose unuploaded head/WAL/blocks. That exposure includes block-close time, upload failures and backlog; it is not always bounded by about two hours. Distinguish stopping Pods from losing their PVC data.

4. Separate object-storage permissions by workload

Use the SDK credential chain rather than long-lived keys in object-store YAML.

type: S3
config:
  bucket: REPLACE_METRICS_BUCKET
  region: ap-northeast-1
  endpoint: s3.ap-northeast-1.amazonaws.com
  aws_sdk_auth: true

The OpenTofu example defines a dedicated bucket, public access block, enforced bucket ownership, SSE-S3 and a TLS policy. It selects AWS provider 6.60.0; generate and review the real .terraform.lock.hcl through initialization. The EKS OIDC provider is an existing prerequisite. [6]

resource "aws_s3_bucket" "metrics" {
  bucket        = var.bucket_name
  force_destroy = false
  lifecycle {
    prevent_destroy = true
  }
}
resource "aws_s3_bucket_public_access_block" "metrics" {
  bucket                  = aws_s3_bucket.metrics.id
  block_public_acls       = true
  ignore_public_acls      = true
  block_public_policy     = true
  restrict_public_buckets = true
}
resource "aws_s3_bucket_ownership_controls" "metrics" {
  bucket = aws_s3_bucket.metrics.id
  rule { object_ownership = "BucketOwnerEnforced" }
}
resource "aws_s3_bucket_server_side_encryption_configuration" "metrics" {
  bucket = aws_s3_bucket.metrics.id
  rule {
    apply_server_side_encryption_by_default { sse_algorithm = "AES256" }
  }
}

Object actions are divided by component:

locals {
  actors = {
    sidecar = ["s3:GetObject", "s3:PutObject"]
    store   = ["s3:GetObject"]
    compact = ["s3:GetObject", "s3:PutObject", "s3:DeleteObject"]
  }
}

The full source attaches bucket ListBucket and these object actions to each role. IRSA trust constrains the subject to system:serviceaccount:thanos-lab:thanos-<component>. Store reads, Sidecar uploads and Compactor owns deletion. Inspect actual SDK calls, failed multipart uploads and partial-upload cleanup during integration rather than giving every component broad deletion authority.

Prometheus and Sidecar share the Pod’s ServiceAccount. This is not credential isolation between the two processes. Review node-role/metadata access and who may modify ServiceAccounts as additional authority paths.

Do not blindly add Object Lock to the live metrics bucket

Compactor rewrites block sets and removes old blocks. WORM retention on the same live bucket can prevent cleanup and retention from working. Per-object S3 lifecycle expiration can also remove part of a block composed of metadata, index and chunks. [4][7]

This example does not enable Object Lock, lifecycle expiration or archive-class transitions. With bucket versioning, hidden older object versions can continue to incur cost, so Compactor retention need not equal physical storage retention. Treat a separate recovery copy through Object Lock recovery design rather than assuming that the live query bucket is an immutable backup.

5. Connect Store Gateway and Query

Store Gateway uses these arguments:

args:
  - store
  - --data-dir=/var/thanos
  - --objstore.config-file=/etc/thanos/objstore.yml
  - --http-address=0.0.0.0:10902
  - --grpc-address=0.0.0.0:10901
  - --index-cache-size=256MB
  - --ignore-deletion-marks-delay=24h
  - --store.limits.request-series=100000
  - --store.limits.request-samples=5000000

Local state includes index headers and can be rebuilt from object storage. Rebuilding still needs startup time, memory, disk and object requests. Each sample Pod uses emptyDir, so recreation causes a cold start; disposable local state does not mean instantaneous recovery. [8]

Use /-/ready for readiness rather than assuming that a responding metrics endpoint is ready for queries. Readiness still does not establish that all expected blocks or time ranges exist.

readinessProbe:
  httpGet:
    path: /-/ready
    port: http
  periodSeconds: 10
  failureThreshold: 6

Query discovers both Prometheus and both Store replicas individually through headless Services. The example uses the endpoint configuration file present in v0.42.4; the same baseline marks the older --endpoint flag deprecated. [5]

# Resolve every Sidecar and Store replica; do not hide HA scrapers behind one VIP.
endpoints:
  - address: dnssrv+_grpc._tcp.prometheus.thanos-lab.svc.cluster.local
  - address: dnssrv+_grpc._tcp.thanos-store.thanos-lab.svc.cluster.local
args:
  - query
  - --http-address=0.0.0.0:9090
  - --endpoint.sd-config-file=/etc/query/endpoints.yml
  - --query.replica-label=replica
  - --deduplication.func=penalty
  - --query.auto-downsampling
  - --no-query.partial-response
  - --query.timeout=2m
  - --query.max-concurrent=8
  - --store.response-timeout=30s

Hiding the two Prometheus replicas behind one load-balanced Store endpoint prevents Query from intentionally reading both for HA deduplication. This example also fans out to all Store replicas, which can duplicate reads against the same bucket. Distinguish load balancing among Stores with equivalent coverage from fan-out across disjoint shards. Adopt Store grouping or sharding only after checking coverage and failure-time reconnection.

Query deduplication does not halve stored data

--query.replica-label=replica presents A/B as one logical series. The penalty algorithm avoids switching replicas too readily for small timing differences. Independent scrapers do not have identical samples, and arbitrary gaps are not guaranteed to be recoverable. [5]

Query-time deduplication leaves both replicas’ blocks in the bucket. The sample does not enable Compactor’s offline deduplication. Separate a read-time merge from an irreversible change to stored series. [7]

6. Operate Compactor as one writer

Compactor cannot be scaled like Query or Frontend. Compactors working on the same block stream are generally required to be a singleton. [7]

replicas: 1
strategy:
  type: Recreate
template:
  spec:
    containers:
      - name: compact
        image: quay.io/thanos/thanos:v0.42.4
        args:
          - compact
          - --objstore.config-file=/etc/thanos/objstore.yml
          - --data-dir=/var/thanos
          - --wait
          - --http-address=0.0.0.0:10902
          - --retention.resolution-raw=365d
          - --retention.resolution-5m=365d
          - --retention.resolution-1h=365d
          - --delete-delay=48h

replicas: 1 alone can still allow old and new Pods to overlap during a Deployment rolling update. This example uses Recreate. That is not a distributed lock or fencing mechanism: a forced deletion during a node partition must not launch a second writer while the first may still be active. Sharded compactors need demonstrably disjoint ownership.

Compactor scratch space is rebuildable but must accommodate maximum block size, concurrency and simultaneous download/upload work. The sample’s 100 GiB scratch and resource limits are illustrative, not measured capacity.

A running Compactor can be halted

On certain data failures, Compactor remains running but halts its work. Observe thanos_compact_halted = 1; do not equate Running/Ready with progress. Upload can continue while compaction, downsampling and retention fall behind. [7]

thanos_compact_halted == 1

A recent successful-upload timestamp is also insufficient: it might refer to an old backlog block. Inspect block time coverage and missing intervals per producer, the oldest unuploaded data and the latest confirmed coverage.

7. Design retention, downsampling and deletion delay together

Thanos does not expire object-store data by default. Set Compactor retention separately for raw, 5m and 1h resolution when an expiration policy is required. This example uses 365 days for each. [7]

ResolutionExample retentionIntended use
Raw365dDetailed investigation of a short historical interval
5m365dMedium- and long-range queries
1h365dYear-scale overviews

This setting does not guarantee that a full year of data exists. A block must completely fall outside retention; Compactor processing, deletion marks and delays affect physical removal. Retention can stall when compaction/downsampling loops fail. [7]

Scroll horizontally to view the complete diagram.

Separate additional resolutions from block deletion Compactor creates 5m representations of raw data older than 40h and 1h representations of 5m data older than 10d. All three retain 365d in this example. Marked blocks are ignored by Stores after 24h and physically removed by Compactor after at least 48h, subject to progress and synchronization.
Fig. 04 — Separate additional resolutions from block deletion
Read the diagram as text

Compactor creates 5m representations of raw data older than 40h and 1h representations of 5m data older than 10d. All three retain 365d in this example. Marked blocks are ignored by Stores after 24h and physically removed by Compactor after at least 48h, subject to progress and synchronization.

The pinned documentation describes producing 5m data from raw data older than 40 hours, then 1h data from 5m data older than ten days. Eligibility does not mean processing has finished. Too-short retention can delete a preceding resolution before the next is generated, so allow processing backlog as well. [7]

Downsampling adds aggregate representations for efficient long-range querying rather than automatically replacing raw data to save space. Retaining all resolutions increases storage. The documentation describes roughly three times the storage, not a hard upper bound or a measurement of this sample. Account separately for retaining both HA replicas.

Keeping raw for 30 days and 1h data for three years is possible, but a detailed raw investigation two years later becomes impossible. Downsampling also does not mean “one hourly value preserves arbitrary PromQL exactly.” Compare expected results for counters, gauges, histograms and the functions you use. [7]

Compactor’s --delete-delay=48h and Store’s --ignore-deletion-marks-delay=24h coordinate removal. Include Store synchronization and in-flight query duration when changing them. Shortening deletion delay is not simply a quick storage-cost optimization. [7][8]

8. Control long-range work through Query Frontend

--query.auto-downsampling selects an available resolution based on query characteristics such as step. The sample checks explicitly request raw with max_source_resolution=0, separating data validation from overview optimization. A setting cannot reconstruct raw history that was deleted. [5]

The Frontend configuration is:

args:
  - query-frontend
  - --http-address=0.0.0.0:9090
  - --query-frontend.downstream-url=http://thanos-query:9090
  - --query-range.split-interval=24h
  - --query-range.max-retries-per-request=3
  - --query-range.response-cache-config-file=/etc/cache/frontend-cache.yml
  - --query-range.response-cache-max-freshness=1h
  - --no-query-range.partial-response
type: IN-MEMORY
config:
  max_size: 128MB
  validity: 5m

Splitting reduces work per request, not total work. Panel count, parallelism and retries can multiply load on Query, Store and S3. Combine timeout, concurrency, range and series/sample limits, then measure representative workloads. Store’s sample limit is internally approximated using chunks; it is not an exact memory ceiling. [5][8][9]

This result cache is per Frontend Pod, not shared. Moving to Memcached or Redis adds decisions about availability, eviction, connections and tenant isolation. Store index cache and query-result cache are different layers.

Historical results can change. Late uploads, backfill, repair and retention can populate or remove old intervals. The example’s one-hour freshness exclusion and five-minute TTL are not completeness guarantees. The selected baseline excludes results with partial responses/warnings, Store matchers or disabled deduplication from caching. [9]

9. Distinguish query availability from completeness

Returning warnings with HTTP 200 when a Store fails can help an interactive dashboard. A monthly SLO or reporting job may need to reject such results. The sample disables partial responses by default in both Query and Frontend. [5][9]

partial_response=false still does not establish complete data. A never-discovered Store, unuploaded blocks, wrong labels or an empty interval can produce successful but incomplete results. Maintain expected endpoint and data inventories outside that response. A request parameter that overrides a default is also distinct from enforcing a reporting policy.

Evaluating ordinary alerts and recording rules from local Prometheus data reduces dependency on S3 and historical reads. When connecting both HA evaluators to a shared Alertmanager, remove the replica difference from outgoing alert labels. The sample does not provision Alertmanager or notification delivery. Recording rules store PromQL results as new series; they are not the same mechanism as downsampling.

10. Check expected data, not merely HTTP 200

The complete sample includes a canary recorded as 1 every 30 seconds by both Prometheus replicas.

groups:
  - name: archive-canary
    interval: 30s
    rules:
      - record: thanos_lab_canary
        expr: vector(1)

This checks the recording-rule → local TSDB → upload → Store → Query path. It does not prove target reachability; inspect up and real target metrics separately.

First reconcile Query’s Store inventory with expected endpoints. Read the canary as two replicas with dedup=false and one logical series with dedup=true. The script checks API status, warning/info annotations, replica names, series counts and values.

python3 scripts/check-query.py ha \
  --url http://127.0.0.1:19090 \
  --evidence evidence/ha-unique.json

Reject empty historical success

Choose a period when the canary actually existed. Requesting last month’s data immediately after creating a lab does not create history. The sample requires an interval more than 26 hours old, beyond the configured 24-hour local retention, and exact observed Store Gateway addresses supplied as storeMatch[].

python3 scripts/check-query.py history \
  --url http://127.0.0.1:19090 \
  --start "$START_UNIX" --end "$END_UNIX" \
  --store-address "$OBSERVED_STORE_ADDRESS" \
  --evidence evidence/history-unique.json

The central result check is:

def validate_matrix(body, start, end, step):
    validate_response(body)
    data = body["data"]
    require(data["resultType"] == "matrix", "Expected a range-query matrix")
    series = data["result"]
    require(len(series) == 1, "Expected exactly one logical canary series")
    require("replica" not in series[0]["metric"], "Replica label survived deduplication")
    values = series[0]["values"]
    expected = list(range(start, end + 1, step))
    require(len(values) == len(expected), "Missing canary evaluation points")
    for (timestamp, value), wanted in zip(values, expected):
        require(float(timestamp) == wanted and math.isclose(float(value), 1.0),
                "Canary timestamp/value mismatch")

Checking expected timestamps and canary values distinguishes an empty success from expected historical data. PromQL lookback can still bridge short raw-sample gaps; this evaluation-grid check is not proof of every original sample.

A direct Query check does not exercise Grafana or Frontend; inspect those routes separately. Store caches can satisfy reads, so an exercise intended to verify actual S3 access may need an isolated cold-cache, Store-only Query path. Store matching narrows this sample’s scope, but does not establish completeness of the entire archive.

11. Describe what survives each component failure

FailurePath that may continueConditions to verify
Prometheus A stopsB’s recent dataB still scrapes/evaluates and shared targets/network remain healthy
Both Prometheus Pods stopUploaded historical blocksStores have synchronized; distinguish Pod outage from loss of both PVCs
Store Gateways stopSidecar local dataNot every query is unaffected; range, discovery and partial settings matter
Object storage failsLocally available raw dataUpload and uncached historical reads fail; restore before the effective buffer expires
Compactor stops/haltsUpload and existing readsObserve growing backlog, delayed retention/downsampling and read cost
Frontend failsAnother replica or an authorized direct-Query pathPreserve authentication, rate controls and the approved runbook

Exercise one failure at a time in staging with baseline data and endpoint inventory. After restoration, verify upload/compaction convergence and expected historical coverage rather than only Running status. The bundle does not contain an unconditional automated shutdown script.

Query, Frontend and Store replicas still share some node/zone/service dependencies. Compactor availability is safe restart of one writer, not simply running two writers. Object-store durability is also separate from protection against deletion, lost access and query failure.

12. Monitor the platform’s actual functions

The Prometheus configuration discovers each Thanos metrics replica through headless Services and includes halt/scrape-failure alert examples. up == 0 cannot detect a target that vanished from discovery altogether. Add expected replica inventory, data coverage, upload lag, downsampling and retention progress. [7][10]

AreaEvidence to observe
Recent metricsScrape/rule evaluation, one-sided HA gaps and local disk headroom
UploadBlock coverage by producer, oldest unuploaded interval, failures and credentials
Historical readsKnown canary values/counts/annotations, cold start and latency
CompactorHalt, loop progress, backlog, scratch capacity and retention/downsampling progress
Query loadRange, cardinality, concurrency, retries, limit failures and cache misses
Independent monitoringAn external probe and notification path that survives this platform’s failure

Before adopting objectives such as upload delay below four hours or backlog below a day, specify the clock/coverage being measured, how long a violation persists and who responds. These are not measured SLOs from this article. Monitoring the observability platform itself discusses that boundary.

Bucket inspection is useful but does not replace query coverage checks. [11]

thanos tools bucket verify \
  --objstore.config-file=config/objstore.yml

Use reader authority for this inspection example. It does not include --repair. Repair is a separate maintenance operation requiring backup, reviewed block scope, stopped/fenced writers and a recovery plan.

13. Keep configuration reviewable

The bundle contains OpenTofu, Prometheus configuration/rules, Kustomize, full Kubernetes objects and query checks. After generating and reviewing the actual provider lockfile, static CI can run:

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
test -f tofu/.terraform.lock.hcl
tofu -chdir=tofu init -backend=false -lockfile=readonly
tofu -chdir=tofu fmt -check
tofu -chdir=tofu validate
promtool check config prometheus/prometheus-a.yml
promtool check config prometheus/prometheus-b.yml
promtool check rules prometheus/rules/*.yml
kubectl kustomize . > rendered.yaml
# Run your pinned Kubernetes schema validator against rendered.yaml separately.

Kustomize rendering is not schema validation or deployment success. Separately check a pinned Kubernetes schema, server/API compatibility, workload identity, CNI and storage classes. Keep apply and fault injection out of ordinary PR checks.

Long-term storage does not solve high cardinality. Labels such as user_id and request_id affect head memory, block indexes, Store, Query and caches. Review instrumentation and label design before extending retention.

Make the past usable, not merely retained

If approximately 30 days of local data suffice and global queries or HA deduplication are unnecessary, remaining with Prometheus can be the better design. Additional components, permissions, caches and procedures need a concrete justification.

Decide what you must investigate a year later, at what resolution, with which acceptable gaps and latency. Derive retention, buffering and the query plane from those requirements. Retaining a year’s worth of objects is different from investigating last year’s incident at the required detail.

The observability platform modernization case provides attributed design context. It does not establish that these exact versions, 365-day settings, replica counts, canary exercises or SLOs were implemented or measured in that engagement.

Keep Prometheus focused on recent collection and evaluation, and use Thanos to make historical data accessible. Operate that separation through explicit authority, failure paths, retention semantics and expected-data checks.

Managing Kubernetes updates with Nix connects this observability foundation to upgrade verification. It separates host generations, etcd, application data and PKI recovery while examining version skew and rollout order.

References

  1. Prometheus Storage — Local TSDB, retention, disk capacity and filesystems.
  2. Thanos Sidecar — Two-hour blocks, local buffering, admin API and upload.
  3. Thanos v0.42.4 — Release baseline; see also Prometheus v3.14.0.
  4. Thanos Object Storage — External labels, S3, credentials and component permissions.
  5. Thanos Query — Deduplication, partial responses and resolution; see also endpoint configuration source.
  6. AWS Provider v6.60.0 — Provider baseline; see also OpenTofu Dependency Lock File and Thanos S3 authentication.
  7. Thanos Compactor — Singleton operation, halt, retention, downsampling and deletion delay.
  8. Thanos Store Gateway — Caches, readiness, deletion marks and request limits.
  9. Thanos Query Frontend — Splitting, retries, caches and freshness.
  10. Thanos Compactor Backlog — Investigating backlog and processing capacity.
  11. Thanos Bucket Tools — Bucket inspection and the separate repair operation.

Thanos behavior is referenced to the v0.42.4 tagged documentation and relevant source. Code, diagrams, capacities, durations and limits are design examples, not execution results from a deployed environment.

T. Asano

More articles by T. Asano

Contact

Tell us about your engineering challenge.

Talk with CoRISE about the design, implementation and operation of your systems.

Start a Conversation