Abstract
Microservice architectures generate vast amounts of multimodal telemetry data, making manual root cause analysis (RCA) difficult for Site Reliability Engineers. This paper presents MicroRCA-Agent, a modular framework that utilizes Large Language Model (LLM) agents to perform automated RCA. By implementing a "precise extraction-information compression" pipeline, the system standardizes logs, traces, and metrics into high-density semantic summaries. Evaluated on the 2025 CCF International AIOps Challenge dataset, MicroRCA-Agent achieved a performance score of 50.71, demonstrating the efficacy of hierarchical reasoning and mathematical filtering in reducing LLM context overhead.
1. Introduction
In modern microservice environments, a single failure can trigger a "storm" of telemetry data, including millions of log entries, thousands of performance metrics, and complex distributed trace call chains. For Site Reliability Engineers (SREs), identifying the actual root cause—the "needle in the haystack"—is a manual, time-consuming process.
Existing automated RCA tools face two primary challenges:
- Data Volume: Raw telemetry is too noisy and voluminous for LLMs to process directly due to context window limits and high computational costs.
- Reasoning: Traditional machine learning models can detect anomalies but often fail to provide a human-readable "reasoning trace" that explains the failure logic.
2. Methodology
MicroRCA-Agent employs a modular architecture designed to fuse logs, traces, and metrics through five core stages.
2.1 Data Preprocessing and Unification
To ensure accurate cross-modal correlation, the system standardizes timestamps across different modalities to nanosecond precision. This unification is critical for aligning events across disparate log, trace, and metric streams.
2.2 Log Fault Extraction
The framework utilizes the Drain parsing algorithm alongside a multi-level filtering mechanism (time windows, error keywords, and deduplication). This process compresses massive raw logs into high-quality semantic templates, significantly reducing noise while preserving fault-related information.
2.3 Trace Anomaly Detection
A hybrid "unsupervised + rule-based" strategy is employed. Isolation Forest models detect duration-based performance anomalies, while direct status code inspection identifies explicit failures (e.g., HTTP 500 errors).
2.4 Metric Fault Summarization
A standout feature of the system is the use of a statistical symmetric ratio to mathematically filter out "normal" metrics. The remaining anomalous metrics are summarized by an LLM in two stages: first focusing on business/database metrics (APM/TiDB), then integrating infrastructure data (Node/Pod) for a full-stack view.
2.5 Multimodal RCA Agent
The final agent consumes the structured summaries and uses specialized cross-modal prompts to generate a comprehensive report. This report identifies the faulty component, provides a natural language description of the cause, and outlines a step-by-step reasoning trace.
3. Evaluation
The system was evaluated using the dataset from the 2025 CCF International AIOps Challenge, which includes multimodal telemetry from complex microservice fault scenarios.
3.1 Key Results
The framework achieved a final score of 50.71. An ablation study was conducted to determine the relative importance of each data modality:
- Metrics alone: 42.78
- Logs + Metrics: 51.27 (Highest performing combination)
- Full Multimodal (Log+Trace+Metric): 50.71
While the full multimodal system scored slightly lower than the Log+Metric combination, the authors maintain that traces remain vital for resolving complex call-chain anomalies.
4. Discussion and Insights
The success of MicroRCA-Agent highlights that the key to effective LLM-based RCA is data pruning rather than just prompt engineering. The "precise extraction-information compression" mechanism reduces the LLM's context overhead by approximately 50%. Furthermore, the hierarchical reasoning approach mimics human troubleshooting by analyzing business symptoms before diving into infrastructure causes.
4.1 Limitations and Future Work
A primary hurdle remains LLM Hallucination, where the agent occasionally generates non-existent trace call chains. Future work will explore Retrieval-Augmented Generation (RAG) to ground reasoning in actual system topology and multi-agent "jury" mechanisms to cross-verify results and reduce individual errors.
Summary updated