How phamquiluan/rcaeval works
RCAEval is a microservice root-cause-analysis benchmark: telemetry cases are prepared, analyzed by RCA baselines, and ranked predictions are evaluated against annotations. It also provides telemetry conversion, blind-task and LLM-agent evaluation, and multi-source capabilities. The graph preserves these documented branches and the main package’s causal discovery, graph, and ranking layers. Some runtime wiring is unsampled, so uncertain links are omitted or marked dashed rather than inferred from co-location or imports.
Main entry points: main.py Benchmark runner · graph.py Causal graph model · __main__.py Conversion CLI · runner.py Agent execution
Components 33
Benchmark workflow
- Annotated datasets
- Benchmark runner
main.py - Prediction scoring
RCAEval/agent/predictions.py
Telemetry preparation
- Time-series I/O
RCAEval/io/time_series.py - Conversion CLI
RCAEval/convert/__main__.py - Case conversion
RCAEval/convert/common.py - Prometheus metrics
RCAEval/convert/prometheus.py - OTLP traces
RCAEval/convert/otlp.py - Log conversion
RCAEval/convert/logs.py - Derived signals
RCAEval/convert/derive.py - Log templates
RCAEval/logparser/logtemplate.py - EventADL extraction
RCAEval/eventadl/extract_resources.py
RCA analysis
- Case data model
RCAEval/classes/data.py - Causal graph model
RCAEval/classes/graph.py - cMLP discovery
RCAEval/graph_construction/cmlp.py - DAG-GNN discovery
RCAEval/graph_construction/dag_gnn.py - Granger discovery
RCAEval/graph_construction/granger.py - NOTEARS discovery
RCAEval/graph_construction/notears.py - PCMCI discovery
RCAEval/graph_construction/pcmci.py - FCI discovery
RCAEval/graph_construction/fci.py - CausalLearn graph
lib/causallearn/graph/GraphClass.py - FCI engine
lib/causallearn/search/ConstraintBased/FCI.py - Adjacency search
lib/causallearn/utils/Fas.py - Root-cause ranking
RCAEval/graph_heads/random_walk.py - Graph visualization
RCAEval/utility/visualization.py
Agent evaluation
- Blind task export
RCAEval/agent/export.py - Agent execution
RCAEval/agent/runner.py - Telemetry tools
RCAEval/agent/toolkit.py - MCP server
RCAEval/agent/mcp_server.py - Prediction scoring
RCAEval/agent/predictions.py
Other components
- Benchmark user
- Telemetry sources
- LLM or CLI agent
Connections 35
- Benchmark user → Benchmark runner: runs benchmark
README.md - Annotated datasets → Benchmark runner: provides cases
README.md - Benchmark runner → Time-series I/O: loads series
main.py - Benchmark runner → Case data model: prepares cases
- Benchmark runner → Causal graph model: uses graphs
main.py - Benchmark runner → Root-cause ranking: ranks causes
- Benchmark runner → Prediction scoring: scores results
- Telemetry sources → Conversion CLI: supplies exports
README.md - Conversion CLI → Prometheus metrics: converts metrics
RCAEval/convert/__main__.py - Conversion CLI → OTLP traces: converts traces
RCAEval/convert/__main__.py - Conversion CLI → Log conversion: converts logs
RCAEval/convert/__main__.py - Conversion CLI → Derived signals: derives signals
RCAEval/convert/__main__.py - Prometheus metrics → Case conversion: writes case data
RCAEval/convert/prometheus.py - OTLP traces → Case conversion: writes case data
RCAEval/convert/otlp.py - Log conversion → Case conversion: writes case data
RCAEval/convert/logs.py - Conversion CLI → Log templates: parses logs
- Benchmark runner → EventADL extraction: handles EventADL
- cMLP discovery → Causal graph model: produces graph
- DAG-GNN discovery → Causal graph model: produces graph
- Granger discovery → Causal graph model: produces graph
- NOTEARS discovery → Causal graph model: produces graph
- PCMCI discovery → Causal graph model: produces graph
- FCI discovery → FCI engine: uses engine
- FCI engine → Adjacency search: searches adjacency
lib/causallearn/search/ConstraintBased/FCI.py - FCI engine → CausalLearn graph: constructs graph
- Causal graph model → Root-cause ranking: guides ranking
RCAEval/graph_heads/random_walk.py - Causal graph model → Graph visualization: renders graph
RCAEval/utility/visualization.py - Benchmark user → Blind task export: exports tasks
README.md - Blind task export → LLM or CLI agent: provides blind tasks
README.md - LLM or CLI agent → Agent execution: submits predictions
README.md - Agent execution → Telemetry tools: queries telemetry
- Agent execution → MCP server: uses MCP
README.md - Telemetry tools → Time-series I/O: reads metrics
- Telemetry tools → Log templates: queries logs
- Agent execution → Prediction scoring: scores predictions
README.md