Knowledge-aware Alert Aggregation in Large-scale Cloud Systems: a Hybrid Approach

Jinxi Kuang, Jinyang Liu, Junjie Huang, Renyi Zhong, Jiazhen Gu, Lan Yu, Rui Tan, Zengyin Yang, Michael R. Lyu · DOI

Abstract

In massive cloud environments, a single component failure can trigger an "alert storm," overwhelming on-call engineers with thousands of notifications. Existing automated aggregation tools often lack domain-specific context or fail on infrequent "long-tail" alerts. This paper introduces COLA (COrrelation mining and LLM reasoning for online alert Aggregation), a hybrid framework that combines fast statistical correlation mining with the deep reasoning capabilities of Large Language Models (LLMs). By leveraging internal Standard Operating Procedures (SOPs), COLA achieves state-of-the-art accuracy (F1-scores of 0.90-0.93) while maintaining the efficiency required for real-time production deployment.

Introduction

Modern cloud services generate vast amounts of monitoring data, including logs, traces, and KPIs. When a failure occurs, the system triggers a cascade of alerts across various services and regions. The primary challenge for site reliability engineers (SREs) is to quickly group these related alerts to identify the underlying root cause and mitigate the issue.

The workflow of alert management in an online service system, showing the transition from massive alerts to aggregated notifications for engineers.

Traditional automated solutions typically rely on semantic similarity (grouping alerts with similar text) or statistical methods (grouping alerts that frequently co-occur). However, semantic methods struggle when related alerts are linguistically distinct, and statistical methods fail when historical data is sparse. COLA addresses these gaps by incorporating domain knowledge stored in technical documentation.

The COLA Framework

COLA employs a two-stage hybrid architecture designed to balance speed and reasoning depth:

1. Correlation Mining (The Fast Filter)

This stage acts as an initial filter to handle high-volume, common alert patterns using two primary metrics:

  • Temporal Relation: Calculating the conditional probability of two alerts appearing within the same time window.
  • Spatial Relation: Utilizing an "alert-aware random walk" on the service topology graph to identify alerts originating from logically or physically connected components.

Alert pairs with high confidence scores are aggregated immediately, while low-confidence pairs are discarded. "Uncertain" pairs—often representing complex or infrequent issues—are passed to the second stage.

2. LLM Reasoning (The Deep Thinker)

To resolve ambiguous cases, COLA utilizes an LLM enhanced with domain knowledge. This process involves:

  • Knowledge Extraction: Summarizing lengthy, unstructured SOPs into structured "key info" including root causes and mitigation steps.
  • In-Context Learning (ICL) & Fine-Tuning: The model is provided with reasoning rules and fine-tuned using p-tuning v2 on historical cloud-specific alert data to ensure it understands specialized terminology.
Example of a system alert and its corresponding Standard Operating Procedure (SOP), illustrating the domain knowledge used for reasoning.

Experimental Evaluation

The framework was evaluated using three large-scale datasets from a major cloud provider, comprising 500,000 alerts and 3,000 SOP documents across 14 regions.

Key Results: * Performance: COLA achieved F1-scores between 0.901 and 0.930, significantly outperforming industry baselines like AlertStorm and LiDAR, which typically scored between 0.44 and 0.66. * Efficiency: By using the hybrid approach, COLA reduced the average inference time to 5–8 seconds per alert pair, compared to nearly 50 seconds for a pure LLM-based approach. This makes it viable for real-time incident response.

Conclusion

COLA demonstrates that technical documentation (SOPs) is a vital but previously underutilized resource for alert management. By treating these documents as active reasoning logic, COLA bridges the gap between raw statistical data and human-like domain expertise. Future work will focus on improving spatial mining accuracy and incorporating more diverse data types, such as system logs and trace data, to further refine failure propagation analysis.

Summary updated

BibTeX
@inproceedings{kuang2024knowledge,
  author = {Jinxi Kuang and Jinyang Liu and Junjie Huang and Renyi Zhong and Jiazhen Gu and Lan Yu and Rui Tan and Zengyin Yang and Michael R. Lyu},
  title = {{Knowledge-aware Alert Aggregation in Large-scale Cloud Systems: a Hybrid Approach}},
  booktitle = {ICSE-SEIP},
  year = {2024},
  doi = {10.1145/3639477.3639745},
}
Figure