Thanos is an open source add-on that gives Prometheus high availability, a single deduplicated PromQL query view across many Prometheus servers, and long-term retention in object storage such as S3, GCS or Azure Blob. You keep Prometheus scraping and evaluating as it does today. Thanos adds components that read its data, ship it to a bucket, and answer queries over all of it.
At scale, a single Prometheus becomes several problems at once. Local storage holds 15 days by default and lives on one node. Each cluster runs its own Prometheus with nothing that queries across them. HA pairs produce duplicate series that someone has to reconcile. A Thanos Prometheus setup addresses all three without replacing the scraper or the query language.
On Kubernetes, the setup follows four steps. You store an object storage config in a Secret and enable the Thanos Sidecar in kube-prometheus-stack, with equal min and max block durations, then deploy the Querier, Store Gateway and Compactor against the same bucket and point Grafana at the Querier as a Prometheus data source. The sections below cover what Thanos is, how its components work with Prometheus, HA and deduplication, long-term storage, when to use it, Sidecar versus Receive, the Kubernetes setup, common pitfalls, a comparison with Cortex, Mimir and VictoriaMetrics, related concepts and an FAQ.
What Is Thanos?
Thanos is a CNCF Incubating project. CNCF accepted it on July 14, 2019 and moved it to Incubating on August 19, 2020. The thanos-io/thanos repository is licensed under Apache 2.0, and the latest stable release on the releases page is v0.42.5, published October 27, 2026.
Thanos is self-hosted: you run every component yourself against a bucket you own, extending Prometheus rather than replacing it. Prometheus still scrapes targets and writes its local TSDB; Thanos components read that TSDB, upload its blocks, and serve queries across many Prometheus servers through a shared gRPC interface called the StoreAPI.
Prometheus Limitations That Thanos Solves
Prometheus keeps its data on one node by design. Three limits follow from that, and each maps to a Thanos component.
- Local retention: Prometheus local storage is not clustered or replicated, so it is not durable against drive or node outages. Retention defaults to
15dwhen no time or size retention is set, and longer retention means a bigger local disk on the same single node. - No global query: Prometheus offers federation, where a global server scrapes aggregated series from local servers through
/federate. That gives you a configured, aggregated view. It does not let you run an arbitrary PromQL query over raw data from every instance. On the remote read path, Prometheus loads raw series into the querying server and evaluates PromQL there, which the Prometheus docs describe as a scalability limit. - Single point of failure: Running two Prometheus servers against the same targets gives you redundancy, but it also gives you two copies of every series. Something has to merge them at query time.
Thanos answers these limits with object storage for durability, the Querier for a global view, and replica-label deduplication for HA pairs.
How Thanos Works With Prometheus
Data enters Thanos one of two ways: the Thanos Sidecar uploads completed Prometheus blocks, or Prometheus sends samples with remote_write to Thanos Receive.
The Sidecar runs beside each Prometheus and uploads its completed 2-hour TSDB blocks to object storage. Receive writes its own TSDB blocks and uploads them. On the read side, the Thanos Querier fans each PromQL query out over the StoreAPI to every source that holds matching data, then merges and deduplicates the results.
Every component that serves data speaks the same StoreAPI. That shared interface is why you can add a Sidecar, a Store Gateway or a Receiver and have the Querier pick it up as one more data source.
Thanos Sidecar
The Thanos Sidecar runs next to a Prometheus instance and implements the StoreAPI on top of Prometheus’ remote-read API. A Querier can treat that Prometheus as a time series source without calling Prometheus APIs directly.
Optionally, the Sidecar uploads TSDB blocks to a bucket as Prometheus produces them every 2 hours. Uploaded blocks let you run Prometheus with low local retention while historical data stays durable and queryable. Keep local retention at no less than three times the min block duration, which works out to 6 hours with the default. That buffer holds data locally if the bucket is unreachable, and the Sidecar uploads the backlog when connectivity returns.
Upload mode has three hard requirements:
- Equal block durations: Set
--storage.tsdb.min-block-duration=2hand--storage.tsdb.max-block-duration=2hon Prometheus. Equal values disable Prometheus’ local compaction, which prevents corruption of uploaded data when the Thanos Compactor works on the bucket. Theprometheus_tsdb_compactions_totalmetric can still increase after you set them, because Prometheus writes the initial head block through its compaction path without modifying it afterward. - Unique external labels: Every Prometheus needs
external_labelsthat are unique across the Thanos system. The Sidecar labels each block with them before upload, and the Compactor and Store Gateway group blocks by those labels. - Persistent disk: The Sidecar does not make Prometheus stateless. If Prometheus crashes and restarts without a persistent volume, up to about 2 hours of metrics can be lost.
If you are migrating an existing Prometheus with years of compacted blocks, --shipper.upload-compacted uploads those older blocks once. It works only with local compaction disabled, and you turn it off after the backfill.
Thanos Querier and the StoreAPI
The Thanos Querier is the single PromQL endpoint you point Grafana at. It sends each query to the Sidecars, Store Gateways, Receivers and Rulers that expose the StoreAPI, and it uses their external labels to skip stores that cannot hold matching series.
Deduplication happens here. --query.replica-label names the label that distinguishes replicas, and series that differ only in that label merge into one. You can pass the flag multiple times or as a comma-separated list. Per query, the dedup=false parameter turns deduplication off and replicaLabels overrides the flag.
Thanos Store Gateway
The Store Gateway implements the StoreAPI over historical blocks in the bucket. It does not download whole blocks. At startup it builds an index-header for each block by downloading specific pieces of the block’s index, stores that header on local disk, and memory-maps it. The index records each chunk’s min and max timestamps, so the Store Gateway drops chunks outside the queried range without fetching them.
Three caches reduce object storage reads:
- Index cache: Stores postings and series lookups. Backends are
in-memory(the default, sized by--index-cache-size, default 250MB),memcachedandredis. - Caching bucket: Caches chunk subranges and metadata through
--store.caching-bucket.config, with memcached, in-memory and redis backends. - On-disk index-headers: The local data directory holds index-headers and meta.json files. Deleting it loses no data, but the Store Gateway rebuilds the cache on restart.
Thanos Compactor
The Compactor applies Prometheus TSDB compaction to blocks in object storage, merging small blocks into larger ones. It also downsamples and enforces retention, and it is the only component allowed to delete data from the bucket.
Downsampling runs in two passes. Raw blocks older than 40 hours get a 5m resolution copy, and 5m blocks older than 10 days get a 1h resolution copy. Retention is set per resolution with --retention.resolution-raw, --retention.resolution-5m and --retention.resolution-1h. Each defaults to 0d, which keeps that resolution forever. Retention runs right after the compaction and downsampling loops, so a failing Compactor never deletes anything.
Run exactly one Compactor per stream of blocks in a bucket, because not all object storage providers offer a safe locking mechanism and two Compactors on the same stream can produce overlapping blocks that you must resolve by hand; you can scale compaction by running separate Compactors for separate block streams. Give the Compactor local disk for intermediate work (about 100GB is the general recommendation) and CPU cores equal to --compact.concurrency. By default it runs to completion, which suits a CronJob, and --wait keeps it running as a long-lived process.
Thanos Receive and Thanos Ruler
Thanos Receive implements the Prometheus Remote Write API. Prometheus pushes samples to /api/v1/receive on port 10908, Receive appends them to a per-tenant TSDB, serves them in real time over the StoreAPI, and uploads TSDB blocks to the bucket every 2 hours by default.
A hashring decides which Receive instance ingests which series. You define it in a JSON file passed with --receive.hashrings-file, and Receive watches the file for changes. The ketama algorithm, set with --receive.hashrings-algorithm, is the recommended choice for new installations because it keeps placement stable as you add receivers. --receive.replication-factor (default 1) sets how many copies of each write are stored. The original design returns an error if a series is not written to at least (REPLICATION_FACTOR + 1)/2 nodes.
Thanos Ruler evaluates recording and alerting rules against a query API you set with --query, typically the Querier, so rules can span every Prometheus in the system. It writes results as TSDB blocks, exposes them over the StoreAPI, uploads them to the bucket, and sends alerts to Alertmanager. Ruler output is queryable only after you register the Ruler as a store in the Querier.
High Availability With Prometheus HA Pairs and Replica-Label Deduplication
Thanos HA starts with two identical Prometheus servers scraping the same targets. Their external labels match except for one replica label, for example replica="a" and replica="b".
You start the Querier with --query.replica-label=replica, and the Querier collapses each pair of series into one. If one replica misses scrapes during a restart, the Querier fills the gap from the other.
Two deduplication algorithms are selectable with --deduplication.func:
- penalty (default): Reads one replica and switches to the other only after a penalty window, which avoids flapping between replicas over small timing differences. Maintainers describe the penalty as twice the observed sample interval. Set PromQL lookback delta to at least two times your slowest scrape interval. The default lookback is 5m.
- chain: Performs 1:1 deduplication and merges every available sample from all replicas without a penalty. It requires at least one replica label and fits Receive deployments, where penalty deduplication can leave gaps even when another replica has the data.
In one report, issue #9034, penalty deduplication produced a false rate() value at query-frontend split boundaries, and switching all Query tiers to --deduplication.func=chain removed it. Treat that as one installation’s result and test both algorithms against your own dashboards.
Tracing One PromQL Query Through Thanos
Take a Grafana panel that runs rate(http_requests_total[5m]) over the last 30 days, against two clusters that each run an HA pair with Sidecars uploading to one bucket. Local Prometheus retention is 24 hours.
- Grafana sends the query to the Querier.
- The Querier asks each StoreAPI endpoint for series matching
http_requests_totalin the 30-day range. Each Sidecar answers for its last 24 hours through Prometheus remote read. The Store Gateway answers for everything older, reading index-headers to find the matching series and fetching only the chunks inside the range. - For the most recent hours, the Querier receives four copies of each series: two clusters, two replicas each. Cluster labels differ, so cross-cluster series stay separate. Within each cluster, the series differ only in
replica, so the Querier merges each pair into one. - Data older than the Sidecars’ window comes from uploaded blocks. Both replicas uploaded their own blocks with their own replica labels, so the Store Gateway returns both copies and the Querier deduplicates them the same way.
- The Querier evaluates
rate()over the merged series and returns one result per cluster.
If one replica restarted during the window, its gap disappears in step 3, because the penalty algorithm reads from the surviving replica.
Long-Term Storage in Object Storage: Compaction and Downsampling
Thanos stores every block in object storage through the thanos-io/objstore library. Its provider table lists these backends:
Every provider uses the same YAML shape, with a type and a provider-specific config block. For S3, bucket, endpoint, access_key and secret_key are the minimum keys:
To use IAM roles instead of static keys, set aws_sdk_auth: true; Thanos then reads credentials through the AWS SDK’s default chain, and only bucket and endpoint are required. The Thanos deployment needs s3:ListBucket, s3:GetObject, s3:DeleteObject and s3:PutObject on the bucket. You pass the file with --objstore.config-file or inline with --objstore.config.
Downsampling exists for query speed. A 1-year range query at 1h resolution reads far fewer samples than the raw data. It does not shrink the bucket. Each downsampled level adds blocks close to the size of the raw blocks, and the Thanos docs put the increase at about 3x if you keep all three resolutions. Retention flags control that cost: data at a resolution is deleted only after a block’s max time falls entirely outside the retention window.
Sizing Object Storage and a Sample Retention Plan
Raw storage follows the Prometheus capacity formula: retention_time_seconds × ingested_samples_per_second × bytes_per_sample. Prometheus stores an average of 1-2 bytes per sample after compression, and the exact figure depends on your series and their churn. Reducing the number of series saves more space than lengthening the scrape interval, because compression works within each series.
A worked example at 100,000 samples per second and 1.5 bytes per sample:
- Raw per day: 100,000 × 1.5 × 86,400 ≈ 13 GB.
- Raw for 30 days: about 390 GB.
- Downsampled levels: each adds up to roughly the raw size for the period it covers, so keeping all three resolutions over the same window approaches 3x the raw figure.
A retention plan that keeps raw data for debugging and coarse data for trends:
Two constraints shape that plan. Raw retention must stay above 40 hours when downsampling is on, and the Compactor refuses to start otherwise. Every level’s retention should exceed 10 days so the 1h pass completes before 5m data is deleted. The trade-off is zoom: once raw data ages out, you cannot drill into 15-second detail for that period. Thanos itself recommends the same retention for raw and downsampled data, so shorter raw retention is a deliberate choice to give up detail.
Turn the byte totals into a bill with your provider’s billing model. Storage class, region, redundancy and request counts all change the charge, and the Store Gateway’s read requests add to it.
When to Use Thanos With Prometheus
Thanos earns its operating cost when you hit one of these conditions:
- Multi-cluster queries: You run Prometheus in several clusters and need PromQL across all of them from one endpoint, without federation rules that pre-aggregate the data.
- Retention beyond local disk: You need months or years of history, and growing a single node’s disk is no longer acceptable for durability or cost.
- HA without duplicate dashboards: You run Prometheus pairs and want one deduplicated series per target, with gaps from one replica filled by the other.
A single Prometheus is enough when you have one cluster, 15 to 30 days of history covers your needs, and a few minutes of missing data during a Prometheus restart is tolerable. Prometheus can retain years of data locally with proper architecture, as long as you treat it like any other single-node database and back it up with snapshots.
Sidecar vs. Receive: Choosing a Thanos Deployment Pattern
Pick the Sidecar when the Querier can reach every Prometheus. Pick Receive when Prometheus can only push outward.
The Thanos maintainers’ Life of a Sample post calls Sidecar mode generally preferable because of its simpler configuration and fewer moving parts, and describes Receive as the alternative that needs careful configuration for HA, scalability and durability.
The two patterns differ on these points:
The Sidecar Pattern
The Sidecar fits clusters the central Querier can reach over gRPC. Prometheus barely changes: you add a container, set equal block durations and define external labels. Recent data stays queryable through the Sidecar, so object storage only needs to hold completed blocks.
The cost is upload delay. Data reaches the bucket only after Prometheus completes a 2-hour block, so anything older than local retention depends on uploads that have succeeded. If Prometheus loses its disk before an upload, those hours are gone. And every Prometheus becomes a StoreAPI endpoint the Querier calls on each query, which gets harder as you add widely distributed clusters.
The Receive Pattern With remote_write
Receive fits air-gapped or egress-only environments, edge clusters and setups where many teams send metrics into a shared, tenant-aware backend. Prometheus sends remote_write to Receive, and the tenant comes from the THANOS-TENANT header (configurable with --receive.tenant-header) or a TLS client certificate field.
Receive adds a stateful tier you own. The ingesting receivers hold per-tenant TSDBs on disk, hashring changes trigger expensive reconfiguration, and replication stores multiple copies of each write. You can split the tier: a receiver with a hashring and no --receive.local-endpoint runs in RoutingOnly mode and stores nothing, which keeps routing stateless while ingestors hold data. On Kubernetes, the Thanos Receive Controller keeps the hashring in step with the StatefulSet. With ketama, a hashring with fewer endpoints than the replication factor fails, so size the ring above your replication factor from the start.
Adding Thanos to kube-prometheus-stack on Kubernetes
These steps enable the Sidecar in kube-prometheus-stack, then add the Querier, Store Gateway and Compactor against the same bucket. The chart is published as an OCI artifact at oci://ghcr.io/prometheus-community/charts/kube-prometheus-stack. As of November 2026, the GitHub releases page marks 93.4.0 as latest (released November 17, 2026), while the main-branch Chart.yaml lists chart 93.9.0 with appVersion v0.95.2 (the Prometheus Operator version). Pin the chart version you have tested.
- Create the object storage Secret. Save the S3 YAML from the previous section as
objstore.yml, then create a Secret from it. This command stores the file under the keyobjstore.ymlin themonitoringnamespace:
- Enable the Sidecar in Helm values. Under
prometheus.prometheusSpec.thanos.objectStorageConfig, the chart expects eitherexistingSecretorsecret. ThethanosServicevalue exposes the Sidecar’s StoreAPI as a Service:
These key names come from the chart’s UPGRADE.md and published configurations. Check them against the values.yaml of the chart version you pin before you roll out.
- Install or upgrade with a pinned version. This command applies the values above to the release:
Then confirm that the Prometheus pod runs with equal --storage.tsdb.min-block-duration and --storage.tsdb.max-block-duration. The Sidecar checks these flags at startup and logs an error when they differ.
- Deploy the Querier, Store Gateway and Compactor. kube-prometheus-stack deploys only the Sidecar. For the rest you have three maintained options.
The all-in-one thanos chart from thanos-community/helm-charts deploys Query, Receive, Store Gateway, Compactor, Ruler and BucketWeb.
The jsonnet manifests in kube-thanos track upstream Thanos major and minor versions. Alternatively, thanos-community/thanos-operator provides alpha APIs.
Whichever you pick, the core arguments look like this. The Querier names the replica label it deduplicates on:
Register the Sidecar Service, the Store Gateway and any Ruler as StoreAPI endpoints on that Querier. The Store Gateway serves blocks from the bucket and sizes its in-memory index cache:
The Compactor runs continuously with per-resolution retention, as one replica only:
- Add the Querier as a Grafana data source. Create a Prometheus-type data source whose URL is the Querier’s HTTP Service, for example
http://thanos-query.monitoring.svc:<http-port>. Existing PromQL dashboards work unchanged. - Verify. After the first 2-hour block completes, list the bucket. This command lists the blocks the Sidecar has uploaded:
Then run the same query in Grafana with and without dedup=false on the Querier. With deduplication on, each HA pair shows as one series.
On the Bitnami Thanos chart: since August 28, 2025, Bitnami has not published new container images or Helm charts to Docker Hub, and older images moved to docker.io/bitnamilegacy, which receives no updates under the Bitnami catalog changes. If you already run the Bitnami chart, point it at the official Thanos images. For new installs, the options in step 4 avoid the dependency.
Common Thanos Issues and Pitfalls
Most Thanos failures trace back to object storage access, external labels or the single-Compactor rule.
Sidecar Upload Errors
Misconception: “The Sidecar is running, so blocks are reaching the bucket.” A running Sidecar can still log uploaded=0. Check uploads directly.
- Access Denied: Errors such as
check exists: stat s3 object: Access Denied.have more than one possible source. One documented cause is the signature version: AWS requires signature v4, so setsignature_version2: false. As diagnostic checks, list the bucket from inside the Sidecar container withthanos tools bucket ls, then compare the IAM policy against the four actions listed earlier. Issue reports also show this error when service-account or role authentication failed while static keys worked, as in issue #4559 on v0.22.0. - Malformed objstore config: A startup error like
yaml: unmarshal errors ... field prefix not found in type client.BucketConfigmeans the file contains a key the binary does not recognize. In this example the field isprefix, and its placement relative to theconfigblock is one possible mismatch to check. Read the field named in the error and compare the file against the provider’s YAML schema. - Compaction not disabled: The error
validate Prometheus flags: found that TSDB Max time is 1d12h and Min time is 2h. Compaction needs to be disabledmeans the block durations differ. Set both to2h. In issue #6259, the cause was a missing line-continuation backslash in a systemd unit that dropped the remaining flags, so inspect the rendered process arguments, not just your config file. - Filesystem errors:
hard link block ... operation not permittedpoints at the upload directory under the Prometheus data path. Confirm the Sidecar user can read the TSDB and write thethanos/uploaddirectory on the same filesystem.
Store Gateway Memory Pressure
Store Gateway memory and disk grow with the number of blocks it serves. Local disk averages about 6MB per block, and high-cardinality blocks reach 30MB or more. By default every Store Gateway syncs every block in the bucket, so adding replicas does not split the load.
Three settings reduce memory pressure:
- Lazy index-headers:
--store.enable-index-header-lazy-readermemory-maps an index-header only when a query needs that block and releases it after--store.index-header-lazy-reader-idle-timeout. It defaults to false. - External caches: Move the index cache and caching bucket to memcached or redis so replicas share cached data instead of each holding its own copy in process memory.
- Sharding: Split blocks across Store Gateways with
--min-timeand--max-time(for example--min-time=-6w --max-time=-2w) or with a relabel config that hashes block IDs.
A hash-sharded relabel config for shard 0 of 6, passed with --selector.relabel-config-file:
Run six Store Gateways, each keeping a different shard value. Per-query limits include --store.grpc.series-sample-limit and --store.grpc.touched-series-limit; both default to 0, meaning no limit.
Compactor Halts and Overlapping Blocks
When the Compactor finds two blocks with the same external labels covering overlapping time, it halts by design. It keeps running, does nothing, sets thanos_compact_halted to 1 and logs critical error detected; halting with pre compaction overlap check: overlaps found while gathering blocks. Thanos has no automatic overlap repair. Alert on that metric, because a halted Compactor also stops retention, so the bucket grows without bound.
Documented causes of overlaps:
- Sidecar, Ruler or Receive older than 0.13.0, where transient upload errors could hide blocks from the Compactor
- Several block producers with identical external labels, or none
- More than one Compactor on the same block stream, even briefly
- Manually uploaded blocks
The Thanos Receive documentation adds a separate cause: if you run out-of-order ingestion on Receive, enable --compact.enable-vertical-compaction on the Compactor, because without it the overlapping blocks that out-of-order ingestion produces can halt the Compactor.
Recovery starts by stopping the Compactor. Identify the overlapping block’s producer by searching Sidecar and Ruler logs for its ULID, checking object storage access logs and reading source in the block’s meta.json. Back the block up elsewhere before you remove it.
Then use the bucket tools. This command checks every block for known issues, and overlapped_blocks is verify-only:
Pass --id to check specific blocks. This command marks a block for deletion safely:
Marked blocks are deleted after the delete delay, 48 hours by default. This command deletes them immediately, with the Compactor still stopped:
Restart the Compactor and watch thanos_compact_todo_compactions drain.
Missing or Inconsistent Replica Labels
Misconception: “Deduplication works as long as --query.replica-label is set.” It works only when the replicas’ label sets differ in that one label and nothing else. Each failure has a distinct symptom.
- Doubled series in Grafana: The replica label name on Prometheus does not match the Querier flag, or the replicas differ in a second label. Run the query with
dedup=falseand compare the label sets of the duplicate series. - Sidecar refuses to start: The error
no external labels configured on Prometheus server, uniquely identifying external labels must be configuredmeans Prometheus has noexternal_labels. Add them. - Compactor halts after a new cluster: Two clusters with identical external labels upload overlapping blocks. Give every Prometheus a globally unique label set, such as cluster plus replica.
- Ruler replicas collide: Each Ruler needs external labels marking its origin, or replica blocks clash during compaction.
Thanos vs. Cortex, Grafana Mimir and VictoriaMetrics
The four projects split on where data lands first and what you operate. Thanos and Cortex share Apache 2.0 licensing and CNCF Incubating status. Mimir forked from Cortex under AGPL-3.0. VictoriaMetrics is a separate database with its own storage engine.
The operational trade-offs follow from those rows:
- Thanos: Thanos keeps Prometheus at the center: collection barely changes, but you run more components around it, and its query model pulls from every Sidecar at query time, which an InfoQ presentation notes makes highly distributed environments harder.
- Mimir: In ingest-storage mode, Mimir adds Kafka as a write-path dependency. Multiple ingester zones provide read-path HA; that path suffers an outage when two ingesters owning the same partition are simultaneously unhealthy.
- VictoriaMetrics: Below a million data points per second, VictoriaMetrics recommends its single-node deployment, which is easier to run than the VictoriaMetrics cluster. Its cluster’s replication can raise CPU, RAM, disk and network use by up to N times, and it needs at least
2N-1vmstorage nodes to keep the replication factor with N-1 nodes down.
In a Prezi proof of concept, storage fell by 70%, memory by 60% and CPU time by 30% (InfoQ’s Prezi case study). These figures come from one benchmark workload, so your own numbers will vary with your traffic, telemetry configuration and cluster conditions, and you should validate them against your own workloads. Prezi also hit cross-AZ traffic charges when it spread cluster components across zones (groundcover guide).
Related Concepts for Thanos and Prometheus
Thanos sits on top of a few Prometheus and OpenTelemetry mechanisms:
- remote_write: Prometheus sends samples to a remote endpoint in Remote Write format. The 1.0 protocol is stable, and the Remote-Write 2.0 specification is experimental. It adds metadata, exemplars and native histograms. Receive accepts remote write, and its CHANGELOG records an OTLP endpoint (#7996).
- PromQL: Every Thanos read path speaks PromQL, so dashboards and alert rules move between Prometheus and the Querier unchanged.
- TSDB blocks: Prometheus writes 2-hour blocks with an index and chunk files. Thanos uploads, compacts, downsamples and serves these same blocks, which is why the Store Gateway can read years of data without converting it.
- OpenTelemetry: Prometheus accepts OTLP metrics at
/api/v1/otlp/v1/metricswhen started with--web.enable-otlp-receiver. Resource attributes such asservice.namemap tojobandinstance, and the rest go totarget_info.
The same remote write interface is how groundcover takes Prometheus data. groundcover accepts Prometheus remote write and exposition format and stores metrics in VictoriaMetrics under its BYOC (Bring Your Own Cloud, where your data plane runs in your own cloud account) deployment, queryable with PromQL. Your existing Prometheus servers can keep scraping and forward samples there, while groundcover’s eBPF sensor, a DaemonSet with one pod per node, collects logs, traces and metrics from the kernel without SDKs. If you want to validate that architecture on your own cluster, the free plan includes BYOC and requires no credit card.
FAQs
No. Thanos is an add-on. Prometheus still scrapes targets, evaluates local rules and writes its TSDB. Thanos reads that data through the Sidecar or receives it through remote write, then adds object storage retention, a global query endpoint and deduplication.
Yes. Thanos is Apache 2.0 licensed and you run every component yourself. Your costs are the compute for the components, the object storage bucket and the engineering time to operate them.
Both replicas carry identical external labels except one replica label. The Querier, started with --query.replica-label set to that label, merges series that differ only in it and fills one replica’s gaps from the other. The default penalty algorithm switches replicas only after a penalty window; the chain algorithm merges all samples 1:1.
Use the Sidecar if your Querier can reach every Prometheus. Use Receive if Prometheus can only push outward, or if you need header-based multi-tenancy. Receive adds a stateful ingest tier with a hashring to operate.
Estimate bytes first: samples per second times 1-2 bytes per sample times retention seconds, then add up to roughly 1x per downsampled resolution you keep. 100,000 samples per second is about 13 GB of raw data per day. Apply your provider’s rates for storage class, region and requests to that volume.
Yes, with --downsampling.disable, but long-range queries then scan raw data and run slower. Downsampling exists for query speed, not to save space.
Create an objstore Secret, enable the Sidecar in kube-prometheus-stack through prometheus.prometheusSpec.thanos.objectStorageConfig, deploy the Querier, Store Gateway and one Compactor from the thanos-community chart, kube-thanos or the Thanos operator, and add the Querier as a Prometheus data source in Grafana.
Not on the same block stream. Two Compactors on one stream create overlapping blocks that halt compaction until you fix them by hand. The Compactor does not need HA; if it is down, compaction and retention pause and resume when it restarts.





