Feature

Multi-region

Multiple TSDB instances, ingest routed per-agent, queries per-request.

Each region is a separate Prometheus-compatible TSDB with its own URL. Agents are bound to a region at registration. The cabinet selects a region via a sidebar dropdown — the choice is saved in localStorage and pinned to every query via ?region=<id>. The default region is used when no explicit choice is made.

Key properties

  • In-memory RegionRouter with an RWMutex
  • Synthetic region for single-region deploys
  • Per-agent assignment via PATCH /agents/:id/region
  • Cabinet-side selector in the sidebar, persisted in localStorage
  • Unknown region → fall back to default (no errors during migrations)

Related features