Interview Prep/Monitoring & Observability/Prometheus and PromQL at Scale

You run 3 Kubernetes clusters. Compare federation, remote_write and Thanos sidecar for a global view.

AdvancedScenarioPrometheus and PromQL at Scale
Answer

Situation read → You need cross-cluster queries and long retention. Each approach differs in cost, complexity and failure modes.

What I'd do → Compare:

  1. Federation: a global Prometheus scrapes /federate from each cluster. Simple, but only works for a small, selected set of aggregated series. Not for raw data.
  2. remote_write to Mimir/Cortex/Thanos Receive/VictoriaMetrics: central ingestion, global query, long retention, multi-tenancy. Needs a durable central system and network egress.
  3. Thanos Sidecar + Querier: Prometheus stays local, blocks upload to object storage, Querier fans out. No central write path, but you operate Thanos components.
  4. I would pick remote_write to Mimir for 3+ clusters needing HA and multi-tenancy, and sidecar when I want to keep local autonomy.

Why → Federation is a stopgap, while the others are real long-term architectures.

Interview tip → State trade-offs first, then your choice.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus and PromQL at Scale