Interview Prep/Monitoring & Observability/Long-Term Storage, Scale and Cost

Edge clusters in retail stores have unreliable internet. How do you collect their metrics centrally?

IntermediateScenarioLong-Term Storage, Scale and Cost
Answer

Situation read → You need local buffering and resumable shipping.

What I'd do →

  1. Run Prometheus in agent mode (--agent) or Alloy on each edge cluster with remote_write to the central store.
  2. The WAL buffers data during outages; size its disk for the longest expected outage.
  3. Keep a few local alert rules for critical store-level checks (via a small local Prometheus or by syncing alerts).
  4. Add external_labels: {store: "store-142"}.
  5. Alert centrally on stale data per store: time() - max by (store) (timestamp(up)) > 900.

Why → Agent mode is light and designed for forwarding with WAL-based retries.

Interview tip → Mention that the central store must accept out-of-order or late samples (Prometheus/Mimir out-of-order ingestion settings).

All Monitoring & Observability questions

More on Long-Term Storage, Scale and Cost