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

You must offer a shared metrics platform to 40 teams with isolation and fair use. How do you design it?

AdvancedScenarioLong-Term Storage, Scale and Cost
Answer

Situation read → Needs tenant isolation, per-tenant limits, self-service and cost visibility.

What I'd do →

  1. Use a multi-tenant backend (Mimir or similar); each team is a tenant via X-Scope-OrgID.
  2. Collect with Alloy/Prometheus Agent per cluster, setting the tenant header based on namespace ownership.
  3. Set per-tenant limits: max_global_series_per_user, ingestion_rate, max_fetched_series_per_query.
  4. Give each team a Grafana folder and datasource scoped to its tenant; a platform tenant can query across tenants for platform views.
  5. Publish usage dashboards (series, samples/s, cost) per tenant and review monthly.
  6. Document how to request higher limits.

Why → Limits stop one team from hurting all others; visibility makes teams fix their own cardinality.

Interview tip → Mention federated querying across tenants for shared services (tenant-a|tenant-b).

All Monitoring & Observability questions

More on Long-Term Storage, Scale and Cost