Thanos sidecar versus Thanos Receive: how do you choose?
AdvancedProductionScaling Prometheus, Long-Term Storage & HA
Answer
- Sidecar: runs next to each Prometheus, uploads 2-hour TSDB blocks to object storage and serves recent data via the Store API. Prometheus stays the source of truth; good when Querier can reach every cluster.
- Receive: Prometheus (or agents) push via remote_write to a central, replicated Receive ring. Good when clusters are behind NAT, ephemeral, or you want Prometheus in agent mode at the edge.
Receive adds hashring management and replication but centralises ingest; sidecar is simpler but needs network paths to every cluster.
More on Scaling Prometheus, Long-Term Storage & HA
What are the practical limits of a single Prometheus server?IntermediateWhen does hierarchical federation still make sense?IntermediateHow do you shard Prometheus scraping, and what do you lose?AdvancedCompare Thanos, Grafana Mimir and VictoriaMetrics.AdvancedWhat is Prometheus agent mode and when do you use it?IntermediateHow do you tune `remote_write` for high throughput?Advanced