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 →
- Run Prometheus in agent mode (
--agent) or Alloy on each edge cluster withremote_writeto the central store. - The WAL buffers data during outages; size its disk for the longest expected outage.
- Keep a few local alert rules for critical store-level checks (via a small local Prometheus or by syncing alerts).
- Add
external_labels: {store: "store-142"}. - 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).
More on Long-Term Storage, Scale and Cost
Prometheus keeps 15 days of data, but leadership wants 13 months of metrics for capacity planning. What do you build?IntermediateThe Thanos compactor has halted and the bucket keeps growing. What do you do?AdvancedGrafana shows every series twice after you added a second Prometheus replica with Thanos. How do you fix it?IntermediateRemote write to your central store is falling further behind every hour. How do you handle it?AdvancedMimir rejects writes from a team with `err-mimir-max-series-per-user`. What do you do?IntermediateYour observability SaaS bill tripled in a quarter, driven by custom metrics. How do you bring it down?Intermediate