System alarm root cause analysis method and device, electronic equipment and computer product
By constructing alarm evidence packages and assigning diagnostic domains, the root cause of system alarms is determined, solving the problem of low efficiency in root cause analysis in large-scale Internet production environments and achieving efficient, accurate root cause analysis and intelligent processing.
Patent Information
- Application Number
- CN202611364095.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-27
AI Technical Summary
In large-scale internet production environments, root cause analysis of system alerts is inefficient and inaccurate. Existing technologies struggle to effectively reduce invalid queries, resulting in truly relevant fault evidence being buried in the vast search space and model context.
Construct alarm evidence packages, determine diagnostic domain types, generate diagnostic tasks, identify candidate root cause objects through system-class and business-class diagnostic links, obtain root cause analysis results based on diagnostic evidence, and use multi-layer memory systems and intelligent agents for auxiliary analysis.
It improves the efficiency and accuracy of root cause analysis, reduces invalid queries, and enhances the automation and intelligence of system alarm handling.
Smart Images

Figure CN123178146A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more specifically, to a root cause analysis method for system alarms, a root cause analysis device for system alarms, electronic equipment, and computer program products. Background Technology
[0002] As internet businesses expand, microservice systems contain numerous services, interfaces, databases, middleware, host resources, and business metrics, forming complex dependencies between different services and metrics. When anomalies occur in system resources, service calls, or business strategies, these anomalies propagate along the dependencies, ultimately manifesting as decreased interface availability, increased latency, sudden changes in business metrics, or a decline in business conversion rates, resulting in a massive number of alerts generated by the monitoring platform.
[0003] In large-scale internet production environments, due to the differences in alarm objects, metric definitions, and root cause propagation methods, performing a unified analysis on all services, metrics, logs, and historical cases directly after an alarm is triggered will not only generate a large number of invalid queries, but also cause truly relevant fault evidence to be submerged in the vast search space and model context, resulting in inefficient and inaccurate root cause analysis.
[0004] Therefore, there is an urgent need in this field for a root cause analysis method for system alarms that can reduce invalid queries and improve the efficiency and accuracy of root cause analysis.
[0005] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0006] The purpose of this disclosure is to provide a root cause analysis method, a root cause analysis device, an electronic device, and a computer program product for system alarms, thereby reducing invalid queries and improving the efficiency and accuracy of root cause analysis to at least a certain extent.
[0007] According to the first aspect of this disclosure, a root cause analysis method for system alarms is provided, comprising: Construct an alarm evidence package corresponding to an alarm event, determine the diagnostic domain type corresponding to the alarm event based on the alarm evidence package, and generate a diagnostic task of the diagnostic domain type; The diagnostic task is executed based on the diagnostic link of the diagnostic domain type to determine the candidate root cause objects related to the alarm event in the diagnostic domain type; A corresponding diagnostic subtask is generated based on the diagnostic domain type in which the candidate root cause object is located, and diagnostic evidence for the candidate root cause object is obtained based on the diagnostic subtask. Based on the diagnostic evidence of the candidate root cause objects, the target root cause object of the system alarm is obtained, and based on the target root cause object, the root cause analysis result of the system alarm is obtained.
[0008] In one exemplary embodiment of this disclosure, the construction of the alarm evidence package corresponding to the alarm event includes: Based on the relevant alarm information of the alarm event, an alarm evidence package corresponding to the alarm event is constructed. The alarm evidence package includes alarm rule evidence, current indicator evidence, abnormal shape evidence, historical alarm evidence, alarm semantic evidence, and associated context evidence.
[0009] In one exemplary embodiment of this disclosure, the relevant alarm information includes an alarm indicator time series, and the method further includes: The alarm indicator time series is time-aligned and standardized, and the processed alarm indicator time series is input into a pattern matcher to obtain the short-term mutation characteristics and long-term trend characteristics of the alarm indicator time series. Based on the short-term mutation characteristics and the long-term trend characteristics, the abnormal shape category and corresponding confidence level of the alarm indicator time series are obtained to obtain the evidence of the abnormal shape.
[0010] In one exemplary embodiment of this disclosure, the method further includes: The relevant alarm information is input into a large language model to obtain semantic recognition results, and the alarm semantic evidence is obtained based on the semantic recognition results.
[0011] In one exemplary embodiment of this disclosure, the alarm evidence packet is input into the first thinking link, the noise score corresponding to the alarm event is calculated, and it is determined whether the alarm event triggers the protection condition based on the alarm evidence packet; If the noise score is greater than or equal to the noise threshold and the alarm event does not trigger the protection condition, then the alarm event is determined to be a high-confidence noise event. If the alarm event does not belong to the high-confidence noise event, the alarm evidence package is input into the second thinking link, and the diagnostic domain type corresponding to the alarm event is determined through the second thinking link.
[0012] In one exemplary embodiment of this disclosure, calculating the noise score corresponding to the alarm event includes: The noise score corresponding to the alarm event is calculated based on the proportion of historical alarms that are identified as noise, the automatic recovery rate of historical alarms, and the abnormal shape category of the alarm indicator time series.
[0013] In one exemplary embodiment of this disclosure, the diagnostic task includes system-type diagnostic tasks, business-type diagnostic tasks, hybrid-type diagnostic tasks, and undetermined-type diagnostic tasks. The diagnostic link based on the diagnostic domain type executes the diagnostic task to determine candidate root cause objects related to the alarm event in the diagnostic domain type, including: If the diagnostic task is a system-level diagnostic task, then the diagnostic task is executed based on the system domain diagnostic link to obtain candidate root cause objects of the system domain type related to the alarm event; If the diagnostic task is a business-related diagnostic task, then the diagnostic task is executed based on the business domain diagnostic link to obtain candidate root cause objects of the business domain type related to the alarm event; If the diagnostic task is a mixed-type diagnostic task or an undetermined-type diagnostic task, the diagnostic task is executed based on the system domain diagnostic link and the business domain diagnostic link respectively to obtain candidate root cause objects of system domain type and business domain type related to the alarm event.
[0014] In one exemplary embodiment of this disclosure, the step of performing the diagnostic task based on the system domain diagnostic link to obtain candidate root cause objects of system domain type related to the alarm event includes: Starting from the interface that triggered the alarm event, based on the interface call topology graph, the fault propagation score between the current interface and its downstream interfaces is calculated sequentially. If the fault propagation score is less than the system anomaly score threshold, then other downstream interfaces on the interface call chain where the downstream interface is located are excluded. If the fault propagation score is greater than or equal to the anomaly score threshold, then the downstream interface is retained and used as the current interface to continue calculating the fault propagation score with subsequent downstream interfaces; Based on all reserved interfaces, candidate root cause objects of the system domain type associated with the alarm event are obtained.
[0015] In one exemplary embodiment of this disclosure, the step of performing the diagnostic task based on the business domain diagnostic link to obtain candidate root cause objects of the business domain type related to the alarm event includes: Starting from the business metric that triggered the alarm event, the business anomaly score between the current business metric and the candidate upstream metric is calculated sequentially based on the business metric dependency graph. If the business anomaly score is less than the business anomaly score threshold, then subsequent business indicators on the business indicator dependency path where the candidate upstream indicator is located are excluded. If the business anomaly score is greater than or equal to the business anomaly score threshold, then the candidate upstream indicator is retained and used as the current business indicator, and the business anomaly score between it and subsequent upstream indicators is calculated. Based on all retained candidate upstream metrics, candidate root cause objects for the business domain type related to the alarm event are obtained.
[0016] In one exemplary embodiment of this disclosure, the method further includes: If there are multiple candidate upstream indicators for the current business indicator, and the number of candidate upstream indicators is greater than or equal to the indicator number threshold, then the candidate upstream indicators are sorted according to the business anomaly score, and a specified number of candidate upstream indicators are retained according to the sorting result.
[0017] In one exemplary embodiment of this disclosure, generating a corresponding diagnostic subtask based on the diagnostic domain type of the candidate root cause object includes: The main intelligent agent determines the applicable diagnostic tool usage protocol based on the alarm evidence package and the diagnostic domain type of the candidate root cause object, and generates the corresponding diagnostic subtask according to the diagnostic tool usage protocol.
[0018] In one exemplary embodiment of this disclosure, obtaining diagnostic evidence for the candidate root cause object based on the diagnostic subtask includes: The sub-agent corresponding to the diagnostic domain type obtains the diagnostic tool used to perform the diagnostic sub-task according to the diagnostic tool usage protocol in the diagnostic sub-task. The diagnostic tool is invoked according to the steps specified in the diagnostic tool usage protocol to perform the diagnostic subtask and obtain diagnostic evidence for the candidate root cause object.
[0019] In one exemplary embodiment of this disclosure, the method further includes: Construct a multi-layered memory system, which includes a working memory layer, a factual memory layer, and an experiential memory layer; The working memory layer is used to store the status information during the diagnosis process of the alarm event, the fact memory layer is used to store the confirmed fact information during the diagnosis process of the alarm event, and the experience memory layer is used to store the diagnostic experience during the diagnosis process of the alarm event.
[0020] In one exemplary embodiment of this disclosure, the multi-layer memory system further includes a memory relationship diagram, and the method further includes: When recalling memory information from the multi-layer memory system, candidate memory nodes adjacent to the recall memory node corresponding to the current recall task are determined from the memory relationship graph. Determine the graph relational relevance between the candidate memory nodes and the current recall task, and select enhanced memory nodes from the candidate memory nodes based on the graph relational relevance; The memory information in the recalled memory node and the enhanced memory node are returned together.
[0021] In one exemplary embodiment of this disclosure, the method further includes: After obtaining the root cause analysis results of the system alarm, the current memory information for this diagnosis is obtained from the multi-layer memory system, and similar memory information that is similar to the current memory information is obtained from the historical memory information. The current memory information is matched with the similar memory information, and the memory relationship graph is updated based on the matching results.
[0022] According to a second aspect of this disclosure, a root cause analysis apparatus for system alarms is provided, comprising: The diagnostic task generation module is configured to construct an alarm evidence package corresponding to an alarm event, determine the diagnostic domain type corresponding to the alarm event based on the alarm evidence package, and generate a diagnostic task of the diagnostic domain type. The candidate object determination module is configured to execute the diagnostic task based on the diagnostic domain type and determine the candidate root cause objects related to the alarm event in the diagnostic domain type; The diagnostic evidence determination module is configured to execute a corresponding diagnostic subtask based on the diagnostic domain type in which the candidate root cause object is located, and to obtain diagnostic evidence for the candidate root cause object based on the diagnostic subtask. The analysis result generation module is configured to perform the following: obtain the target root cause object of the system alarm based on the diagnostic evidence of the candidate root cause object, and obtain the root cause analysis result of the system alarm based on the target root cause object.
[0023] In one exemplary embodiment of this disclosure, the diagnostic task generation module includes: The alarm evidence package generation unit is configured to construct an alarm evidence package corresponding to the alarm event based on the relevant alarm information of the alarm event. The alarm evidence package includes alarm rule evidence, current indicator evidence, abnormal shape evidence, historical alarm evidence, alarm semantic evidence, and associated context evidence.
[0024] In one exemplary embodiment of this disclosure, the relevant alarm information includes an alarm indicator time series, and the alarm evidence package generation unit includes: The sequence feature determination subunit is configured to perform time alignment and standardization processing on the alarm indicator time series, and input the processed alarm indicator time series into a pattern matcher to obtain the short-term mutation features and long-term trend features of the alarm indicator time series. The abnormal shape evidence determination subunit is configured to perform an operation to obtain the abnormal shape category and corresponding confidence level of the alarm indicator time series based on the short-term mutation features and the long-term trend features, so as to obtain the abnormal shape evidence.
[0025] In one exemplary embodiment of this disclosure, the alarm evidence package generation unit further includes: The alarm semantic evidence determination subunit is configured to input the relevant alarm information into a large language model to obtain semantic recognition results, and obtain the alarm semantic evidence based on the semantic recognition results.
[0026] In one exemplary embodiment of this disclosure, the diagnostic task generation module further includes: The noise condition determination unit is configured to input the alarm evidence packet into the first thinking link, calculate the noise score corresponding to the alarm event, and determine whether the alarm event triggers the protection condition based on the alarm evidence packet. The high-confidence noise event determination unit is configured to determine the alarm event as a high-confidence noise event if the noise score is greater than or equal to the noise threshold and the alarm event does not trigger the protection condition. The diagnostic domain type determination unit is configured to input the alarm evidence package into the second thinking link and determine the diagnostic domain type corresponding to the alarm event through the second thinking link.
[0027] In one exemplary embodiment of this disclosure, the noise condition determination unit includes: The noise score calculation subunit is configured to calculate the noise score corresponding to the alarm event based on the proportion of historical alarms that are identified as noise, the automatic recovery rate of historical alarms, and the abnormal shape category of the alarm indicator time series.
[0028] In one exemplary embodiment of this disclosure, the diagnostic task includes system-type diagnostic tasks, business-type diagnostic tasks, hybrid-type diagnostic tasks, and undetermined-type diagnostic tasks. The diagnostic link based on the diagnostic domain type executes the diagnostic task, and the candidate object determination module includes: The system domain object determination unit is configured to execute the diagnostic task based on the system domain diagnostic link if the diagnostic task is a system class diagnostic task, and obtain candidate root cause objects of the system domain type related to the alarm event. The business domain object determination unit is configured to execute the diagnostic task based on the business domain diagnostic link if the diagnostic task is a business class diagnostic task, and obtain candidate root cause objects of the business domain type related to the alarm event. The hybrid object determination unit is configured to execute the diagnostic task based on the system domain diagnostic link and the business domain diagnostic link respectively if the diagnostic task is a hybrid diagnostic task or an undetermined diagnostic task, to obtain candidate root cause objects of system domain type and business domain type related to the alarm event.
[0029] In one exemplary embodiment of this disclosure, the system domain object determination unit includes: The fault score determination subunit is configured to start from the interface that triggered the alarm event, and calculate the fault propagation score between the current interface and its downstream interfaces sequentially based on the interface call topology graph. The downstream interface exclusion subunit is configured to exclude other downstream interfaces on the interface call chain where the downstream interface is located if the fault propagation score is less than the system anomaly score threshold. The fault score recursive subunit is configured to perform the following: if the fault propagation score is greater than or equal to the anomaly score threshold, retain the downstream interface and use the downstream interface as the current interface to continue calculating the fault propagation score with subsequent downstream interfaces. The system domain object determination subunit is configured to perform operations based on all reserved interfaces to obtain candidate root cause objects of the system domain type associated with the alarm event.
[0030] In one exemplary embodiment of this disclosure, the business domain object determination unit includes: The anomaly score determination subunit is configured to start from the business metric that triggered the alarm event and, based on the business metric dependency graph, sequentially calculate the business anomaly score between the current business metric and the candidate upstream metric. The subsequent indicator exclusion subunit is configured to exclude subsequent business indicators on the business indicator dependency path where the candidate upstream indicator is located if the business anomaly score is less than the business anomaly score threshold. The anomaly score recursive subunit is configured to perform the following: if the business anomaly score is greater than or equal to the business anomaly score threshold, retain the candidate upstream indicator and use the candidate upstream indicator as the current business indicator, and continue to calculate the business anomaly score between it and subsequent upstream indicators. The business domain object determination subunit is configured to perform an analysis of all retained candidate upstream metrics to obtain candidate root cause objects of the business domain type associated with the alarm event.
[0031] In one exemplary embodiment of this disclosure, the business domain object determination unit further includes: The candidate upstream metric sorting subunit is configured to sort the candidate upstream metrics according to the business anomaly score if there are multiple candidate upstream metrics for the current business metric and the number of candidate upstream metrics is greater than or equal to the metric number threshold, and retain a specified number of candidate upstream metrics according to the sorting result.
[0032] In one exemplary embodiment of this disclosure, the diagnostic evidence determination module includes: The diagnostic subtask generation unit is configured to execute a process by which the main intelligent agent determines the applicable diagnostic tool usage protocol based on the alarm evidence package and the diagnostic domain type in which the candidate root cause object is located, and generates the corresponding diagnostic subtask according to the diagnostic tool usage protocol.
[0033] In one exemplary embodiment of this disclosure, the diagnostic evidence determination module further includes: The diagnostic tool acquisition unit is configured to execute a sub-agent corresponding to the diagnostic domain type to acquire a diagnostic tool for performing the diagnostic sub-task according to the diagnostic tool usage protocol in the diagnostic sub-task. The diagnostic tool invocation unit is configured to invoke the diagnostic tool according to the steps specified in the diagnostic tool usage protocol to perform the diagnostic subtask and obtain diagnostic evidence of the candidate root cause object.
[0034] In one exemplary embodiment of this disclosure, the root cause analysis device for system alarms further includes: The memory system construction module is configured to construct a multi-layer memory system, which includes a working memory layer, a fact memory layer, and an experience memory layer. The working memory layer is used to store the status information during the diagnosis process of the alarm event, the fact memory layer is used to store the confirmed fact information during the diagnosis process of the alarm event, and the experience memory layer is used to store the diagnostic experience during the diagnosis process of the alarm event.
[0035] In one exemplary embodiment of this disclosure, the multi-layer memory system further includes a memory relationship diagram, and the memory system construction module includes: The adjacent node determination unit is configured to determine, when recalling memory information from the multi-layer memory system, a candidate memory node adjacent to the recall memory node corresponding to the current recall task from the memory relationship graph. The enhanced node filtering unit is configured to determine the graph relational relevance between the candidate memory nodes and the current recall task, and to filter enhanced memory nodes from the candidate memory nodes based on the graph relational relevance. The memory recall return unit is configured to return the memory information in the recalled memory node and the enhanced memory node together.
[0036] In one exemplary embodiment of this disclosure, the memory system construction module further includes: The similar memory information acquisition unit is configured to, after obtaining the root cause analysis result of the system alarm, acquire the current memory information of the current diagnosis from the multi-layer memory system, and acquire similar memory information that is similar to the current memory information from the historical memory information; The memory relationship graph update unit is configured to perform matching of the current memory information with the similar memory information and update the memory relationship graph based on the matching result.
[0037] According to a third aspect of this disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the root cause analysis method for system alarms as described in any of the preceding claims.
[0038] According to a fourth aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the root cause analysis method for system alarms as described in any of the preceding claims.
[0039] The exemplary embodiments disclosed herein can have the following beneficial effects: In the root cause analysis method for system alarms in the exemplary implementation of this disclosure, alarm evidence packages are constructed and diagnostic domains are assigned. Then, candidate root cause objects are determined by focusing on the relevant diagnostic domain types. Finally, the final root cause analysis results are obtained based on the diagnostic evidence of the candidate root cause objects. This avoids unified analysis of all services, indicators and historical cases, thereby reducing the interference of invalid data queries and irrelevant contexts on root cause analysis, improving the efficiency and accuracy of root cause analysis, and further enhancing the automation and intelligence level of system alarm processing in a large-scale microservice environment.
[0040] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0041] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0042] Figure 1 A flowchart illustrating the root cause analysis method for system alarms according to an exemplary embodiment of this disclosure is shown. Figure 2 A flowchart illustrating an exemplary embodiment of this disclosure is shown to demonstrate the process of determining the diagnostic domain type corresponding to an alarm event based on an alarm evidence package. Figure 3 A schematic diagram of the process for determining candidate root cause objects is shown in an exemplary embodiment of this disclosure; Figure 4 A flowchart illustrating the process of determining candidate root cause objects of system domain type in an exemplary embodiment of this disclosure is shown. Figure 5 A flowchart illustrating the process of determining candidate root cause objects of a business domain type in an exemplary embodiment of this disclosure is shown. Figure 6 A schematic diagram of the process for recalling memory information from a multi-layered memory system is shown in an exemplary embodiment of this disclosure; Figure 7 A flowchart illustrating a root cause analysis method for system alarms according to a specific embodiment of this disclosure is shown. Figure 8 A schematic diagram of a multi-view alarm evidence package and a fast second thinking link is shown in a specific embodiment of this disclosure; Figure 9 This illustration shows a schematic diagram of dual-path drill-down in the system domain and service domain according to a specific embodiment of this disclosure; Figure 10 A business indicator dependency graph and a business drill-down flowchart are shown in a specific embodiment of this disclosure; Figure 11 A schematic diagram of the process of agent task execution based on a master-slave multi-agent architecture in a specific embodiment of this disclosure is shown. Figure 12 A schematic diagram of the process for generating recall using hierarchical memory and graph retrieval enhancement in one specific embodiment of this disclosure is shown; Figure 13 A block diagram of a root cause analysis apparatus for system alarms according to an exemplary embodiment of this disclosure is shown; Figure 14 A schematic diagram of the structure of a computer system suitable for implementing the embodiments of the present disclosure is shown. Detailed Implementation
[0043] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0044] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein.
[0045] The following exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this disclosure more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a full understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced with one or more of the specific details omitted, or other methods, components, apparatus, steps, etc., can be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of this disclosure.
[0046] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0047] In some related embodiments, the root cause analysis scheme uses a method that initiates a complete diagnostic process immediately after a monitoring rule triggers an alarm. This type of scheme queries the alarm object's associated services, call chains, metrics, and logs, and then identifies the root cause through statistical analysis, rule-based judgment, or agent reasoning. In specific implementations, some systems perform anomaly detection on alarm metrics, but the anomaly detection results are usually directly used as the triggering condition for subsequent root cause analysis, without combining alarm rule version, historical triggering behavior, automatic recovery status, anomaly shape, and related metric evidence to form a unified alarm judgment object.
[0048] This type of approach fails to distinguish between high-confidence noise and alarms requiring further diagnosis before conducting a complete root cause analysis. When the same rule frequently generates short-term spikes, periodic fluctuations, or automatically recoverable alarms, the system still needs to repeatedly execute topology queries, indicator queries, log retrieval, and model inference, resulting in a waste of diagnostic resources. Furthermore, filtering based solely on whether the current indicator exceeds a threshold or based only on a single anomaly detection result easily overlooks protective conditions such as rule version, historical patterns, alarm levels, and simultaneous anomalies in multiple related indicators, posing a risk of mistakenly filtering high-impact alarms.
[0049] Furthermore, alarm information is usually scattered across monitoring rules, indicator platforms, alarm history, service catalogs, and change systems. There is a lack of structured evidence packages associated with the same alarm event identifier and observation time window, which leads to different diagnostic components repeatedly acquiring and interpreting data, making it difficult to maintain the consistency and traceability of the diagnostic process.
[0050] In other related embodiments, the root cause analysis scheme uses the service call topology as the primary search space. Starting from the interface or service where the alarm occurred, it searches for failure rate, latency, traffic, resource utilization, or log anomalies along downstream call relationships, and retains candidate fault paths based on correlation, time sequence, or preset rules. This type of scheme is suitable for handling system-side faults such as interface failures, service latency, resource exhaustion, database anomalies, and middleware anomalies.
[0051] For alarms about business metrics, one can query the business dashboard or manually check year-on-year and month-on-month data. However, business metrics are usually treated as supplementary observation data, or one still tries to use service call topology to explain changes in business metrics, without treating the dependencies between business metrics confirmed by business personnel as an independent root cause drill-down space.
[0052] For this type of solution, the service call topology describes the call or ownership relationships between services, interfaces, and resources in the computing system, but it cannot fully express the business dependencies between business metrics such as impressions, clicks, conversion rates, order volume, and payment volume. For anomalies caused by strategy adjustments, experimental configurations, traffic allocation, or changes in business definitions, drilling down only along the service topology may not find the corresponding root cause, and may also incorrectly identify system metrics that occur simultaneously with business changes but have no direct impact as the root cause.
[0053] Conversely, analyzing system-related and business-related alarms within a single metric set broadens the candidate pool and confuses the meanings of system dependencies and business dependencies. Especially when both system-side and business-side anomalies exist simultaneously, without a unified candidate result structure to align anomaly time, impact scope, region, version, and service-business metric mapping, it becomes difficult to determine whether the system anomaly is the cause of the business anomaly, whether the business anomaly is an independent event, or whether current evidence is insufficient to establish a relationship between the two.
[0054] In other related embodiments, a large language model, or one or more agents, can be used to perform root cause analysis. The agents generate a troubleshooting plan based on the alarm description and obtain external evidence through tools such as metric queries, log retrieval, call chain queries, and change queries. Some solutions also store historical fault reports and use keyword or vector retrieval to provide similar cases for the current diagnosis.
[0055] Large language models can understand alarm names, metric names, and service descriptions, and can query metrics, logs, topology, and change information through tools. However, in ultra-large-scale microservice environments, directly processing all candidate objects by a single model can easily lead to problems such as excessively long contexts, unstable tool selection, incomplete evidence citations, and misrecalls based on historical experience.
[0056] In multi-agent schemes, a master agent can orchestrate tasks, while sub-agents from different domains can handle resources, databases, network data, or business data respectively. Tool capabilities are typically provided in the form of interfaces, while diagnostic steps are included in prompts, dialogue history, or the agent's own reasoning.
[0057] When an agent simultaneously receives a large number of candidate metrics, all tool descriptions, long dialogue histories, and historical cases from different business lines, information irrelevant to the current candidate significantly increases the model context length. The model may invoke tools unsuitable for the current object, omit necessary checks, or directly draw root cause conclusions without actual observational evidence. Setting up a separate agent for each fault type further increases the complexity of the number of agents, task routing, and result merging.
[0058] Furthermore, tool definitions and diagnostic processes in related solutions are often mixed within prompts or agent logic, making it difficult to clearly distinguish between "atomic capabilities used to acquire data" and "domain processes that specify the order of investigation and judgment conditions." If historical fault information is retrieved solely through keywords or vector similarity, cases with similar names but different services, business dashboards, rule versions, or fault types may be injected into the current task. If unverified intermediate inferences from agents are directly written into long-term memory, erroneous conclusions will continue to propagate in subsequent diagnoses.
[0059] Based on the above problems, this example implementation first provides a root cause analysis method for system alarms. (Reference) Figure 1 As shown, the root cause analysis method for the above system alarms may include the following steps: Step S110. Construct an alarm evidence package corresponding to the alarm event, determine the diagnostic domain type corresponding to the alarm event based on the alarm evidence package, and generate a diagnostic task of the diagnostic domain type.
[0060] Step S120. Perform diagnostic tasks based on the diagnostic link of the diagnostic domain type to identify candidate root cause objects related to alarm events in the diagnostic domain type.
[0061] Step S130. Generate a corresponding diagnostic subtask based on the diagnostic domain type of the candidate root cause object, and obtain diagnostic evidence of the candidate root cause object based on the diagnostic subtask.
[0062] Step S140. Obtain the target root cause object of the system alarm based on the diagnostic evidence of the candidate root cause object, and obtain the root cause analysis result of the system alarm based on the target root cause object.
[0063] In the root cause analysis method for system alarms in the exemplary implementation of this disclosure, alarm evidence packages are constructed and diagnostic domains are assigned. Then, candidate root cause objects are determined by focusing on the relevant diagnostic domain types. Finally, the final root cause analysis results are obtained based on the diagnostic evidence of the candidate root cause objects. This avoids unified analysis of all services, indicators and historical cases, thereby reducing the interference of invalid data queries and irrelevant contexts on root cause analysis, improving the efficiency and accuracy of root cause analysis, and further enhancing the automation and intelligence level of system alarm processing in a large-scale microservice environment.
[0064] Below, in conjunction with Figures 2 to 6 The steps described above in this example implementation will be explained in more detail.
[0065] In step S110, an alarm evidence package corresponding to the alarm event is constructed, the diagnostic domain type corresponding to the alarm event is determined based on the alarm evidence package, and a diagnostic task of the diagnostic domain type is generated.
[0066] In this example implementation, an alarm event refers to an anomaly or condition that does not conform to preset rules detected by the system during operation. For example, service response time exceeding a threshold, increased error rate, and abnormal resource utilization can all be considered alarm events. An alarm evidence package is a structured data object formed around an alarm triggering event.
[0067] A diagnostic domain type is an identifier that categorizes the technical or business areas that an alert event may involve. In a complex microservice architecture, alerts may originate from system infrastructure, service calls, business logic, or data layers. By identifying the diagnostic domain type, the search scope for subsequent diagnostics can be effectively narrowed, for example, by dividing it into system domains or business domains. A diagnostic task is a series of diagnostic operations or query instructions to be executed, generated based on the identified diagnostic domain type. This task guides the diagnostic system to perform in-depth analysis within a specific domain to uncover potential problems related to the alert event.
[0068] In this example implementation, an alarm evidence package corresponding to an alarm event can be constructed based on the relevant alarm information of the alarm event. The alarm evidence package includes alarm rule evidence, current indicator evidence, abnormal shape evidence, historical alarm evidence, alarm semantic evidence, and associated context evidence.
[0069] Among them, alarm rule evidence refers to the specific rule information that triggers the current alarm event, used to record the alarm rule identifier, rule name, rule expression, trigger threshold, alarm level, alarm object, and rule version; current indicator evidence refers to the real-time or near-real-time data of system or business indicators directly or indirectly related to the alarm at the time of the alarm event or for a period of time before the event, used to record the time series, anomaly start time, duration, and anomaly magnitude of the alarm indicator within the observation window; and anomaly shape evidence refers to the specific change pattern or trend presented by the time series data of the indicator related to the alarm, used to record the identification results of the indicator as a peak, step rise, step fall, continuous plateau, slow drift, periodic fluctuation, continuous oscillation, or data missing shape. Historical alarm evidence refers to alarm records that occurred in the past and are similar to or related to the current alarm event. It records the historical trigger count, duration, automatic recovery rate, manual confirmation results, root causes, and handling results for the same or similar rules. Alarm semantic evidence refers to structured or unstructured semantic information obtained after natural language processing of the text description of the alarm event. It records the alarm objects and symptoms identified from the alarm name, indicator name, tag, service description, business dashboard description, and alarm description. Related contextual evidence refers to non-indicator and non-rule-based auxiliary information related to the alarm event. It records related services, interfaces, business dashboards, other indicators that are simultaneously abnormal, and recent releases, configurations, or experimental changes. The above evidence is associated through the same alarm event identifier, object identifier, and observation time window, forming the common input for the first and second thinking chains.
[0070] In this example implementation, the steps for obtaining evidence of abnormal shapes may include: performing time alignment and standardization on the alarm indicator time series, and inputting the processed alarm indicator time series into a pattern matcher to obtain the short-term mutation features and long-term trend features of the alarm indicator time series; and obtaining the abnormal shape category and corresponding confidence level of the alarm indicator time series based on the short-term mutation features and long-term trend features to obtain evidence of abnormal shapes.
[0071] Relevant alarm information may include alarm indicator time series, as well as alarm rules related to the alarm event, historical alarm records, system call topology, link dashboard, manually maintained business indicator dependency graphs, and operational observation data. The alarm indicator time series refers to a series of values recorded in chronological order for system or business indicators within a specific time period.
[0072] During the abnormal shape recognition process, the system performs time alignment, missing value handling, and standardization on the alarm indicator time series. The processed time series is then input into a PatternMatcher based on a one-dimensional convolutional neural network. PatternMatcher extracts short-term abrupt changes and long-term trend features through one-dimensional convolution with different receptive fields, outputting the abnormal shape category and its confidence level. Short-term abrupt changes refer to drastic and rapid changes in the time series within a short time window, such as spikes, sudden drops, and steps, typically reflecting instantaneous or sudden anomalies. Long-term trend features refer to persistent and directional changes in the time series within a longer time window, such as continuous increases, continuous decreases, and periodic fluctuations, typically reflecting slow deterioration of system performance or periodic problems.
[0073] In this example implementation, the abnormal shape identification result is not used as the sole noise judgment conclusion, but rather to compare the degree of matching between the current shape and the historical noise alarm shapes. For example, if the same rule has historically manifested as short-term spikes that automatically recover multiple times, the current alarm with the same shape has a higher noise tendency; for persistent plateaus or slow drifts that have not appeared historically, filtering is not based directly on existing noise cases.
[0074] Anomaly shape recognizers can employ one-dimensional convolutional neural networks, or they can use temporal convolutional networks, shape template matching, matrix profiles, dynamic temporal warping, change point detection, statistical rules, or other methods that can output anomaly shape categories or similarities. Different recognition methods can be used independently, or they can be combined in a voting, weighted, or cascaded manner.
[0075] In this example implementation, the step of obtaining alarm semantic evidence may include: inputting relevant alarm information into a large language model to obtain semantic recognition results, and obtaining alarm semantic evidence based on the semantic recognition results.
[0076] During alarm semantic recognition, the system inputs the alarm name, rule expression, indicator name, tag, service description, business dashboard description, and alarm description into a large language model. The large language model acts as a semantic intent recognizer, outputting structured results including alarm object type, alarm symptom type, service name, indicator name, dashboard identifier, business process, and suggested diagnostic domain. The system further validates these results using the indicator registry, service topology, and the mapping relationship between the business dashboard and indicators. When the semantic recognition result is inconsistent with the actual attribution of the indicator, the confidence of the corresponding diagnostic domain is reduced, and it is marked as a mixed or uncertain class, rather than directly determining the diagnostic path based on a single output of the language model.
[0077] Alarm semantic recognition can be achieved using a large language model, a small text classification model, a rule system, or a cascade of rules and models. The data used for metric attribution verification can come from the metric registry, service directory, configuration management database, business dashboard metadata, or manually maintained object mapping tables.
[0078] By constructing an alarm evidence package, when a system alarm occurs, multi-dimensional information related to the alarm event can be comprehensively and systematically collected and integrated. This includes not only the direct rules and real-time indicator data that trigger the alarm, but also the dynamic change patterns of the indicators, historical experience, semantic insights, and system environment context information. This integration of multi-source heterogeneous information greatly enhances the descriptive ability and diagnosability of alarm events, avoiding the bias or misjudgment that may result from a single information source. Therefore, subsequent diagnostic modules can reason and judge based on more sufficient and accurate evidence, significantly improving the accuracy and efficiency of root cause analysis of system alarms, reducing the time and cost of manual troubleshooting, and thus locating and resolving system faults more quickly. The alarm evidence package can also add or remove evidence fields according to actual data conditions, but at least fields that can identify the alarm event, the current abnormal state, historical triggering behavior, and the diagnostic object should be retained.
[0079] In this example implementation, as Figure 2 As shown, determining the diagnostic domain type corresponding to an alarm event based on the alarm evidence package can specifically include the following steps: Step S210. Input the alarm evidence packet into the first thinking link, calculate the noise score corresponding to the alarm event, and determine whether the alarm event triggers the protection condition based on the alarm evidence packet.
[0080] The first-thinking process is a processing mechanism used for the initial assessment of whether an alarm event is a noise event. Its function is to quickly analyze the input alarm evidence package to identify whether the alarm event is likely noise. Alarm events include both real faults requiring immediate attention and noise alarms caused by periodic fluctuations, short-term jitter, unreasonable rule configurations, data delays, or known automatically recoverable phenomena.
[0081] Noise score is an indicator that quantifies the likelihood of an alarm event being noise; for example, a higher value indicates a greater likelihood that the alarm event is noise. Protection conditions are a safety mechanism used to prevent critical alarm events from being misclassified as noise. When an alarm event triggers preset protection conditions, even if its noise score is high, it will not be classified as high-confidence noise, thus ensuring that important alarms can proceed to subsequent diagnostic processes.
[0082] In this example implementation, the noise score corresponding to the alarm event can be calculated based on the proportion of historical alarms that are identified as noise, the automatic recovery rate of historical alarms, and the abnormal shape category of the alarm indicator time series.
[0083] The first thinking process extracts alarm cases from historical records that are identical or similar to the current rule, and calculates a noise score by combining historical noise ratio, automatic recovery ratio, abnormal shape matching degree, periodic consistency, and cross-index anomaly evidence. One possible calculation method is:
[0084] in, This indicates the proportion of historical and rule-based alarms that were confirmed as noise. This indicates the percentage of historical alarms that have been automatically recovered. This indicates the current anomaly shape. When the noise score exceeds the threshold and no protection conditions exist, the current alarm is classified as high-confidence noise, and the rules used, window, historical cases, and anomaly shape are recorded before returning. Protection conditions include at least: high-level alarm, no historically observed shape, excessively long anomaly duration, multiple related indicators simultaneously exhibiting anomalies, a recent change in the rule or version, and insufficient historical samples. , and This indicates the corresponding weight.
[0085] Noise scoring in the first thinking link can be achieved using methods such as weighted summation, rule trees, classification models, or similar case voting. Historical noise ratio, auto-recovery ratio, shape matching degree, periodic consistency, and cross-indicator anomaly evidence can be selected from one or more of these based on data availability.
[0086] Step S220. If the noise score is greater than or equal to the noise threshold and the alarm event does not trigger the protection condition, then the alarm event is determined to be a high-confidence noise event.
[0087] The first consideration path filters alarm events only when the noise score reaches the threshold and no protection conditions exist; the second consideration path is entered when there is insufficient historical sample, conflicting evidence, high-level alarms, no historical pattern, or multiple indicators are abnormal simultaneously. This mechanism reduces duplicate diagnoses while reserving entry points for subsequent root cause analysis for high-impact or insufficient evidence alarms.
[0088] Protection conditions can include one or more of the following: high-level alarms, no historically observed shape, abnormal duration exceeding a set time, multiple related indicators simultaneously exhibiting abnormalities, recent changes in rules or versions, and insufficient historical samples. Protection conditions can serve as mandatory gating conditions outside of noise scoring, or as penalty items within the scoring process.
[0089] When the noise score reaches the threshold and there are no protection conditions, the system outputs a high-confidence noise judgment, records the historical cases, anomaly shapes, calculation parameters and rule versions used, outputs the noise judgment and its basis, and terminates the current root cause analysis.
[0090] Step S230. If the alarm event is not a high-confidence noise event, the alarm evidence packet is input into the second thinking link, and the diagnostic domain type corresponding to the alarm event is determined through the second thinking link.
[0091] For the remaining alarms, diagnostic domain assignment is performed through the second thinking link, outputting the alarm evidence package, diagnostic domain type, diagnostic starting object, and corresponding confidence information. If the subsequent root cause search object is mainly located in services, interfaces, host resources, networks, databases, or middleware, a system-level diagnostic task is formed; if the root cause search object is mainly located in business metrics, business processes, policies, experiments, or business configurations, a business-level diagnostic task is formed; if the alarm is associated with both system objects and business objects, a hybrid diagnostic task is formed; if the existing evidence is insufficient to determine a unique diagnostic domain, an uncertain diagnostic task is formed. System-level tasks enter the system domain for drill-down, business-level tasks enter the business domain for drill-down, and hybrid or uncertain tasks enter both diagnostic links simultaneously.
[0092] The first and second thinking links are a hierarchical processing mechanism based on the sequential connection of the same alarm evidence package. The first thinking link is only responsible for determining whether the current alarm meets the high-confidence noise condition, and does not undertake root cause localization; the subsequent root cause analysis is only terminated when the noise scoring threshold is met and protection conditions are not triggered (such as meeting historical sample size requirements). Alarms that do not meet the noise threshold, have insufficient historical evidence, conflicting evidence, or trigger other protection conditions are uniformly entered into the second thinking link. The second thinking link does not reconstruct the evidence package, but determines the drill-down scope by combining alarm semantics, indicator attribution, and system domain and business domain mapping, and generates an executable diagnostic task. Thus, while quickly processing recurring noise, it avoids equating "cannot be confirmed as noise" with "has been confirmed as a real fault".
[0093] The first and second thinking chains can be executed sequentially within the same process, or they can be executed separately by different services. For evidence conflicts, missing data, or high-risk alarms, noise scoring can be skipped and the process can directly proceed to the second thinking chain. The diagnostic domain can output a single category or multiple candidate categories with confidence levels, and one or more diagnostic chains can be initiated subsequently based on the confidence levels.
[0094] In this example implementation, to address the issue of invalid queries and inferences caused by directly entering full root cause analysis after an alarm is triggered, scattered alarm rules, current indicators, anomaly patterns, historical alarms, alarm semantics, and related contexts are organized into unified evidence. Without relying on a single indicator or a single language model judgment, high-confidence noise alarms that can be safely filtered are identified. The remaining alarms are then categorized into system-related, business-related, mixed, or uncertain categories, thereby reducing invalid link queries, indicator queries, and large language model inferences. Simultaneously, for situations with insufficient historical samples, conflicting evidence, high-level alarms, or multiple related indicators simultaneously anomaly, protective conditions are used to allow the alarm to continue into subsequent diagnostics, reducing the risk of quickly identifying and misfiltering real faults.
[0095] In step S120, a diagnostic task is performed based on the diagnostic link of the diagnostic domain type to determine the candidate root cause objects related to the alarm event in the diagnostic domain type.
[0096] A diagnostic link refers to a predefined path or process used to perform diagnostic tasks under a specific diagnostic domain type. A candidate root cause object refers to a potentially faulty entity identified during the execution of a diagnostic task that may be related to an alarm event; such entities include services, interfaces, databases, business metrics, or configuration items.
[0097] In this example implementation, diagnostic tasks may include system-type diagnostic tasks, business-type diagnostic tasks, hybrid diagnostic tasks, and undetermined diagnostic tasks.
[0098] From the perspective of root cause search space, alarms in a production environment can be mainly divided into system domains and business domains. System domain anomalies typically propagate along service call topologies, interface dependencies, and resource ownership relationships, with root cause objects including services, interfaces, host resources, networks, databases, or middleware. Business domain anomalies typically propagate along business processes and business metric dependencies, with root cause objects including upstream business metrics, business processes, policies, experiments, or business configurations. System domains and business domains are not completely isolated: system failures may further cause a decline in business metrics, and changes in business configurations may also create similar symptoms to system alarms. Therefore, root cause analysis systems need to select appropriate search spaces based on alarm evidence to avoid performing full analysis in irrelevant search spaces, and also need to verify the impact relationship between the two domains in mixed scenarios.
[0099] System-level alarm drill-down and business-level alarm drill-down constitute a two-branch search mechanism controlled by the diagnostic domain type. Both links take the alarm evidence package, diagnostic domain type, and diagnostic starting object obtained in the previous step as input, and form a set of candidate root causes through layer-by-layer scoring and path pruning, but the dependencies, abnormal evidence, and candidate objects used by the two are different.
[0100] In this example implementation, such as Figure 3 As shown, the diagnostic task is performed based on the diagnostic domain type to identify candidate root cause objects related to alarm events within the diagnostic domain type. This can specifically include the following steps: Step S310. If the diagnostic task is a system-level diagnostic task, then the diagnostic task is executed based on the system domain diagnostic link to obtain candidate root cause objects of the system domain type related to the alarm event.
[0101] A system domain diagnostic pipeline refers to a diagnostic process or toolchain specifically designed for performing system-level diagnostic tasks. Its purpose is to efficiently identify root causes at the system level. For system-level diagnostic tasks, the interface call topology graph can be queried, and system drill-down scores can be calculated starting from the alarm interface, followed by recursive pruning to locate candidate root cause interfaces, services, or system resources. An interface call topology graph is a graphical structure representing the call relationships between various services or modules in a system. Nodes in this topology graph can represent services or interfaces, and edges can represent call relationships.
[0102] In this example implementation, such as Figure 4 As shown, diagnostic tasks are performed based on the system domain diagnostic link to obtain candidate root cause objects of system domain types related to alarm events. Specifically, this may include the following steps: Step S410. Starting from the interface that triggered the alarm event, calculate the fault propagation score between the current interface and its downstream interfaces in sequence based on the interface call topology graph.
[0103] System alarm drill-down starts from the interface or service that triggered the alarm and queries downstream interfaces and resource dependencies layer by layer. Let the current interface be... Its downstream interface is The fault propagation score between the two can be calculated based on the consistency of failure rate changes and the consistency of latency changes:
[0104] in, This indicates the degree of consistency in failure rate changes between upstream and downstream interfaces within the allowable time lag range. The delay score is calculated based on the degree of anomaly of downstream delay relative to the historical baseline, the contribution of downstream traffic to upstream delay, and the consistency of delay changes between upstream and downstream.
[0105] Step S420. If the fault propagation score is less than the system anomaly score threshold, then exclude other downstream interfaces on the interface call chain where the downstream interface is located.
[0106] When the calculated fault propagation score is lower than the preset system anomaly score threshold, it indicates that the probability of a fault propagating from the current interface to the downstream interface is extremely low or its impact is negligible, insufficient to constitute a root cause. Therefore, to improve diagnostic efficiency and accuracy, the downstream interface and its subsequent call chains will be excluded from further analysis, avoiding ineffective exploration of irrelevant paths.
[0107] Step S430. If the fault propagation score is greater than or equal to the anomaly score threshold, the downstream interface is retained and used as the current interface to continue calculating the fault propagation score with subsequent downstream interfaces.
[0108] When the fault propagation score reaches or exceeds the system anomaly score threshold, it means that the downstream interface may have been affected by an upstream fault, or it may itself be a critical node in the fault propagation path. At this point, the downstream interface is considered part of a potential fault propagation path and is retained. Simultaneously, to continue tracing the fault propagation chain, this downstream interface is designated as the new current interface. The diagnostic process will use this as a starting point to continue calculating the fault propagation score for its own downstream interfaces, thereby achieving deep recursive exploration of the fault propagation path.
[0109] Step S440. Based on all reserved interfaces, obtain candidate root cause objects of system domain types related to alarm events.
[0110] For retained interfaces or services, which are considered potential points of failure related to alarm events, their host resources, networks, databases, middleware, and recent release changes can be further correlated to form system domain candidate root cause objects and evidence.
[0111] In this example implementation, the service relationships used for system domain drill-down can come from call chains, service meshes, static configurations, resource ownership, or a combination thereof. Fault propagation scores can use one or more of failure rate, latency, traffic, error logs, resource anomalies, and change correlations; alternatively, the maximum of the failure rate score and latency score can be replaced with a weighted sum, hierarchical rules, or a learned fusion result. Time series consistency can employ Pearson correlation, Spearman correlation, cross-correlation, dynamic time warping, or other time series similarity metrics.
[0112] Step S320. If the diagnostic task is a business-type diagnostic task, then the diagnostic task is executed based on the business domain diagnostic link to obtain candidate root cause objects of the business domain type related to the alarm event.
[0113] A business domain diagnostic pipeline refers to a diagnostic process or toolchain specifically designed for performing business-related diagnostic tasks. Its purpose is to efficiently identify root causes at the business level. For business-related tasks, the pipeline dashboard and manually maintained business metric dependency graphs can be queried. Starting from the alarm business metric, upstream metrics can be traced backward to calculate the business drill-down score and recursively prune to locate candidate root cause business metrics. These metrics can then be mapped to the corresponding business processes, strategies, experiments, or configurations.
[0114] In this example implementation, the two links can adopt a unified candidate result structure, which includes at least the candidate object, object type, drill-down path, candidate score, anomaly time window, and corresponding evidence. For mixed or uncertain alarms, the two links execute separately and output candidates, and cross-domain causal relationships are verified using further obtained evidence.
[0115] In this example implementation, such as Figure 5 As shown, diagnostic tasks are performed based on the business domain diagnostic link to obtain candidate root cause objects of the business domain type related to the alarm event. Specifically, this may include the following steps: Step S510. Starting from the business metric that triggered the alarm event, calculate the business anomaly score between the current business metric and the candidate upstream metric sequentially based on the business metric dependency graph.
[0116] Drill-down of business-related alarms utilizes the business metric dependency graph in the overall data flow dashboard. This graph is maintained by business or operations personnel. Nodes represent business metrics such as impressions, clicks, conversion rates, order volume, payment volume, or active users. Directed edges represent manually confirmed upstream and downstream business relationships. Each node records its associated dashboard, statistical scope, time granularity, and available dimensions such as region, version, and experiment group, and can be linked to relevant services, interfaces, policies, or configuration items. The business metric dependency graph can be maintained entirely by business or operations personnel, or candidate edges can be generated based on data lineage, business process configuration, or historical statistical relationships, and then confirmed by personnel.
[0117] Preferably, a directed edge can be defined as a path from an upstream indicator to a downstream indicator affected by it; the system starts from the business indicator that triggered the alarm and traces back to candidate upstream indicators along the reverse direction of the directed edge. Let the candidate upstream indicators be... Compared with current indicators Calculate the business drill-down score:
[0118] in, Indicators The degree of abnormality of the year-on-year and month-on-month changes relative to their historical normal fluctuation range. Indicators Did the anomaly precede the indicator? The abnormality This indicates whether the direction of change for both aligns with the business dependency relationship maintained manually. , and This indicates the corresponding weight. Before calculation, the statistical scope, time granularity, and comparison dimensions of the two indicators are aligned; if the scope cannot be aligned, the indicator is not used to directly form a root cause conclusion.
[0119] Step S520. If the business anomaly score is less than the business anomaly score threshold, then exclude subsequent business metrics on the business metric dependency path where the candidate upstream metric is located.
[0120] When the business anomaly score is less than the business anomaly score threshold, subsequent business metrics on the business metric dependency path of the candidate upstream metric are excluded. This means that the upstream metric is unlikely to be the direct root cause of the current alarm, and therefore, higher-level metrics on the entire dependency path are unlikely to affect the current alarm through this path, thus they can be excluded to prune the search space. In the business metric dependency graph, once a candidate upstream metric is excluded, all other metrics on all paths traced upwards from that metric are marked as excluded and will no longer be included in the subsequent anomaly score calculation.
[0121] Step S530. If the business anomaly score is greater than or equal to the business anomaly score threshold, then the candidate upstream indicator is retained and used as the current business indicator, and the business anomaly score between it and the subsequent upstream indicator is calculated.
[0122] If the business anomaly score is greater than or equal to the business anomaly score threshold, the candidate upstream metric is retained and used as the current business metric. The business anomaly score between this candidate upstream metric and subsequent upstream metrics is then calculated. This indicates that the upstream metric may be the root cause, or that its upstream metric may be the root cause. Therefore, it is necessary to use this upstream metric as a new starting point to continue tracing upstream to find a deeper root cause. This is a depth-first or breadth-first search strategy that iterates on the business metric dependency graph, gradually exploring upstream metrics until no upstream metric exists or all upstream metrics are excluded.
[0123] Step S540. Based on all retained candidate upstream metrics, obtain candidate root cause objects for the business domain type related to the alarm event.
[0124] Ultimately, all the remaining candidate upstream metrics were identified as business metrics that were highly correlated with alarm events after the above iterative screening. These metrics are potential root causes related to alarm events in the business domain and require further analysis to determine the final root cause.
[0125] In this example implementation, business drill-down can select one or more of the following for scoring: year-on-year, month-on-month, time sequence, direction of change, scope of impact, and degree of contribution. The indicator comparison period can be configured by hour, day, week, or a business-defined period; region, version, channel, experimental group, or user type can be used as dimension alignment conditions. In some scenarios, business-related diagnostics can also reuse the system domain diagnostic link. For example, when the number of viewers in a live broadcast room decreases, it may be due to a business-related issue, a problem with an upstream model service, or a problem with the push algorithm. Therefore, the system domain diagnostic link can also be used to obtain candidate root cause objects of the system domain type.
[0126] In this example implementation, if there are multiple candidate upstream indicators for the current business indicator, and the number of candidate upstream indicators is greater than or equal to the indicator number threshold, then the candidate upstream indicators are sorted according to the business anomaly score, and a specified number of candidate upstream indicators are retained according to the sorting result.
[0127] In the business domain diagnostic pipeline, when tracing upstream from the business metric that triggered the alarm, it may be found that a business metric depends on multiple upstream metrics. If multiple of these upstream metrics are initially identified as candidate root causes related to the alarm event, and their number reaches a preset threshold, it indicates that a more refined screening strategy needs to be initiated. For example, this threshold can be set based on the system's complexity, diagnostic resource limitations, or historical diagnostic experience to avoid processing too many potential root causes.
[0128] The business anomaly score reflects the likelihood or intensity of anomaly propagation between candidate upstream metrics and current business metrics. By sorting these scores in descending or ascending order, the correlation or degree of anomaly between each candidate upstream metric and the alarm event can be quantified. From the sorted candidate upstream metrics, a specified number of candidate upstream metrics can be retained. This retention mechanism ensures that in subsequent diagnostic subtasks, only those candidate root causes with the highest diagnostic value are considered, thereby improving the efficiency and accuracy of diagnosis.
[0129] Step S330. If the diagnostic task is a mixed diagnostic task or an undetermined diagnostic task, then the diagnostic task is executed based on the system domain diagnostic link and the business domain diagnostic link respectively to obtain candidate root cause objects of system domain type and business domain type related to the alarm event.
[0130] Hybrid diagnostic tasks refer to diagnostic tasks that involve both system-level and business-level faults. Undetermined diagnostic tasks refer to diagnostic tasks that cannot be clearly classified as system-level, business-level, or hybrid-level at the initial assessment. Their role is to provide a fallback mechanism to ensure that all alarms can be processed.
[0131] For mixed or uncertain alarms, diagnostic tasks can be performed simultaneously or separately based on the system domain diagnostic link and the business domain diagnostic link, and time window, region, version, and object mapping should be aligned according to unified fields. Finally, all retained interfaces, services, resources, business metrics, business processes, policies, or configurations should be compiled and output as candidate root causes, drill-down paths, candidate scores, and related evidence for subsequent verification.
[0132] If there is a maintained mapping relationship between the system's candidate services and the business candidate metrics, then this relationship is attached as a cross-domain verification clue. However, the root cause cannot be determined solely based on the mapping relationship. Further judgment is needed to determine whether the system anomaly can explain the changes in business metrics, or whether changes in business strategies, configurations, and experiments can explain the current anomaly.
[0133] For mixed or uncertain alarms, two diagnostic links can be executed in parallel, or one can be executed first based on the confidence level of the diagnostic domain, and the other can be started if the evidence is insufficient. Dual-domain candidates can be initially aligned during dual-link diagnosis, or they can be aligned uniformly by the main agent later, but the final root cause conclusion should be based on actual observational evidence.
[0134] In this example implementation, to address the issue of mixed search spaces for system-related and business-related anomalies, a diagnostic domain is determined based on alarm evidence. System-related alarms drill down along service call topology, interface dependencies, and resource ownership relationships, while business-related alarms drill down along manually maintained business metric dependency graphs. Candidate root causes and paths for both domains are generated in mixed or uncertain scenarios. This approach ensures that the relationship types upon which the candidate root cause search is based match the alarm objects, and narrows the original search space in a large-scale microservice system to a candidate set available for further verification. This business domain drill-down is set up in parallel with the system domain drill-down on the service call topology, enabling root cause analysis to locate not only service, interface, and resource failures, but also anomalies in business metrics, business processes, strategies, experiments, or configurations.
[0135] Continue to refer to Figure 1 As shown, in step S130, a corresponding diagnostic subtask is generated according to the diagnostic domain type in which the candidate root cause object is located, and diagnostic evidence of the candidate root cause object is obtained according to the diagnostic subtask.
[0136] In this example implementation, the diagnostic subtask is a diagnostic task generated for a specific candidate root cause object in order to obtain more detailed diagnostic evidence. Diagnostic evidence refers to the specific data or information obtained by performing the diagnostic subtask, which is used to verify or exclude candidate root cause objects.
[0137] In this example implementation, a master agent, a system diagnostic sub-agent, and a business diagnostic sub-agent can be configured. The master agent maintains the global state of alarm evidence packages, dual-domain drill-down results, verified candidates, and the current inference round. It generates diagnostic sub-tasks based on candidate root causes, selects applicable skills, and summarizes supporting evidence, opposing evidence, and evidence to be supplemented. The system diagnostic sub-agent verifies system domain candidates such as interfaces, services, host resources, networks, databases, or middleware. The business diagnostic sub-agent verifies business domain candidates such as business metrics, business processes, policies, experiments, or configurations. For multiple candidates of the same type, multiple tasks can be executed in batches or in parallel by the same type of sub-agent, without the need to set up a separate agent for each fault type. Based on narrowing the search space through the above steps, multiple agents can selectively obtain actual operational evidence, verify candidate root causes, and generate fault reports.
[0138] In this example implementation, the main intelligent agent can determine the applicable diagnostic tool usage protocol based on the alarm evidence package and the diagnostic domain type where the candidate root cause object is located, and generate the corresponding diagnostic subtask according to the diagnostic tool usage protocol.
[0139] The diagnostic tool usage protocol specifies which tools should be selected for a given type of diagnostic task, in what order they should be invoked, how to evaluate tool results, and when to end the current task. This could be a reusable workflow package (Skill) for a specific type of diagnostic task. The diagnostic tool usage protocol should at least record the applicable alarm types, candidate objects, triggering conditions, required data, investigation steps, judgment rules, allowed MCP Tools (Model Context Protocol Tools) and parameter mappings, memory categories and filtering dimensions to be recalled, and the output mode and termination conditions of sub-agents. For example, a system resource diagnostic Skill could specify first querying resource utilization and load, then querying process and container limits and recent releases; a business conversion diagnostic Skill could specify first querying year-on-year and month-on-month comparisons of alarm metrics, then checking upstream metrics along a manually maintained metric dependency graph, and performing split verification according to region, version, or experimental group.
[0140] The main agent receives a set of candidate root causes, retrieves historical facts and experiences that match the current service, business dashboard, alarm rules, fault type and skill, selects one or more skills according to the candidate type, and assembles the subtask context according to the selected skill to generate a system-side or business-side diagnostic subtask.
[0141] The diagnostic subtask includes at least the current candidate and its drill-down path, alarm evidence directly related to the candidate, the selected skill, the allowed MCP tools, facts or experience recalled in Module 4, and a unified output pattern. The sub-agent returns candidate objects, supporting evidence, opposing evidence, tool call records, evidence sufficiency, and suggested follow-up checks according to the unified pattern, enabling the main agent to compare and merge the results of different subtasks.
[0142] In this example implementation, the sub-agent corresponding to the diagnostic domain type can obtain the diagnostic tool used to perform the diagnostic sub-task according to the diagnostic tool usage protocol in the diagnostic sub-task; and call the diagnostic tool to perform the diagnostic sub-task according to the steps specified in the diagnostic tool usage protocol to obtain diagnostic evidence of the candidate root cause object.
[0143] Sub-agents only acquire the tools permitted by the diagnostic tool usage agreement, alarm evidence directly related to the current candidate, and relevant recall memories; they do not load irrelevant dashboards, metrics, tools, or historical dialogues. Tools are used to encapsulate atomic queries or analysis operations and can be exposed through MCP. Structured context management separates executable data acquisition capabilities from the domain diagnostic process, enabling a small number of functional sub-agents to handle multiple fault types and limiting the context scope of a single diagnostic task.
[0144] After obtaining the Tool permitted by the diagnostic tool usage agreement, the sub-agent calls the MCP Tool according to the steps specified in the Skill to obtain evidence such as indicators, logs, call chains, business dashboards, and change records, and returns diagnostic evidence for candidate root cause objects in a unified format, including supporting evidence, opposing evidence, and evidence to be supplemented.
[0145] In this example implementation, the Tool is exposed to the agent through the Model Context Protocol (MCP). Each MCP Tool includes at least a tool name, function description, input parameter mode, output field mode, and exception return format, and can record calling permissions, timeout, tool version, read / write attributes, and applicable objects. The input parameter mode is used to constrain parameters such as service name, metric name, time window, dashboard identifier, and query dimension; the output field mode is used to enable different agents to parse the tool results in a unified format. The MCP Tool can include one or more of the following: service topology query tool, metric query tool, log retrieval tool, resource diagnostic tool, database diagnostic tool, link dashboard query tool, year-on-year and month-on-month query tool, dimension splitting tool, release change query tool, and memory retrieval tool. The Tool is responsible for performing defined data acquisition or analysis operations and returning results, but does not generate final root cause conclusions on its own.
[0146] In this example implementation, to address the issues of unstable tool selection, incomplete evidence utilization, and false recall of historical information in large language models within long contexts, a small number of master-slave agents complete evidence investigations in different diagnostic domains. This separates the model context protocol tools used for data acquisition from the skills used to define the diagnostic process, and assembles structured sub-task contexts according to the current candidate. The master-slave architecture avoids a single agent processing all metrics, logs, and business data simultaneously by separating global task orchestration from system domain and business domain evidence investigation. Based on structured context management using tools and skills, it provides sub-agents only with the evidence, tools, processes, and memories required to complete the verification of the current candidate, thereby reducing context length and interference from irrelevant information.
[0147] In step S140, the target root cause object of the system alarm is obtained based on the diagnostic evidence of the candidate root cause object, and the root cause analysis result of the system alarm is obtained based on the target root cause object.
[0148] In this example implementation, the target root cause object refers to the entity that, after multiple rounds of diagnosis and evidence verification, is ultimately identified as the root cause of the alarm event. This object is one of the final outputs of the root cause analysis process. The root cause analysis results are a summary and presentation of the target root cause object and its related information, such as the final generated fault report.
[0149] In this example implementation, the main agent can delete candidates that have been refuted by evidence and initiate a new round of supplementary tasks for candidates with insufficient or conflicting evidence. When there are candidates supported by sufficient evidence and the main competing candidates have been eliminated, the necessary checks of the corresponding Skill have been completed, or the preset maximum number of inference rounds has been reached, the main agent ends the inference and outputs a fault report containing the root cause object, fault type, propagation or impact process, supporting evidence, eliminated candidates, and recommended remedial measures.
[0150] The main agent does not directly use the natural language judgments of the sub-agents as the final conclusion. Instead, it selects skills, restricts the callable MCP tools, and merges structured supporting evidence, opposing evidence, and supplementary evidence. Candidate search and final root cause confirmation are thus separated, and cross-domain relationships of hybrid alarms require further observational data verification. If a system-side anomaly can explain changes in business metrics in terms of time, scope of impact, and service-business metric mapping, then the system object is considered a priority root cause candidate, and the corresponding business anomaly is considered the impact result. If the system side lacks supporting evidence, but changes in business metrics, policies, experiments, or configurations provide direct evidence, then business domain candidates are retained. When evidence is insufficient or conflicting, the main agent generates the next round of supplementary tasks.
[0151] In this example implementation, a multi-layer memory system can also be constructed, which includes a working memory layer, a fact memory layer, and an experience memory layer. The working memory layer is used to store the state information during the diagnosis process of the alarm event, the fact memory layer is used to store the confirmed fact information during the diagnosis process of the alarm event, and the experience memory layer is used to store the diagnostic experience during the diagnosis process of the alarm event.
[0152] Specifically, working memory stores the short-term state of the current alarm diagnosis process, including alarm evidence packages, dual-domain drill-down paths, candidate root causes, loaded skills, MCP Tool calls and return results, and multi-round agent task states, and is continuously updated during the current diagnosis process. Fact memory stores confirmed facts related to specific services, alarm rules, business dashboards, or fault events, including alarm phenomena, root cause objects, fault types, key evidence, confirmation sources, and handling results. Experience memory stores transferable diagnostic experience extracted from one or more confirmed cases, including relationships between different anomalies, the order of business indicator investigation, applicable conditions for skills, and how tools are used in specific scenarios.
[0153] Each long-term memory entry should include at least the memory identifier, memory content, memory category, source or confirmation status, keywords, vector representation, associated services, associated business dashboards, associated metrics, associated skills, fault type, creation time, update time, and recall count. By recording the source and confirmation status, it is possible to distinguish between confirmed facts, pending conclusions, and general experience, avoiding the direct reuse of intermediate inferences from the agent as historical facts.
[0154] In this example implementation, the three layers of memory can be stored in a vector database, a graph database, a relational database, a document database, or a combination thereof. Working memory can be deleted, archived, or summarized after the diagnosis; factual memory and experiential memory can be stored in separate databases or distinguished in the same storage by a memory category field.
[0155] In this example implementation, the multi-layered memory system may also include a memory relationship graph, which is a data structure used to represent the relationships between different memory nodes in a multi-layered memory system. The memory relationship graph includes nodes such as services, interfaces, business dashboards, business metrics, alarm rules, skills, fault types, and memory entries. Each node is connected through preset relationships such as belonging to a certain service, located in a certain business dashboard, applicable to a certain skill, corresponding to a certain fault type, or verified by a certain case. The memory relationship graph allows the memory system to introduce graph relationship retrieval in addition to keyword retrieval and vector retrieval.
[0156] In this example implementation, such as Figure 6As shown, retrieving memory information from a multi-layered memory system can specifically include the following steps: Step S610. When recalling memory information from a multi-layered memory system, determine the candidate memory nodes adjacent to the recall memory node corresponding to the current recall task from the memory relationship graph.
[0157] Candidate memory nodes refer to memory nodes that are directly or indirectly adjacent to the recall memory nodes in the memory relationship graph. These nodes may contain potentially useful information that is related to the initial recall information.
[0158] When performing a recall, the memory system can first filter based on the service name, business dashboard identifier, skill name, or access scope. Then, it uses BM25 (Best Matching 25, a text relevance ranking algorithm based on term frequency and inverse document frequency) to calculate the lexical relevance between the query and the memory keywords, uses vector similarity to calculate the semantic relevance between the query and the memory content, and uses the current service, business indicators, alarm rules, or fault type as anchors to expand adjacent nodes in the memory relationship graph.
[0159] Step S620. Determine the graph relational relevance between candidate memory nodes and the current recall task, and select enhanced memory nodes from the candidate memory nodes based on the graph relational relevance.
[0160] Graph relation relevance is an indicator that measures the degree of association between candidate memory nodes and the current recall task. Enhanced memory nodes are memory nodes selected from candidate memory nodes that have a high graph relation relevance to the current recall task.
[0161] For the graph relationship relevance between candidate memory nodes and the current retrieval task, one possible scoring method is as follows:
[0162] in, Indicates keyword relevance. Represents the semantic relevance of vectors. This indicates the graph relationship relevance between the query anchor and the memory entry. Indicates the time freshness of memory. , and This indicates the corresponding weight.
[0163] Step S630. Return the memory information from the recalled memory node and the enhanced memory node together.
[0164] Finally, the memory information from both the recalled and enhanced memory nodes can be returned for subsequent diagnostic analysis. Returning the memory information can aggregate the raw text, structured data, or links to external resources contained in the recalled and enhanced memory nodes and output them in a unified format.
[0165] Hybrid recall can employ two or more of the following: keywords, vectors, graph relationships, and time freshness. Keyword retrieval can use BM25 or other inverted index algorithms; semantic retrieval can use vector cosine similarity or other distance metrics; graph retrieval can use neighborhood expansion, path matching, graph embedding, or predefined relationship filtering. When retrieving factual memories, priority can be given to services, business dashboards, rule versions, confirmation status, and time freshness; when retrieving experience memories, priority can be given to metrics, fault types, skills, and graph relationships. The main agent performs global recall using a more complete alarm context, while sub-agents perform local recall using the current candidates, selected skills, and the latest tool results.
[0166] In this example implementation, after obtaining the root cause analysis results of the system alarm, the current memory information of this diagnosis can be obtained from the multi-layer memory system, and similar memory information similar to the current memory information can be obtained from the historical memory information; the current memory information and similar memory information are matched, and the memory relationship graph is updated according to the matching results.
[0167] Once the memory system successfully obtains the root cause analysis results of a system alarm, it proactively extracts all current memory information relevant to the diagnosis from the multi-layered memory system. This information covers the entire process from the alarm occurrence to the root cause determination. Simultaneously, the memory system intelligently retrieves highly similar memory information from a vast amount of historical memory data. Subsequently, the memory system conducts in-depth matching analysis between the current memory information and the retrieved similar memory information, aiming to discover their commonalities, differences, and potential association patterns. Based on the results of this matching analysis, the memory system dynamically updates the memory relationship graph.
[0168] Dynamic memory updates are divided into state updates during the diagnosis process and long-term memory accumulation after the diagnosis. During the diagnosis process, triage results, drill-down paths, tool calls, and candidate verification states are continuously written into working memory to maintain consistency across multiple rounds of diagnosis. After the diagnosis, the main agent extracts candidate facts, valid tool calls, valid skill steps, reusable experiences, and candidate relationships refuted by evidence from working memory based on the fault report and its confirmation results.
[0169] For each candidate long-term memory, the memory system first recalls existing memories with similar content and associated objects. If no similar memory exists, a new entry is created; if an existing entry is incomplete, it is supplemented or merged; when new evidence conflicts with existing memories, their respective sources are retained and the conflict relationship is recorded, awaiting manual or reliable confirmation, without directly overwriting the original content; when services, alarm rules, business dashboards, or skills change, the corresponding versions, associations, and validity status are updated; when storage quotas are exceeded, long-term unused entries can be cleaned up based on update time, recall count, and validity status. Only conclusions confirmed by fault tickets, SREs (Site Reliability Engineers), or other preset reliable sources are written into the fact memory; unconfirmed intermediate inferences are retained in working memory or saved in a pending confirmation state, and are not used as confirmed facts in subsequent reasoning.
[0170] Memory updates can be performed after each diagnostic or periodically by a batch task. Sources of confirmation of long-term facts can include fault tickets, manual verification by SREs, automated recovery results, or other pre-set reliable results.
[0171] Specifically, when alarm diagnosis begins, the memory system creates working memory for the current alarm and continuously receives triage, drill-down, and tool call results written by modules one through three. The main agent or sub-agent initiates memory queries based on the current service, business dashboard, Skill, candidate objects, and fault phenomena. The memory system performs dimension filtering, BM25 retrieval, vector retrieval, and graph relationship expansion, and returns relevant memories after fusion and sorting. The recall results are injected into the global context of the main agent or the subtask context of the corresponding Skill. After diagnosis is completed and confirmed, the system extracts candidate fact memories and experience memories from the working memory. It determines whether to create, supplement, merge, or mark conflicts through similar memory matching and updates the memory relationship graph synchronously.
[0172] In this example implementation, the memory system serves as a supporting module for the entire diagnostic process. It stores short-term context from each diagnostic step, confirmed historical fault facts, and reusable diagnostic experience across cases. In subsequent alarms, it performs recall based on service, business dashboard, skill, metric, and fault type. Through a hybrid recall mechanism combining hierarchical memory and graph relation constraints, only historical facts or experiences matching the service, business dashboard, alarm rules, metric, fault type, and skill are provided to the current task. This allows the main agent and sub-agents to reuse historical knowledge while reducing interference from cross-service, cross-business, and outdated memories.
[0173] like Figure 7The diagram shown is a flowchart illustrating the root cause analysis method for system alarms in a specific embodiment of this disclosure. It serves as an example of the steps described above in this exemplary embodiment. The specific steps of the flowchart are as follows: Step S710. Construct alarm evidence package and assign it to the second thinking diagnostic domain.
[0174] First, input the alarm event, along with the alarm rules, alarm indicator time series, historical alarm records, system call topology, link dashboard, manually maintained business indicator dependency graph, and operational observation data related to the alarm event.
[0175] Construct alarm evidence packages around alarm events, identify abnormal shapes of alarm indicators and alarm semantics; determine whether the current alarm is high-confidence noise through the first thinking link, output noise for alarms that meet the noise filtering conditions and end the current root cause analysis, and generate system-class, business-class, mixed-class or uncertain-class diagnostic tasks for the remaining alarms through the second thinking link.
[0176] Step S720. Drill down into the system domain or business domain.
[0177] For system-related diagnostic tasks, drill down along the service call topology, interface dependencies, and resource ownership relationships; for business-related diagnostic tasks, drill down along the manually maintained business indicator dependency graph; and for mixed or uncertain diagnostic tasks, execute two diagnostic links respectively.
[0178] Step S730. Validation of candidate root causes.
[0179] The main agent selects the appropriate Skill based on the object type of the candidate root cause, recalls factual and experiential memories related to the current candidate, and assembles the candidate object, drill-down path, alarm evidence, Skill, allowed MCP Tool, and recalled memories into a subtask context. The system diagnostic sub-agent or business diagnostic sub-agent calls the MCP Tool according to the Skill to obtain actual operational evidence. The main agent summarizes supporting evidence, opposing evidence, and evidence to be supplemented, and determines the root cause after one or more rounds of verification.
[0180] Finally, the output for high-confidence noise alarms includes noise determination and the basis for determination; for alarms that enter root cause analysis, the output includes the root cause object, fault type, propagation or impact process, supporting evidence, ruled-out candidates, and recommended remedial measures.
[0181] Step S740. Hierarchical memory management.
[0182] When alarm diagnosis begins, working memory is created. During the execution of steps S710 to S730, the diagnostic status is continuously written and fact memory and experience memory are recalled as needed. After the fault report is confirmed, the confirmed fault facts and reusable diagnostic experience are extracted from the working memory, and fact memory, experience memory and their memory relationship diagram are created or updated.
[0183] Step S740 is not an independent serial step that is executed only after step S730. Instead, it provides continuous state recording and historical knowledge retrieval for alarm triage, dual-domain drilling down, and multi-agent collaborative reasoning, and completes long-term memory update after the diagnosis is completed.
[0184] Based on the above process, after an alarm is triggered, alarm evidence organization and triage, system domain or business domain candidate drill-down, and multi-agent verification based on actual observation evidence can be completed sequentially. The current state is saved and confirmed historical knowledge is reused through hierarchical memory throughout the diagnostic process. Finally, the root cause object, fault type, propagation or impact process and corresponding diagnostic basis are output.
[0185] like Figure 8 The diagram shown is a schematic diagram of a multi-view alarm evidence package and a fast second thinking link in a specific embodiment of this disclosure. The specific content of the schematic diagram is as follows: The multi-view alarm evidence package is a structured data object formed around an alarm triggering event. Specifically: Alarm rule evidence records the alarm rule identifier, rule name, rule expression, trigger threshold, alarm level, alarm object, and rule version; Current metric evidence records the time series, anomaly start time, duration, and anomaly magnitude of the alarm metric within the observation window; Anomaly shape evidence records the identification results of the metric as having shapes such as spikes, step rises, step falls, continuous plateaus, slow drifts, periodic fluctuations, continuous oscillations, or missing data; Historical alarm evidence records the historical trigger count, historical duration, automatic recovery ratio, manual confirmation results, historical root causes, and historical handling results for the same or similar rules; Alarm semantic evidence records the alarm object and symptoms identified from the alarm name, metric name, tag, service description, business dashboard description, and alarm description; and Related context evidence records related services, interfaces, business dashboards, other metrics that occurred simultaneously, and recent releases, configurations, or experimental changes. The above evidence is linked through the same alarm event identifier, object identifier, and observation time window, forming a common input for the first and second thinking links.
[0186] The first and second thinking links are a hierarchical processing mechanism based on the sequential connection of the same alarm evidence package. The first thinking link is only responsible for determining whether the current alarm meets the high-confidence noise condition, and does not undertake root cause localization; the subsequent root cause analysis is only terminated when the noise scoring threshold, historical sample size requirements, and protection conditions are not triggered simultaneously. Alarms that do not meet the noise threshold, have insufficient historical evidence, conflicting evidence, or trigger protection conditions are uniformly entered into the second thinking link. The second thinking link does not reconstruct the evidence package, but determines the drill-down scope by combining alarm semantics, indicator attribution, and system domain and business domain mapping, and generates the executable diagnostic task of Module 2.
[0187] like Figure 9 The diagram shown is a schematic diagram of dual-path drill-down in the system domain and service domain according to a specific embodiment of this disclosure. The specific content of the diagram is as follows: System alarm drill-down and business alarm drill-down constitute a dual-branch search mechanism controlled by the diagnostic domain type. Both links take alarm evidence packages, diagnostic domain types, and diagnostic starting objects as inputs, and form a set of candidate root causes through layer-by-layer scoring and path pruning. However, they use different dependencies, anomaly evidence, and candidate objects. System alarm drill-down uses service call topology, interface dependencies, and resource ownership relationships as the search space to locate candidate root cause interfaces, services, or system resources. Business alarm drill-down uses a manually maintained business indicator dependency graph in the link dashboard as the search space to locate candidate root cause business indicators and associate them with corresponding business processes, strategies, experiments, or configurations through indicator mapping relationships. Both links use a unified candidate result structure, which includes at least candidate objects, object types, drill-down paths, candidate scores, anomaly time windows, and corresponding evidence. For mixed or uncertain alarms, the two links execute and output candidates separately, and cross-domain causal relationships are verified by module three using further evidence.
[0188] like Figure 10 The diagram illustrates a business metric dependency graph and a business drill-down flowchart in a specific embodiment of this disclosure. Business-related alarm drill-down utilizes the business metric dependency graph in the link dashboard. This graph is maintained by business or operations personnel. Nodes represent business metrics such as impressions, clicks, conversion rates, order volume, payment volume, or active users. Directed edges represent manually confirmed upstream and downstream business relationships. Each node records its associated dashboard, statistical scope, time granularity, and available dimensions such as region, version, and experiment group, and can be associated with relevant services, interfaces, strategies, or configuration items. Preferably, a directed edge is defined as a path from an upstream metric to a downstream metric affected by it. The system starts from the business metric that triggered the alarm and traces back to candidate upstream metrics along the reverse direction of the directed edge. The specific steps of this flowchart are as follows: Step S1010. Align the aperture with the dimension.
[0189] Align the candidate upstream indicators with the current indicators in terms of statistical scope, time granularity, and comparison dimensions; if the alignment cannot be achieved, do not use the indicator to directly draw root cause conclusions.
[0190] Step S1020. Calculate the business drill-down score.
[0191] Let candidate upstream indicators be set Compared with current indicators Calculate the business drill-down score:
[0192] in, Indicators The degree of abnormality of the year-on-year and month-on-month changes relative to their historical normal fluctuation range. Indicators Did the anomaly precede the indicator? The abnormality This indicates whether the direction of change for both aligns with the business dependency relationship maintained manually. , and This indicates the corresponding weight.
[0193] Step S1030. Determine whether the score reaches the threshold and whether the calibers are aligned.
[0194] If the threshold is not reached, proceed to step S1040; otherwise, proceed to step S1050.
[0195] Step S1040. Cut off the path to avoid forming a root cause conclusion.
[0196] Step S1050. Retain candidate upstream indicators and continue reverse tracing.
[0197] When the business drill-down score reaches a threshold, the candidate metric is retained and its upstream is traced; if it falls below the threshold, the path is pruned. When multiple candidate upstreams exist, they are sorted by score and a predetermined number of paths are retained.
[0198] like Figure 11 The diagram shown is a flowchart illustrating the execution of agent tasks based on a master-slave multi-agent architecture in a specific embodiment of this disclosure. The specific steps of the flowchart are as follows: Step S1110. Input the unified candidate root cause set into the main agent.
[0199] The main agent receives a set of candidate root causes and invokes historical facts and experiences that match the current service, business dashboard, alarm rules, fault type, and skill.
[0200] Step S1120. The main agent selects Skill.
[0201] Step S1130. Assemble the subtask context.
[0202] The main agent receives a set of candidate root causes, retrieves historical facts and experiences that match the current service, business dashboard, alarm rules, fault type and skill, selects one or more skills according to the candidate type, and assembles the subtask context according to the selected skill to generate a system-side or business-side diagnostic subtask.
[0203] The corresponding sub-agent calls the MCP Tool according to the steps specified by the Skill to obtain evidence such as indicators, logs, call chains, business dashboards, and change records; the sub-agent returns supporting evidence, opposing evidence, and evidence to be supplemented in a unified format.
[0204] Step S1140. The main agent summarizes the structured evidence.
[0205] The main agent summarizes supporting evidence, opposing evidence, and evidence to be supplemented.
[0206] Step S1150. Output a fault report or generate the next round of supplementary tasks.
[0207] When a candidate with sufficient supporting evidence exists and the main competing candidate has been eliminated, the necessary checks for the corresponding Skill have been completed, or the preset maximum number of inference rounds has been reached, the main agent ends the inference process and outputs a fault report containing the root cause object, fault type, propagation or impact process, supporting evidence, eliminated candidates, and recommended remedial measures. If the evidence is insufficient or conflicting, the main agent generates the next round of supplementary tasks.
[0208] like Figure 12 The diagram illustrates a specific embodiment of the layered memory and graph retrieval enhancement recall generation process disclosed herein. The three-layered memory system includes working memory, factual memory, and experience memory. Working memory stores the short-term state during the current alarm diagnosis process, including alarm evidence packages, dual-domain drill-down paths, candidate root causes, loaded Skills, MCP Tool calls and return results, and multi-round agent task states, and is continuously updated during the current diagnosis process. Factual memory stores confirmed facts related to specific services, alarm rules, business dashboards, or fault events, including alarm phenomena, root cause objects, fault types, key evidence, confirmation sources, and handling results. Experience memory stores transferable diagnostic experience extracted from one or more confirmed cases, including relationships between different anomalies, the order of business indicator investigation, the applicable conditions of Skills, and the usage of Tools in specific scenarios. The specific steps of this flowchart are as follows: When alarm diagnosis begins, the memory system creates working memory for the current alarm and continuously receives triage, drill-down, and tool call results written by modules one through three. The main agent or sub-agent initiates memory queries based on the current service, business dashboard, Skill, candidate objects, and fault phenomena. The memory system performs dimension filtering, BM25 retrieval, vector retrieval, and graph relationship expansion, and returns relevant memories after fusion and sorting. The recall results are injected into the global context of the main agent or the subtask context of the corresponding Skill. After the diagnosis is completed and confirmed, the system extracts candidate fact memories and experience memories from the working memory. It determines whether to create, supplement, merge, or mark conflicts through similar memory matching and updates the memory relationship graph synchronously.
[0209] In one specific embodiment, 1000 alarms with manually confirmed results are used as an exemplary test set, including 380 noise alarms, 280 system-related fault alarms, 220 business-related fault alarms, and 120 mixed-type fault alarms. Compared to the approach of directly performing a full root cause analysis after an alarm is triggered, the first thinking link can correctly filter approximately 342 noise alarms, with a noise alarm correct filtering rate of approximately 90.0%; approximately 7 fault alarms are incorrectly filtered, with a true fault false filtering rate of approximately 1.1%. Based on this, in a production environment with an average daily alarm volume exceeding 7000, it can be estimated that approximately 2400 full root cause analysis tasks can be reduced daily.
[0210] Regarding search space compression, system-related alarms involved an average of approximately 132 interfaces or service objects before drill-down. After service call topology recursive scoring and path pruning, an average of approximately 16 candidate objects were retained, reducing the search space by approximately 87.9%. Business-related alarms involved an average of approximately 96 business metrics before drill-down. After manually maintained business metric dependency graph tracing and pruning, an average of approximately 13 candidate metrics were retained, reducing the search space by approximately 86.5%. Therefore, the number of candidate objects entering the multi-agent collaborative reasoning stage can be controlled to approximately 12%–14% of the original search space.
[0211] Regarding diagnostic resource consumption, compared to a scheme that directly entrusts all relevant objects to the large language model agent for analysis, the average number of MCP Tool calls for a single effective alarm in this example implementation can be reduced from approximately 25.4 times to approximately 15.7 times, a reduction of approximately 38.2%; the average large language model context length can be reduced from approximately 46,800 tokens to approximately 28,900 tokens, a reduction of approximately 38.2%; and the average end-to-end diagnostic latency can be reduced from approximately 192 seconds to approximately 126 seconds, a reduction of approximately 34.4%.
[0212] Regarding the quality of root cause analysis, in the exemplary test results, the Top-1 root cause object localization accuracy in this example implementation is approximately 89.0%, the Top-3 recall rate is approximately 95.2%, and the fault type classification accuracy is approximately 84.3%. Specifically, the root cause localization accuracy for system alarms is approximately 90.4%, the root cause localization accuracy for business alarms is approximately 86.8%, and the dual-domain candidate recall rate for mixed alarms is approximately 92.5%. Compared to a unified diagnostic scheme that does not perform alarm triage and dual-domain drill-down, the Top-1 root cause object localization accuracy can be improved from approximately 82.1% to approximately 89.0%, an improvement of approximately 6.9 percentage points; the fault type classification accuracy can be improved from approximately 78.0% to approximately 84.3%, an improvement of approximately 6.3 percentage points.
[0213] Regarding memory reuse, after adopting a hybrid recall method combining hierarchical memory and GraphRAG (Graph Retrieval-Augmented Generation), the hit rate of confirmed historical cases related to the current alarm in the top 5 recall results is approximately 86.7%. For repeated failures of the same service, business dashboard, or alarm rule, the average number of MCPTool calls can be further reduced by approximately 27.8%, and the average diagnostic latency can be further reduced by approximately 23.6%.
[0214] It should be noted that although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.
[0215] Furthermore, this disclosure also provides a root cause analysis device for system alarms. (Reference) Figure 13 As shown, the root cause analysis device for alarms in this system may include a diagnostic task generation module 1310, a candidate object determination module 1320, a diagnostic evidence determination module 1330, and an analysis result generation module 1340. Wherein: The diagnostic task generation module 1310 is configured to construct an alarm evidence package corresponding to an alarm event, determine the diagnostic domain type corresponding to the alarm event based on the alarm evidence package, and generate a diagnostic task of the diagnostic domain type. The candidate object determination module 1320 is configured to perform a diagnostic task based on the diagnostic domain type and determine the candidate root cause objects related to the alarm event in the diagnostic domain type. The diagnostic evidence determination module 1330 is configured to perform a corresponding diagnostic subtask based on the diagnostic domain type of the candidate root cause object, and obtain diagnostic evidence of the candidate root cause object based on the diagnostic subtask. The analysis result generation module 1340 is configured to perform the following: obtain the target root cause object of the system alarm based on the diagnostic evidence of the candidate root cause object, and obtain the root cause analysis result of the system alarm based on the target root cause object.
[0216] In some exemplary embodiments of this disclosure, the diagnostic task generation module 1310 may include an alarm evidence package generation unit, configured to construct an alarm evidence package corresponding to the alarm event based on the relevant alarm information of the alarm event. The alarm evidence package includes alarm rule evidence, current indicator evidence, abnormal shape evidence, historical alarm evidence, alarm semantic evidence, and associated context evidence.
[0217] In some exemplary embodiments of this disclosure, the alarm evidence package generation unit may include a sequence feature determination subunit and an abnormal shape evidence determination subunit. Wherein: The sequence feature determination subunit is configured to perform time alignment and standardization processing on the alarm indicator time series, and input the processed alarm indicator time series into the pattern matcher to obtain the short-term mutation features and long-term trend features of the alarm indicator time series. The anomalous shape evidence determination subunit is configured to perform anomaly shape evidence by obtaining the anomalous shape category and corresponding confidence level of the alarm indicator time series based on short-term mutation characteristics and long-term trend characteristics.
[0218] In some exemplary embodiments of this disclosure, the alarm evidence package generation unit may further include an alarm semantic evidence determination subunit, configured to perform the following: inputting relevant alarm information into a large language model to obtain semantic recognition results, and obtaining alarm semantic evidence based on the semantic recognition results.
[0219] In some exemplary embodiments of this disclosure, the diagnostic task generation module 1310 may further include a noise condition determination unit, a high-confidence noise event determination unit, and a diagnostic domain type determination unit. Wherein: The noise condition determination unit is configured to input the alarm evidence packet into the first thinking link, calculate the noise score corresponding to the alarm event, and determine whether the alarm event triggers the protection condition based on the alarm evidence packet. The high confidence noise event determination unit is configured to determine the alarm event as a high confidence noise event if the noise score is greater than or equal to the noise threshold and the alarm event does not trigger the protection condition. The diagnostic domain type determination unit is configured to input the alarm evidence package into the second thinking link and determine the diagnostic domain type corresponding to the alarm event through the second thinking link.
[0220] In some exemplary embodiments of this disclosure, the noise condition determination unit may include a noise score calculation subunit, configured to calculate the noise score corresponding to the alarm event based on the proportion of historical alarms identified as noise according to the same rules, the automatic recovery proportion of historical alarms, and the abnormal shape category of the alarm indicator time series.
[0221] In some exemplary embodiments of this disclosure, the candidate object determination module 1320 may include a system domain object determination unit, a business domain object determination unit, and a hybrid object determination unit. Wherein: The system domain object determination unit is configured to perform diagnostic tasks based on the system domain diagnostic link if the diagnostic task is a system class diagnostic task, and obtain candidate root cause objects of the system domain type related to the alarm event. The business domain object determination unit is configured to execute the diagnostic task based on the business domain diagnostic link if the diagnostic task is a business class diagnostic task, and obtain the candidate root cause object of the business domain type related to the alarm event. The hybrid object determination unit is configured to perform diagnostic tasks based on the system domain diagnostic link and the business domain diagnostic link respectively if the diagnostic task is a hybrid diagnostic task or an undetermined diagnostic task, and obtain candidate root cause objects of system domain type and business domain type related to the alarm event.
[0222] In some exemplary embodiments of this disclosure, the system domain object determination unit may include a fault score determination subunit, a downstream interface exclusion subunit, a fault score recursion subunit, and a system domain object determination subunit. Wherein: The fault score determination subunit is configured to start from the interface that triggered the alarm event, and calculate the fault propagation score between the current interface and its downstream interfaces sequentially based on the interface call topology graph. The downstream interface exclusion subunit is configured to exclude other downstream interfaces on the interface call chain where the downstream interface is located if the fault propagation score is less than the system anomaly score threshold. The fault score recursive subunit is configured to perform the following operation: if the fault propagation score is greater than or equal to the anomaly score threshold, the downstream interface is retained and used as the current interface to continue calculating the fault propagation score with subsequent downstream interfaces. The system domain object determination subunit is configured to perform operations based on all reserved interfaces to obtain candidate root cause objects of the system domain type associated with the alarm event.
[0223] In some exemplary embodiments of this disclosure, the business domain object determination unit may include an anomaly score determination subunit, a subsequent indicator exclusion subunit, an anomaly score recursive subunit, and a business domain object determination subunit. Wherein: The anomaly score determination subunit is configured to start from the business metric that triggered the alarm event and, based on the business metric dependency graph, sequentially calculate the business anomaly score between the current business metric and the candidate upstream metric. The subsequent indicator exclusion sub-unit is configured to exclude subsequent business indicators on the business indicator dependency path where the candidate upstream indicator is located if the business anomaly score is less than the business anomaly score threshold. The anomaly score recursive subunit is configured to perform the following action: if the business anomaly score is greater than or equal to the business anomaly score threshold, retain the candidate upstream indicator and use the candidate upstream indicator as the current business indicator, and continue to calculate the business anomaly score between it and the subsequent upstream indicator. The business domain object determination subunit is configured to perform the task of obtaining candidate root cause objects of the business domain type related to the alarm event based on all retained candidate upstream metrics.
[0224] In some exemplary embodiments of this disclosure, the business domain object determination unit may further include a candidate upstream indicator sorting subunit, configured to perform the following: if there are multiple candidate upstream indicators for the current business indicator, and the number of candidate upstream indicators is greater than or equal to the indicator number threshold, sort the candidate upstream indicators according to the business anomaly score, and retain a specified number of candidate upstream indicators according to the sorting result.
[0225] In some exemplary embodiments of this disclosure, the diagnostic evidence determination module 1330 may include a diagnostic subtask generation unit, configured to perform actions such as determining the applicable diagnostic tool usage protocol by the main intelligence based on the alarm evidence package and the diagnostic domain type where the candidate root cause object is located, and generating the corresponding diagnostic subtask according to the diagnostic tool usage protocol.
[0226] In some exemplary embodiments of this disclosure, the diagnostic evidence determination module 1330 may further include a diagnostic tool acquisition unit and a diagnostic tool invocation unit. Wherein: The diagnostic tool acquisition unit is configured to execute the sub-agent corresponding to the diagnostic domain type to acquire the diagnostic tool used to perform the diagnostic sub-task according to the diagnostic tool usage protocol in the diagnostic sub-task. The diagnostic tool invocation unit is configured to invoke the diagnostic tool according to the steps specified in the diagnostic tool usage agreement to perform diagnostic subtasks and obtain diagnostic evidence of candidate root cause objects.
[0227] In some exemplary embodiments of this disclosure, the root cause analysis apparatus for system alarms provided in this disclosure may further include a memory system construction module, configured to construct a multi-layer memory system, which includes a working memory layer, a fact memory layer, and an experience memory layer; wherein, the working memory layer is used to store state information during the diagnosis process of the alarm event, the fact memory layer is used to store confirmed fact information during the diagnosis process of the alarm event, and the experience memory layer is used to store diagnostic experience during the diagnosis process of the alarm event.
[0228] In some exemplary embodiments of this disclosure, the memory system construction module may include an adjacent node determination unit, an enhanced node filtering unit, and a memory recall return unit. Wherein: The adjacent node determination unit is configured to determine, when recalling memory information from a multi-layer memory system, candidate memory nodes adjacent to the recall memory node corresponding to the current recall task from the memory relationship graph. The enhanced node filtering unit is configured to determine the graph relational relevance between candidate memory nodes and the current recall task, and to filter enhanced memory nodes from the candidate memory nodes based on the graph relational relevance. The recall memory return unit is configured to return the memory information in both the recall memory node and the enhanced memory node.
[0229] In some exemplary embodiments of this disclosure, the memory system construction module may further include a similar memory information acquisition unit and a memory relationship graph updating unit. Wherein: The similar memory information acquisition unit is configured to, after receiving the root cause analysis results of the system alarm, retrieve the current memory information of the current diagnosis from the multi-layer memory system, and retrieve similar memory information that is similar to the current memory information from the historical memory information; The memory relationship graph update unit is configured to perform matching of current memory information with similar memory information and update the memory relationship graph based on the matching results.
[0230] The specific details of each module / unit in the root cause analysis device for the above system alarms have been described in detail in the corresponding method embodiment section, and will not be repeated here.
[0231] Figure 14 A schematic diagram of the structure of a computer system suitable for implementing the embodiments of the present disclosure is shown.
[0232] It should be noted that, Figure 14 The computer system 1400 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.
[0233] like Figure 14As shown, the computer system 1400 includes a central processing unit (CPU) 1401, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 1402 or programs loaded from storage section 1408 into random access memory (RAM) 1403. The RAM 1403 also stores various programs and data required for system operation. The CPU 1401, ROM 1402, and RAM 1403 are interconnected via a bus 1404. An input / output (I / O) interface 1405 is also connected to the bus 1404.
[0234] The following components are connected to I / O interface 1405: an input section 1406 including a keyboard, mouse, etc.; an output section 1407 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1408 including a hard disk, etc.; and a communication section 1409 including a network interface card such as a LAN card, modem, etc. The communication section 1409 performs communication processing via a network such as the Internet. A drive 1410 is also connected to I / O interface 1405 as needed. Removable media 1411, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1410 as needed so that computer programs read from them can be installed into storage section 1408 as needed.
[0235] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1409, and / or installed from removable medium 1411. When the computer program is executed by central processing unit (CPU) 1401, it performs various functions defined in the system of this disclosure.
[0236] An exemplary embodiment of this disclosure also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the root cause analysis method for the aforementioned system alarms.
[0237] In one implementation, the computer program product can be a tangible product containing a computer program, such as a computer-readable storage medium storing the computer program. The readable storage medium can be a storage medium based on electrical, magnetic, optical, electromagnetic, infrared, or other signals, including but not limited to: random access memory (RAM), read-only memory (ROM), magnetic tape, floppy disk, flash memory, hard disk drive (HDD), solid-state drive (SSD), etc. For example, the computer program product can be implemented as a non-volatile storage medium storing a computer program, such as read-only memory, NAND flash memory, etc.
[0238] In one implementation, the computer program product can be an intangible product containing a computer program. For example, the computer program product can be implemented as a virtual digital product, such as an executable file, installation package, or other digital file storing the computer program.
[0239] Computer program code can be written in one or more programming languages. Examples of programming languages include C, Java, and C++. Program code can execute entirely on the user's computing device, partially on the user's computing device, or as a standalone software package. It can also execute partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, such as a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via an internet connection provided by a mobile network operator).
[0240] Computer programs can be carried or transmitted via signals such as electricity, magnetism, light, electromagnetic radiation, and infrared radiation. Electronic devices can convert the signals carrying computer programs into digital signals, thereby running the computer programs. When a computer program runs on an electronic device, its code is used to cause the electronic device to execute (more specifically, the processor of the electronic device to execute) the method steps of various exemplary embodiments of this disclosure, such as the root cause analysis method for the aforementioned system alarms.
[0241] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0242] It should be noted that although several modules for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules described above can be embodied in one module. Conversely, the features and functions of one module described above can be further divided and embodied by multiple modules.
[0243] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein.
[0244] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A root cause analysis method for system alarms, characterized in that, include: Construct an alarm evidence package corresponding to an alarm event, determine the diagnostic domain type corresponding to the alarm event based on the alarm evidence package, and generate a diagnostic task of the diagnostic domain type; The diagnostic task is executed based on the diagnostic link of the diagnostic domain type to determine the candidate root cause objects related to the alarm event in the diagnostic domain type; A corresponding diagnostic subtask is generated based on the diagnostic domain type in which the candidate root cause object is located, and diagnostic evidence for the candidate root cause object is obtained based on the diagnostic subtask. Based on the diagnostic evidence of the candidate root cause objects, the target root cause object of the system alarm is obtained, and based on the target root cause object, the root cause analysis result of the system alarm is obtained.
2. The root cause analysis method for system alarms according to claim 1, characterized in that, The alarm evidence package corresponding to the alarm event is constructed as follows: Based on the relevant alarm information of the alarm event, an alarm evidence package corresponding to the alarm event is constructed. The alarm evidence package includes alarm rule evidence, current indicator evidence, abnormal shape evidence, historical alarm evidence, alarm semantic evidence, and associated context evidence.
3. The root cause analysis method for system alarms according to claim 2, characterized in that, The relevant alarm information includes a time series of alarm indicators, and the method further includes: The alarm indicator time series is time-aligned and standardized, and the processed alarm indicator time series is input into a pattern matcher to obtain the short-term mutation characteristics and long-term trend characteristics of the alarm indicator time series. Based on the short-term mutation characteristics and the long-term trend characteristics, the abnormal shape category and corresponding confidence level of the alarm indicator time series are obtained to obtain the evidence of the abnormal shape.
4. The root cause analysis method for system alarms according to claim 2, characterized in that, The method further includes: The relevant alarm information is input into a large language model to obtain semantic recognition results, and the alarm semantic evidence is obtained based on the semantic recognition results.
5. The root cause analysis method for system alarms according to claim 2, characterized in that, Determining the diagnostic domain type corresponding to the alarm event based on the alarm evidence package includes: The alarm evidence packet is input into the first thinking link to calculate the noise score corresponding to the alarm event, and the alarm event is judged to determine whether the protection condition is triggered based on the alarm evidence packet. If the noise score is greater than or equal to the noise threshold and the alarm event does not trigger the protection condition, then the alarm event is determined to be a high-confidence noise event. If the alarm event does not belong to the high-confidence noise event, the alarm evidence package is input into the second thinking link, and the diagnostic domain type corresponding to the alarm event is determined through the second thinking link.
6. The root cause analysis method for system alarms according to claim 5, characterized in that, The calculation of the noise score corresponding to the alarm event includes: The noise score corresponding to the alarm event is calculated based on the proportion of historical alarms that are identified as noise, the automatic recovery rate of historical alarms, and the abnormal shape category of the alarm indicator time series.
7. The root cause analysis method for system alarms according to claim 1, characterized in that, The diagnostic tasks include system-related diagnostic tasks, business-related diagnostic tasks, hybrid diagnostic tasks, and undetermined diagnostic tasks. The diagnostic link based on the diagnostic domain type executes the diagnostic tasks to determine the candidate root cause objects related to the alarm event in the diagnostic domain type, including: If the diagnostic task is a system-level diagnostic task, then the diagnostic task is executed based on the system domain diagnostic link to obtain candidate root cause objects of the system domain type related to the alarm event; If the diagnostic task is a business-related diagnostic task, then the diagnostic task is executed based on the business domain diagnostic link to obtain candidate root cause objects of the business domain type related to the alarm event; If the diagnostic task is a mixed-type diagnostic task or an undetermined-type diagnostic task, the diagnostic task is executed based on the system domain diagnostic link and the business domain diagnostic link respectively to obtain candidate root cause objects of system domain type and business domain type related to the alarm event.
8. The root cause analysis method for system alarms according to claim 7, characterized in that, The diagnostic task is performed based on the system domain diagnostic link to obtain candidate root cause objects of system domain type related to the alarm event, including: Starting from the interface that triggered the alarm event, based on the interface call topology graph, the fault propagation score between the current interface and its downstream interfaces is calculated sequentially. If the fault propagation score is less than the system anomaly score threshold, then other downstream interfaces on the interface call chain where the downstream interface is located are excluded. If the fault propagation score is greater than or equal to the anomaly score threshold, then the downstream interface is retained and used as the current interface to continue calculating the fault propagation score with subsequent downstream interfaces; Based on all reserved interfaces, candidate root cause objects of the system domain type associated with the alarm event are obtained.
9. The root cause analysis method for system alarms according to claim 7, characterized in that, The diagnostic task is executed based on the business domain diagnostic link to obtain candidate root cause objects of the business domain type related to the alarm event, including: Starting from the business metric that triggered the alarm event, the business anomaly score between the current business metric and the candidate upstream metric is calculated sequentially based on the business metric dependency graph. If the business anomaly score is less than the business anomaly score threshold, then subsequent business indicators on the business indicator dependency path where the candidate upstream indicator is located are excluded. If the business anomaly score is greater than or equal to the business anomaly score threshold, then the candidate upstream indicator is retained and used as the current business indicator, and the business anomaly score between it and subsequent upstream indicators is calculated. Based on all retained candidate upstream metrics, candidate root cause objects for the business domain type related to the alarm event are obtained.
10. The root cause analysis method for system alarms according to claim 9, characterized in that, The method further includes: If there are multiple candidate upstream indicators for the current business indicator, and the number of candidate upstream indicators is greater than or equal to the indicator number threshold, then the candidate upstream indicators are sorted according to the business anomaly score, and a specified number of candidate upstream indicators are retained according to the sorting result.
11. The root cause analysis method for system alarms according to claim 1, characterized in that, The step of generating a corresponding diagnostic subtask based on the diagnostic domain type of the candidate root cause object includes: The main intelligent agent determines the applicable diagnostic tool usage protocol based on the alarm evidence package and the diagnostic domain type of the candidate root cause object, and generates the corresponding diagnostic subtask according to the diagnostic tool usage protocol.
12. The root cause analysis method for system alarms according to claim 11, characterized in that, The step of obtaining diagnostic evidence for the candidate root cause object based on the diagnostic subtask includes: The sub-agent corresponding to the diagnostic domain type obtains the diagnostic tool used to perform the diagnostic sub-task according to the diagnostic tool usage protocol in the diagnostic sub-task. The diagnostic tool is invoked according to the steps specified in the diagnostic tool usage protocol to perform the diagnostic subtask and obtain diagnostic evidence for the candidate root cause object.
13. The root cause analysis method for system alarms according to claim 1, characterized in that, The method further includes: Construct a multi-layered memory system, which includes a working memory layer, a factual memory layer, and an experiential memory layer; The working memory layer is used to store the status information during the diagnosis process of the alarm event, the fact memory layer is used to store the confirmed fact information during the diagnosis process of the alarm event, and the experience memory layer is used to store the diagnostic experience during the diagnosis process of the alarm event.
14. The root cause analysis method for system alarms according to claim 13, characterized in that, The multi-layered memory system also includes a memory relationship diagram, and the method further includes: When recalling memory information from the multi-layer memory system, candidate memory nodes adjacent to the recall memory node corresponding to the current recall task are determined from the memory relationship graph. Determine the graph relational relevance between the candidate memory nodes and the current recall task, and select enhanced memory nodes from the candidate memory nodes based on the graph relational relevance; The memory information in the recalled memory node and the enhanced memory node are returned together.
15. The root cause analysis method for system alarms according to claim 14, characterized in that, The method further includes: After obtaining the root cause analysis results of the system alarm, the current memory information for this diagnosis is obtained from the multi-layer memory system, and similar memory information that is similar to the current memory information is obtained from the historical memory information. The current memory information is matched with the similar memory information, and the memory relationship graph is updated based on the matching results.
16. A root cause analysis device for system alarms, characterized in that, include: The diagnostic task generation module is configured to construct an alarm evidence package corresponding to an alarm event, determine the diagnostic domain type corresponding to the alarm event based on the alarm evidence package, and generate a diagnostic task of the diagnostic domain type. The candidate object determination module is configured to execute the diagnostic task based on the diagnostic domain type and determine the candidate root cause objects related to the alarm event in the diagnostic domain type; The diagnostic evidence determination module is configured to execute a corresponding diagnostic subtask based on the diagnostic domain type in which the candidate root cause object is located, and to obtain diagnostic evidence for the candidate root cause object based on the diagnostic subtask. The analysis result generation module is configured to perform the following: obtain the target root cause object of the system alarm based on the diagnostic evidence of the candidate root cause object, and obtain the root cause analysis result of the system alarm based on the target root cause object.
17. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the root cause analysis method for system alarms as described in any one of claims 1 to 15.
18. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the root cause analysis method for system alarms as described in any one of claims 1 to 15.
