AIOpsLab: A Holistic Framework to Evaluate AI Agents for Enabling Autonomous Clouds

Yinfang Chen, Manish Shetty, Gagan Somashekar, Minghua Ma, Yogesh Simmhan, Jonathan Mace, Chetan Bansal, Rujia Wang, Saravan Rajmohan

TL;DR

AIOPSLAB is an open-source, interactive benchmark framework designed to evaluate autonomous LLM agents across the complete cloud incident lifecycle—from detection and localization to root cause analysis and mitigation. By combining live microservice testbeds, multi-layer fault injection, and a unified Agent-Cloud Interface (ACI), it enables reproducible and realistic assessment of "AgentOps."

What Problem Does This Paper Address?

While Large Language Models (LLMs) have demonstrated substantial success in software engineering ("Dev"), evaluating AI agents for cloud operations ("Ops") remains a challenge. Existing AIOps benchmarks rely almost entirely on static offline telemetry datasets or multiple-choice question answering. These static setups fail to capture the dynamic, evolving nature of real-world cloud environments, where an agent's actions directly alter system state. Furthermore, prior work typically focuses on isolated sub-tasks (like anomaly detection) and simple crash failures rather than assessing whether an agent can diagnose fine-grained functional bugs (such as configuration errors or authentication revocations) and autonomously resolve them.

Methods

The authors introduce AIOPSLAB, an end-to-end framework that formalizes an operational task as $P = \langle T, C, S \rangle$ across four incident phases: Detection (Level 1), Localization (Level 2), Root Cause Analysis (Level 3), and Mitigation (Level 4).

  • Central Orchestrator & ACI: Enforces strict separation between agent and infrastructure. The Agent-Cloud Interface provides clean, abstracted APIs (get_logs, get_metrics, get_traces, and sandboxed exec_shell) to prevent agents from being overwhelmed by raw CLI noise.
  • Realistic Infrastructure & Workload: Deploys live microservice applications via Kubernetes and Helm, driving realistic traffic with workload generators (wrk2, Locust).
  • Multi-Layer Fault Generator: Injects both symptomatic faults (pod failures, packet drops via ChaosMesh) and deeper functional faults (Kubernetes port misconfigurations, dropped DB privileges, bad deployment images).
  • Comprehensive Telemetry & Evaluation: Collects runtime telemetry using Prometheus (metrics), Jaeger (distributed traces), and Logstash/Filebeat (logs). It evaluates correctness, Time-to-Detect (TTD), Time-to-Mitigate (TTM), API steps taken, token costs, and qualitative reasoning trajectories using LLM-as-a-Judge.
       +---------------------------------------------+
       |                  AIOpsLab                   |
       |                                             |
       |  +----------------+     +----------------+  |
       |  | Workload Gen.  |     | Fault Injector |  |
       |  +-------+--------+     +--------+-------+  |
       |          |                       |          |
       |          v                       v          |
       |      [ Microservices on Kubernetes ]        |
       |                      |                      |
       |                      v                      |
       |        [ Telemetry: Logs/Traces/Metrics ]   |
       +----------------------|----------------------+
                              |
                     Agent-Cloud Interface
                     (get_logs, exec_shell)
                              |
                              v
                   +---------------------+
                   |   Autonomous Agent  |
                   |  (GPT-4, ReAct, etc)|
                   +---------------------+

Datasets

Rather than static data files, AIOPSLAB provides an executable benchmark suite of 100 problems (with 48 representative problems evaluated in depth). These scenarios run across three diverse cloud environments:

  1. SocialNetwork (DeathStarBench): 28 interconnected microservices using Redis, MongoDB, and Memcached.
  2. HotelReservation (DeathStarBench): Go- and gRPC-based transactional service.
  3. Astronomy Shop (OpenTelemetry Demo): Polyglot microservices communicating via HTTP and gRPC, instrumented with feature flags (flagd).
  4. TiDB Operator: Clustered distributed database managed on Kubernetes.

Key Insights and Ideas

  • Environment feedback reaches a rapid plateau: In code generation, agents continuously refine code using compilers, linters, and test suites. In cloud incident management, however, agent accuracy plateaus after roughly 5 to 10 steps. Without domain-specific decomposition and intermediate verification, repeated environmental trial-and-error fails to yield progress.
  • Telemetry context overload is a primary failure mode: Agents frequently fail when they blindly dump raw metric tables or massive trace payloads directly into their context window (e.g., calling cat on telemetry files). Successful agents invoke get_metrics and get_traces sparingly and rely heavily on targeted log inspection.
  • Action loops and hallucinations plague weaker models: Simpler baselines (e.g., GPT-3.5) repeatedly hallucinated imaginary utility scripts (such as analyze_data.py) or looped identical invalid API syntax up to 14 times in a single 20-step run.
  • False alarm susceptibility: When tested on healthy baseline systems without faults ("noop"), all evaluated agents except GPT-4-w-Shell triggered false positives, misinterpreting normal traffic fluctuations as critical incidents.

Key Results

The authors evaluated four agents—GPT-3.5-w-Shell, GPT-4-w-Shell, ReAct, and FLASH (a workflow automation agent with retrospective insights)—alongside traditional non-LLM algorithms (MKSMC, PDiagnose, RMLAD):

  • Overall Accuracy: FLASH achieved the highest aggregate accuracy (59.32%), followed by ReAct (55.93%), GPT-4-w-Shell (49.15%), and GPT-3.5-w-Shell (15.25%).
  • LLMs vs. Traditional AIOps: LLM agents drastically outperformed traditional methods. In detection, FLASH reached 100% accuracy, while MKSMC scored 15.38%. In localization, ReAct achieved 69.23% Top-3 accuracy, while PDiagnose scored 15.38% and RMLAD scored 7.69%.
  • Task Difficulty Gradient: Mitigation remains the hardest frontier. While detection achieved up to 100% success, mitigation accuracy dropped to 0% for GPT-3.5, 27.27% for GPT-4-w-Shell, 36.36% for ReAct, and 54.55% for FLASH.
  • Efficiency and Cost: More tokens do not imply better reasoning: ReAct consumed over 16,900 tokens per task on average, yet achieved lower overall accuracy than FLASH, which consumed roughly 6,484 tokens.

Limitations and Future Work

  • Operational Overhead: Running dynamic benchmarks with live container clusters, real traffic generation, and fault teardowns introduces significant cloud hosting and execution time costs.
  • Binary Detection: The detection task currently evaluates binary classification (anomaly present vs. absent), leaving fine-grained anomaly segmentation/tagging for future iterations.
  • Need for Advanced Agent Architectures: The results emphasize that out-of-the-box LLM prompting is insufficient for complex mitigation. Future work must incorporate structured planning, specialized telemetry-filtering tools, and stronger multi-agent coordination.

Summary updated

BibTeX
@inproceedings{chen2025aiopslab,
  author = {Yinfang Chen and Manish Shetty and Gagan Somashekar and Minghua Ma and Yogesh Simmhan and Jonathan Mace and Chetan Bansal and Rujia Wang and Saravan Rajmohan},
  title = {{AIOpsLab: A Holistic Framework to Evaluate AI Agents for Enabling Autonomous Clouds}},
  booktitle = {MLSys},
  year = {2025},
  url = {https://openreview.net/forum?id=3EXBLwGxtq},
}

Loading related content...

Figure