Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Meta Engineering 5 min read Case study easyNovice

DrP: Meta’s Root Cause Analysis Platform at Scale

DrP is Meta's root cause analysis platform that lets engineers codify incident investigation playbooks as "analyzers" using an SDK with helpers for anomaly detection, event isolation, time series correlation and dimension analysis. Analyzers are backtested in code review, chained across dependent services, auto-triggered by alerts, and run on a multi-tenant backend with a request queue and worker pool. A post-processing system annotates alerts and can open tasks or pull requests for mitigation. Used by 300+ teams with 2,000 analyzers running 50,000 analyses daily, DrP has cut MTTR by 20-80%.

Assumes: incident on-call workflowsalerting systems

Related posts

  • Leveraging AI for efficient incident response

    Meta Engineering mediumAdept

    Meta's AI-assisted root cause analysis system narrows suspect code changes in its web monorepo by combining a heuristic retriever with a fine-tuned Llama 2 (7B) ranker. The retriever uses signals such as code and directory ownership and the runtime code graph to cut thousands of changes down to a few hundred. The ranker then runs an 'election': each prompt holds up to 20 changes and picks the top five, and results are aggregated and repeated until five candidates remain. Backtesting shows the root cause lands in the top five for 42% of investigations at creation time. The biggest gain came from continued pre-training on internal artifacts plus supervised fine-tuning on about 5,000 historical RCA examples, including logprob-ranked list outputs, while confidence thresholds suppress low-confidence suggestions in favor of precision.

  • Improving Meta’s SLO workflows with data annotations

    Meta Engineering mediumAdept

    Meta extended its SLICK SLO platform with schematized annotations so on-call engineers record structured root causes for every SLO violation, turning freeform notes into data that reveals the most common failure patterns. An annotation_config field in the SLI configuration defines required hierarchical key-value matchers. Annotations can be created via CLI, web UI, a Workplace bot, or automatically by the Dr. Patternson debugging runbook tool, and an insights UI aggregates them by root cause. Instagram's experience showed that short-lived downstream database blips were its biggest reliability contributor, and that annotation workflows only succeed when they are cheap for on-calls and the data actually drives prioritization.

  • Your AI SRE needs better observability, not bigger models.

    ClickHouse mediumAdept

    AI SRE copilots fail at root cause analysis mainly because of their data, not their models: legacy inverted-index observability stacks keep only 7-14 days of logs, drop high-cardinality fields like request and user IDs, answer queries slowly, and often charge per query. ClickHouse's own tests found an agent issues 6-27 queries per investigation and that even GPT-5 could not reliably find root causes without better context. The proposed fix is a columnar OLAP substrate with months of full-fidelity telemetry, sparse primary indexes, fast vectorized queries and standard SQL that LLMs already know. The reference architecture adds OpenTelemetry ingestion, logs, metrics and traces in MergeTree tables, and context tables for deployments and feature flags, with humans approving every action instead of auto-remediation.

  • Capacity Efficiency at Meta: How Unified AI Agents Optimize Performance at Hyperscale

    Meta Engineering easyNovice

    Meta's Capacity Efficiency Program uses one AI agent platform for two jobs: finding performance optimizations (offense) and fixing production regressions (defense). The platform has two layers. MCP tools are single-purpose interfaces for querying profiling data, config history, code and docs, and skills encode senior engineers' reasoning about which tools to use and how to read the results. FBDetect catches regressions as small as 0.005%, and its AI Regression Solver turns root-caused regressions into fix-forward pull requests sent to the original author. On offense, agents turn efficiency opportunities into ready-to-review code. Meta reports that automated diagnosis cuts about 10 hours of investigation to about 30 minutes, and the program has recovered hundreds of megawatts of power.

  • Building Investigations: what it takes to build an AI SRE

    incident.io mediumAdept

    Building a reliable AI SRE took incident.io two years, far longer than the first promising prototype suggested, and the hard work sat in four areas around the model. Accuracy is measured by backtesting against past incidents frozen in time, where the main difficulty is keeping future information (fix PRs, post-mortems, root-cause messages) from leaking into the inputs. The harness fans out across data sources and uses an adversarial agent to challenge each hypothesis; its findings data model went through five versions, from free-form essays to evidence-backed, discountable records written in waves. Heads-up messages must pass layered mechanical checks, 'vibe' checks and tone tuning, and are LLM-graded for novelty and accuracy. Telemetry queries are summarized and graphed for the agent, and a nightly 'Explore' process re-validates stored memories so they stay correct as the organization changes.

The quest for software engineering knowledge.

Look:
Layout: