How do you tune `remote_write` for high throughput?
AdvancedProductionScaling Prometheus, Long-Term Storage & HA
Answer
remote_write:
- url: https://mimir.example.com/api/v1/push
queue_config:
capacity: 10000
max_shards: 50
max_samples_per_send: 2000
batch_send_deadline: 5s
write_relabel_configs:
- source_labels: [__name__]
regex: 'go_gc_.*|apiserver_request_slo_.*'
action: drop
Watch prometheus_remote_storage_samples_pending, prometheus_remote_storage_shards and the gap between prometheus_remote_storage_highest_timestamp_in_seconds and queue_highest_sent_timestamp_seconds. Drop unused series before they leave (cost), and enable remote write 2.0 / compression when both sides support it.
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.AdvancedThanos sidecar versus Thanos Receive: how do you choose?AdvancedWhat is Prometheus agent mode and when do you use it?Intermediate