Design live metrics dashboards fed by streaming events with rollups, alerts, and multi-tenant isolation. Balance freshness, cost, and query speed.
Functional requirements
- Ingest high-volume metrics and events
- Compute rollups (1s/1m/1h) for charts
- Alerting rules with thresholds and suppression
- Dashboard sharing with RBAC
Non-functional requirements
- Sub-second to few-second freshness per tier
- Efficient storage for time series
- Horizontal scale of ingestion and query paths