Overview of Thanos Receive
mainThe thanos receive component implements the Prometheus Remote Write API. It acts as a middle layer that receives metrics from Prometheus instances, stores them in a local TSDB, and uploads TSDB blocks to object storage (e.g., S3) every 2 hours by default.
Key features include:
- Horizontal Scalability: Distributes incoming series across multiple Receiver nodes.
- Long-term Storage: Automatically uploads blocks to object storage.
- Multi-tenancy: Supports multiple tenants using labels.
- Exemplars Support: Ingests and stores exemplars via remote-write.
- StoreAPI & ExemplarsAPI: Exposes APIs so Thanos Queriers can query received metrics and exemplars in real-time.
Use Case: Recommended for air-gapped or egress-only environments where Prometheus can only push metrics.
Important: Ensure you set correct external labels to identify data blocks across Thanos clusters.