Ankit Patel
WritingPapersLabsAboutContact
Paper Reviews··2 min read·255 views

Google Monarch: Keeping Alerting Off the Broken Database

Google Monarch · Adams et al., VLDB 2020

A list of what alerting needs in order to fire, a list of what it watches, and one database that appears on both

I have learned the hard way that a storage outage is the worst time to discover that your alerting pipeline reads from the same storage service before it can page an on-call engineer.

Google's Monarch architecture puts circular dependency avoidance right at the center of the design. Because Monarch monitors Google's foundational storage and networking infrastructure, its alerting critical path avoids hard runtime dependencies on shared external storage services, holding active time-series windows in memory while pushing durable recovery logs and historical archives off the immediate paging path.

Monarch also partitions ingestion and alert evaluation into independent regional zones while exposing a federated global query layer above them. During partial network partitions, queries return available zonal data immediately alongside explicit metadata flagging which zones failed to respond, and overloaded ingestion leaves drop stale writes to protect fresh operational visibility.

Those tradeoffs tell a much more useful story than headline numbers about petabytes of RAM. Every architectural choice follows one mandate: keep delivering trustworthy diagnostic signal while the surrounding datacenter is degraded.

Tracing a single network fault end-to-end shows why zonal locality alone never settles alerting design. When a compute cluster loses its external egress link, a zone-local evaluator inside the cluster can still ingest host metrics and trip a threshold rule, yet its outbound page cannot reach PagerDuty or an external notification bus.

Flip the topology and evaluate alerts remotely from another region. Now the evaluator can page engineers cleanly, provided its query semantics distinguish 'zero 500 errors reported' from 'zero telemetry packets received.' Treating missing scrape targets as zeros turns a catastrophic blackhole into an all-clear graph.

Partial query responses carry the exact same trap on executive and incident dashboards. In a two-region service where us-east blackholes traffic and stops exporting counters while us-west stays healthy, a global error-rate ratio computed solely over responding zones suddenly looks healthier right as half your customers fail. Surfacing incomplete-zone warnings directly on the chart axis is part of query correctness, not UI polish.

That deliberate tolerance for dropped late samples and partial reads also explains why time-series telemetry stores make terrible billing ledgers even when their SQL dialects look identical. Pick the failure you expect observability to catch first, trace collection, rule evaluation and page delivery while that exact component is down, and verify what reaches the human responder when half the fleet goes dark.

Paper: Adams et al., Monarch: Google's Planet-Scale In-Memory Time Series Database, VLDB 2020.

Continue in Paper Reviews