Interview Prep/Monitoring & Observability/Scaling Prometheus, Long-Term Storage & HA

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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Scaling Prometheus, Long-Term Storage & HA