Method and apparatus for calculating component value of alarm information, and electronic device and storage medium
By analyzing and semantically segmenting the time series data and composite variable alarm rules of the server cluster, the component values of the alarm information are calculated, which solves the problem of difficulty for operation and maintenance personnel to check the combined alarm information, and improves the efficiency of fault location and maintenance.
Patent Information
- Application Number
- PCT/CN2023/140000
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-24
- Filing Date
- 2023-12-19
- Publication Date
- 2024-08-29
AI Technical Summary
It is difficult for operation and maintenance personnel to specifically check the component values in the combined alarm information, resulting in the inability to quickly locate the source of the fault and reducing operation and maintenance efficiency.
By obtaining the time series data of the server cluster and the preset composite variable alarm rules, the alarm engine is used for parsing and processing. If the time series data meets the composite variable alarm rules, it is sent to the semantic analysis engine for semantic segmentation to obtain information for different faults. Judge conditional expressions and calculate the component values of fault alarms based on these expressions.
Operation and maintenance personnel can see the specific values of data corresponding to each fault alarm in detail, thereby more accurately and quickly locating the source of the fault, improving server operation and maintenance efficiency.
Smart Images

Figure CN2023140000_29082024_PF_FP_ABST
Abstract
Description
Method, device, electronic device and storage medium for calculating alarm information component value
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on February 24, 2023, with application number 202310163233.2, and application name “Method, device, electronic device and storage medium for calculating alarm information component values”, all contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of edge intelligent monitoring and alarm, and in particular to a method, device, electronic device and storage medium for calculating alarm information component values. Background Art
[0004] With the continuous development of information technology and the popularization of Internet infrastructure, most Internet product architectures have gradually introduced edge services, making network servers and users geographically closer. In order to reduce the construction and management costs of large-scale distributed edge servers, integrated hyper-converged cabinets came into being.
[0005] In related technologies, the operation and maintenance management model of a hyper-converged cabinet requires continuous monitoring of the operating status of each edge server. Usually, the configured alarm rules are used to calculate and analyze the collected system operation data to achieve edge resource monitoring.
[0006] However, in the existing solution, as the types of server services continue to increase, the alarm rules are becoming more complex. For alarm information of multiple combination types, it is difficult for operation and maintenance personnel to specifically check the component values in the combination alarm information, and they cannot quickly locate the source of the fault and perform targeted maintenance, resulting in low operation and maintenance efficiency.
[0007] Summary of the Invention
[0008] The embodiments of the present application provide a method, device, electronic device and storage medium for calculating component values of alarm information to solve the problem in the prior art that it is difficult for operation and maintenance personnel to specifically check the specific component values in combined alarm information.
[0009] In a first aspect, an embodiment of the present application provides a method for calculating an alarm information component value, the method comprising:
[0010] Obtain the time series data of the server cluster and obtain the preset composite variable alarm rules; the time series data is used to represent the operating status of each server in the server cluster;
[0011] According to the composite variable alarm rule, the alarm engine parses and processes the time series data to obtain the analysis results. A composite variable alarm rule includes: at least two judgment condition expressions for different faults;
[0012] In the parsing results, if the time series data simultaneously satisfies the judgment condition expressions of all fault alarms in the composite variable alarm rule, it is determined that the time series data satisfies the composite variable alarm rule, and the composite variable alarm rule is sent to the semantic analysis engine;
[0013] The semantic analysis engine is used to semantically segment the compound variable alarm rules to obtain judgment condition expressions for different fault alarms.
[0014] According to the time series data corresponding to the judgment condition expression, the alarm information component value of the fault alarm is obtained.
[0015] In a second aspect, an embodiment of the present application provides a device for calculating an alarm information component value, the device comprising:
[0016] The processing information acquisition module is used to obtain the time series data of the server cluster and obtain the preset composite variable alarm rules; the time series data is used to represent the operating status of each server in the server cluster;
[0017] The time series data parsing module is used to parse the time series data through the alarm engine according to the composite variable alarm rule to obtain the analysis results. A composite variable alarm rule includes at least two judgment condition expressions for different faults.
[0018] The composite variable alarm determination module is used to determine that the time series data satisfies the composite variable alarm rule if the time series data satisfies all the fault alarm judgment condition expressions in the composite variable alarm rule in the analysis result, and send the composite variable alarm rule to the semantic analysis engine;
[0019] The variable alarm rule segmentation module is used to perform semantic segmentation on the composite variable alarm rules through the semantic analysis engine to obtain judgment condition expressions for different fault alarms;
[0020] The alarm information component value generation module is used to obtain the alarm information component value of the fault alarm according to the time series data corresponding to the judgment condition expression.
[0021] In a third aspect, an embodiment of the present application provides an electronic device, including: a processor;
[0022] a memory for storing processor-executable instructions;
[0023] Wherein, the processor is configured to execute instructions to implement the method.
[0024] In a fourth aspect, an embodiment of the present application provides a storage medium, which enables the electronic device to execute a method when instructions in the storage medium are executed by a processor of the electronic device.
[0025] In an embodiment of the present application, first, the time series data generated by the server cluster and the preset composite variable alarm rules are obtained, the time series data is parsed and processed by the alarm engine, and when it is determined that the time series data meets the requirements for triggering the composite variable alarm rules, the preset composite variable alarm rules are semantically segmented to obtain a judgment condition expression for a single fault alarm; finally, the time series data is extracted and calculated according to the specific content of each judgment condition expression to obtain the component value of each alarm information; in this way, when the operation and maintenance personnel receive the fault alarm information triggered by the composite variable alarm rules, they can see the specific values of the data corresponding to each fault alarm in detail, so as to locate the source of the fault more accurately and quickly and perform adaptive maintenance, thereby improving the operation and maintenance efficiency of the server.
[0026] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:
[0028] FIG1 is a flowchart showing a simplified implementation step of a method for calculating an alarm information component value provided by an embodiment of the present application;
[0029] FIG2 is an overall framework diagram of an alarm information early warning implementation process provided by an embodiment of the present application;
[0030] FIG3 is a flowchart of a semantic analysis step provided in an embodiment of the present application;
[0031] FIG4 is a flowchart of the complete implementation steps of a method for calculating an alarm information component value provided by an embodiment of the present application;
[0032] FIG5 is a schematic diagram of an alarm action setting interface provided in an embodiment of the present application;
[0033] FIG6 is a schematic diagram of a fault alarm prompt interface provided in an embodiment of the present application;
[0034] FIG7 is a diagram of a time series data preview window interface provided by an embodiment of the present application;
[0035] FIG8 is a schematic diagram of an alarm notification interface provided in an embodiment of the present application;
[0036] FIG9 is a schematic diagram of the structure of a device for calculating alarm information component values provided in an embodiment of the present application;
[0037] FIG10 is a diagram showing the functional components of an electronic device provided in an embodiment of the present application;
[0038] FIG11 is a diagram showing the functional component relationships of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] The following describes exemplary embodiments of the present application in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0040] Referring to FIG. 1 , FIG. 1 is a flowchart of a simplified implementation step of a method for calculating an alarm information component value provided by an embodiment of the present application. As shown in FIG. 1 , the method includes:
[0041] Step 101: Acquire time series data of a server cluster and obtain preset composite variable alarm rules; wherein the time series data is used to represent the operating status of each server in the server cluster.
[0042] The present invention provides a method for calculating alarm information component values, which is primarily used for system status analysis at the edge of a hyper-converged server. Hyper-converged server cabinets are hardware facilities located at the edge of a service area. Alarm rules need to be configured to monitor edge resources. A large number of hyper-converged server cabinets are interconnected to form a server cluster.
[0043] In order to ensure the normal operation of the server, it is necessary to continuously collect and analyze the system status during operation to avoid server crashes caused by system errors in individual servers or service overloads. The embodiment of the present application chooses to periodically collect time series data generated during the operation of the server cluster to analyze the system operation status; for example: CPU load rate, system memory occupancy, graphics processor temperature, graphics processor power consumption, cloud network packet error rate, server cluster export traffic and other hardware layer or software layer information. In addition, the composite variable alarm rule is preset in the system by the system operation and maintenance personnel, and is used for information alarms and fault judgment alarm rules. During operation, the target trigger will be performed according to the specific situation of the time series data.
[0044] Referring to Figure 2, a schematic diagram of the overall framework of an alarm information early warning implementation process provided by an embodiment of the present application is shown. In this embodiment of the present application, the cloud server includes a time series database for storage. The system data collected by the edge hyper-convergence end is transmitted via the Internet for content. The cloud server side pulls the data to the cloud database for storage through a pull method.
[0045] Step 102: according to the composite variable alarm rule, the alarm engine parses and processes the time series data to obtain an analytic result; a composite variable alarm rule includes: at least two judgment condition expressions for different faults.
[0046] Continuing with Figure 2, after the cloud server obtains the time series data of the server cluster, it calls the data from the stored database and parses it. The alarm engine analyzes the obtained time series data and simultaneously matches the information based on the obtained composite variable alarm rules.
[0047] It's important to note that composite variable alarm rules are preset by system operations personnel and are used for informational alerts and fault diagnosis. As edge resources are monitored, the increasing complexity of alarm rules increases with the diversity of services. Often, multiple indicators must be combined to determine a fault. For example, an alarm will only be triggered if a server's memory usage exceeds a certain threshold and the hardware's operating temperature is too high.
[0048] In an embodiment of the present application, the composite variable alarm rule includes at least two judgment condition expressions for different faults; taking the memory alarm as an example, its composite variable alarm rule includes two fault alarm types: available memory size and host memory usage. In the preset stage, the operation and maintenance personnel can customize the judgment condition expression of the fault alarm rule containing the above two parameters according to the actual situation. For example, when the available memory size is lower than a certain threshold, it may cause the system to run slowly. In this case, the first variable alarm rule can be set as: the available memory value is less than ***; at the same time, based on the overall consideration of the system, since the memory usage value is not always constant during operation, the introduction of the usage rate can further understand the memory usage. In this case, the second variable alarm rule can be set as: the memory usage rate is greater than ***%; the above two variable alarm rules are combined to generate a composite variable alarm rule, and the alarm is triggered when and only when the acquired time series data meets both judgment conditions at the same time.
[0049] Step 103: In the parsing result, if the time series data simultaneously satisfies the judgment condition expressions of all fault alarms in the composite variable alarm rule, it is determined that the time series data satisfies the composite variable alarm rule, and the composite variable alarm rule is sent to the semantic analysis engine.
[0050] Continuing with step 102, during system operation, the system triggers an alarm only when both the available memory size and the host memory usage reach certain preset thresholds, and the collected time series data satisfies the judgment condition expression in the preset composite alarm rule. The system then displays the alarm content on the client's display interface for operation and maintenance personnel to review and perform related maintenance. In the composite variable alarm rule defined in step 102, an alarm is triggered only when, in the acquired time series data, the host memory usage is greater than the preset percentage threshold, and the available memory amount is less than the preset memory amount threshold, and both judgment conditions are met.
[0051] Continuing with Figure 2, after analysis by the alarm engine, when it is determined that the time series data meets the composite variable alarm rule, the triggered composite variable alarm rule will be sent to the semantic analysis engine, and then the judgment condition expression of each fault alarm in the composite alarm rule will be further calculated to obtain the specific parameter information of each fault alarm event.
[0052] Step 104: semantically segment the composite variable alarm rule through a semantic analysis engine to obtain judgment condition expressions for different fault alarms.
[0053] After the semantic analysis engine receives the sent composite variable alarm rule, it first needs to perform semantic segmentation on the composite variable alarm rule. Referring to Figure 3, a flowchart of the semantic analysis steps provided by an embodiment of the present application is shown. For a composite alarm rule (complex_promql), the semantic analysis engine can decompose it into multiple independent alarm rules (promql). Specifically, the structure of the composite variable alarm rule is: promql 1 [operation1promql2...operation_npromql_n] After semantic segmentation, independent operation1promql2, operation1promql3, ..., operation_npromql_n will be obtained, where operation represents an operation set.
[0054] According to the independent alarm rule judgment condition expression after segmentation, the specific component value of the corresponding alarm component can be calculated more directly in the subsequent step.
[0055] Step 105: Obtain the alarm information component value of the fault alarm according to the time series data corresponding to the judgment condition expression.
[0056] 3 , after obtaining the segmented alarm rule expression, the time series database calls the corresponding time series data according to the alarm rule through the application programming interface.
[0057] Specifically, an operation set is used to split and obtain an array of component expressions, and the component values corresponding to a single alarm rule are obtained through calculation. According to the data format of the conditional expression in the preset composite variable alarm rule, numerical statistics or numerical analysis calculations are performed. For example, under a certain alarm action, the composite variable alarm rule is set to trigger an alarm when the host's memory usage rate exceeds 85%. The required component value information is a percentage. In this case, it is necessary to first obtain the current host's memory hardware information to obtain the host's total memory. Then, from the time series data, the current host's used memory in operation is obtained. The used memory is divided by the total memory to obtain the memory usage rate.
[0058] In summary, the embodiment of the present application provides a method for calculating the component value of alarm information. First, the time series data generated by the server cluster and the preset composite variable alarm rule are obtained, the time series data is parsed and processed by the alarm engine, and when it is determined that the time series data meets the requirements for triggering the composite variable alarm rule, the preset composite variable alarm rule is semantically segmented to obtain a judgment condition expression for a single fault alarm; finally, the time series data is extracted and calculated according to the specific content of each judgment condition expression to obtain the component value of each alarm information; in this way, when the operation and maintenance personnel receive the fault alarm information triggered by the composite variable alarm rule, they can see the specific value of the data corresponding to each fault alarm in detail, so as to locate the source of the fault more accurately and quickly and perform adaptive maintenance, thereby improving the operation and maintenance efficiency of the server.
[0059] 4 , a flowchart of the complete implementation steps of a method for calculating alarm information component values provided by an embodiment of the present application is shown. As shown in FIG4 , the method steps include:
[0060] Step 201: Obtain time series data of a server cluster and obtain preset composite variable alarm rules; wherein the time series data is used to represent the operating status of each server in the server cluster.
[0061] This step may be specifically referred to the above step 101, which will not be described again in this embodiment.
[0062] In some embodiments of the present application, in one embodiment, step 201 may specifically include:
[0063] Sub-step 2011: Determine the type of time series data corresponding to the composite variable.
[0064] For composite variable alarm rules, operations and maintenance personnel must manually set them before system data monitoring begins. Specifically, referring to Figure 5 , a schematic diagram of an alarm action setting interface provided by an embodiment of the present application is shown. In this interface, operations and maintenance personnel can customize triggering alarm actions and adjust relevant parameters based on actual needs.
[0065] First, it is necessary to determine the time series data type that needs to be referenced in the composite variable alarm rule to be set. For example, the alarm action currently set in Figure 5 is a series of parameters related to the server system memory, so the required time series data type is the memory data of each server in the server cluster, including the inherent maximum memory at the server hardware level, as well as the amount of memory used and unused during system operation. Furthermore, the interface shown in Figure 5 also includes some other parameters for the configuration of the alarm action. Among them, the variable defines the data source referenced by the alarm action when it is triggered. The variable specified in Figure 5 is the host used memory (host_memory_usage). It should be noted that ${host_memory_usage} is a reference parameter table so that the computer system can correctly pick up the specific value of the host memory.
[0066] The continuous trigger time specifies the time triggering condition of the alarm action. The warning is triggered only when the expression is true for a period of time. For example, for the current alarm, the alarm is triggered only when the host's memory usage is greater than 85% and remains in this state for more than 5 minutes. In the embodiment of the present application, the setting unit for the duration is second. 300 seconds in Figure 5 corresponds to 5 minutes.
[0067] The sinking time prevents multiple identical alarms from being received within a short period of time after an alarm is triggered. A value of 0 disables this feature. The effective time specifies the time period during which the system will detect time series data, enabling operations related to composite variable alarms. The operation and maintenance personnel ultimately decide whether to enable the currently configured alarm action. If enabled, the online status is set to "Online."
[0068] Sub-step 2012: Determine, according to the type of the time series data, a triggering threshold for triggering a single fault alarm in the fault alarm and a threshold judgment relationship corresponding to the triggering threshold.
[0069] After determining the type of time series data needed in the alarm action, it is necessary to further set the trigger threshold and threshold judgment relationship of the response for the time series data. Continuing to refer to Figure 5, the name of the current alarm action is "memory usage is greater than 85%", and the action execution code is "low memory (low-memory)", so that the system can be connected. For action expressions, two input methods are provided in the embodiment of the present application. The operation and maintenance personnel can directly select the expression template predetermined by the system, or they can choose to enter it manually. In Figure 5, in the "Select Template" mode, there are two threshold judgment relationships, namely host memory usage (host_memory_usage) and available memory (memory_available), and the threshold judgment condition is greater than ">". That is, the host memory usage is greater than 85%, and the available memory is greater than 40%; it should be noted that "&&" represents the logical relationship operation "and", which means that the alarm is triggered when and only when the two expressions are satisfied at the same time.
[0070] Sub-step 2013: Determine a judgment condition expression for triggering a fault alarm based on the trigger threshold and the threshold judgment relationship.
[0071] Continuing with step 2012, after obtaining the trigger threshold and the threshold judgment relationship corresponding to the trigger threshold, the judgment condition expression for triggering the fault alarm can be determined. In actual applications, more threshold judgment relationships and trigger thresholds can be added to a single alarm action according to different usage requirements, and this is not limited in this embodiment. After the alarm action is set, the operation and maintenance personnel can change the threshold of the judgment condition expression in the composite variable alarm rule according to actual needs in the alarm variable configuration interface according to real-time needs. Referring to Figure 6, a schematic diagram of a fault alarm prompt interface provided by an embodiment of the present application is shown. The name of the alarm event currently displayed is memory alarm. At the same time, the operation and maintenance personnel can also filter the content according to the host level, grouping situation and the online status of the alarm action. In the content bar below, the item types displayed in the header include; variable name and description, variable code, data type, value range, expression, parameter and operation list.
[0072] For memory alarms, during system operation, if and only if both the available memory size and the host memory usage rate reach certain preset thresholds, the collected time series data satisfies the judgment condition expression in the preset composite alarm rule, the system will trigger an alarm, and then display the alarm content in the interface shown in Figure 6 for operation and maintenance personnel to review and perform relevant maintenance. In the content of the embodiment diagram shown in Figure 6, the available memory size is used to represent the unused memory margin in the total memory of the current server. The data unit is megabyte (MByte). At the same time, since there are decimals in the memory occupancy, the marked data type is double-precision floating point. The variable code is used to represent the code name of the variable in the system display, namely the available memory size (memory_available) and the host memory usage rate (host_memory_usage).
[0073] Sub-step 2014: Connect the judgment condition expressions corresponding to all fault alarms to obtain a composite variable alarm rule.
[0074] By connecting all the determined judgment condition expressions, you can obtain the variable alarm rules that meet the requirements. The composite variable alarm rules in the interface shown in Figure 6 include two fault alarm types: available memory size and host memory usage. During system operation, if and only if both the available memory size and host memory usage reach certain preset thresholds, the collected time series data will meet the judgment condition expressions in the preset composite alarm rules, and the system will trigger an alarm. The alarm content will then be displayed on the client display interface for operation and maintenance personnel to review and perform relevant maintenance.
[0075] Sub-step 2015: Receive time series data sent by the server cluster via the Internet; wherein the time series data is system data collected by the server cluster through the data collection module; the time series data includes: one or more of business system data, open source component data, and operating system data.
[0076] While obtaining composite variable alarm rules, the cloud server also acquires time series data generated by the server cluster. Referring to Figure 2, on the server cluster side (edge hyper-convergence), system data is collected through the data collection service interface and transmitted over the internet. On the cloud server side, the data is pulled to the cloud database for storage.
[0077] Time series data mainly comes from the business system data, open source component data, and operating system data of each server in the server cluster.
[0078] In some embodiments of this application, operating system data includes: CPU load rate, system memory usage, GPU temperature, GPU power consumption, etc.; open source component data includes: cloud network packet loss rate, cloud network error rate, etc.; business system data includes: server cluster ingress traffic, server cluster egress traffic, etc. In actual applications, the server cluster side also has other types of time series data, which are not limited here in this embodiment.
[0079] Referring to Figure 7, a time series data preview window interface provided by an embodiment of the present application is shown. Operations and maintenance personnel can filter the time series data of the target server as needed (e.g., by time). After the filter is complete, the current window will display the number of site racks and hosts in the selected server cluster, as well as related information such as monitoring status. The lower window details the four types of time series data currently acquired, including: central processing unit (CPU) user utilization, host memory utilization, CPU input / output process (iowait) utilization, and host load.
[0080] Furthermore, the time series data display diagram lists each server's identifier, such as 1, 2, 3, 4, etc., along with the corresponding time series data values. It should be noted that the host memory usage window displays memory in gigabytes (GiB); the host load window lists the specific host load values for the 1st, 5th, and 10th minutes of the current time period. Through this window, operations and maintenance personnel can gain a detailed understanding of the operating status of each server host, facilitating resource allocation and system maintenance.
[0081] Step 202: according to the composite variable alarm rule, the alarm engine parses and processes the time series data to obtain an analytic result; a composite variable alarm rule includes: at least two judgment condition expressions for different faults.
[0082] This step may be specifically referred to the above step 102, which will not be described again in this embodiment.
[0083] Step 203: In the analysis result, if the time series data simultaneously satisfies the judgment condition expressions of all fault alarms in the composite variable alarm rule, it is determined that the time series data satisfies the composite variable alarm rule, and the composite variable alarm rule is sent to the semantic analysis engine.
[0084] This step may be specifically referred to the above step 103, which will not be described in detail in this embodiment.
[0085] Step 204: semantically segment the composite variable alarm rule through a semantic analysis engine to obtain judgment condition expressions for different fault alarms.
[0086] This step may be specifically referred to the above step 104, which will not be described in detail in this embodiment.
[0087] Step 205: Obtain the alarm information component value of the fault alarm according to the time series data corresponding to the judgment condition expression.
[0088] This step may be specifically referred to the above step 104, which will not be described in detail in this embodiment.
[0089] Step 206: Generate a combined condition abnormality alarm notification, and send the combined condition abnormality alarm notification to the user end, so that operation and maintenance personnel can maintain the system according to the combined condition abnormality alarm notification.
[0090] In some embodiments of the present application, in one embodiment, step 206 may further include:
[0091] Sub-step 2061: Generate a combined condition abnormal alarm notification based on all judgment condition expressions in the preset composite variable alarm rule, and the alarm information component values corresponding to the judgment condition expressions. The combined condition abnormal alarm notification includes: one or more of the alarm event name, alarm content, and alarm generation time; wherein the alarm content is an alarm statement including the alarm information component values.
[0092] In combination with sub-steps 2011-2014 and the content shown in Figure 5, when it is determined that the time series data meets the preset composite variable alarm rules, the calculated alarm information component values are combined with the notification text of the preset alarm content according to the content shown in Figure 5 to generate an alarm notification.
[0093] Sub-step 2062: Send the combined condition abnormality alarm notification to the user end, so that the operation and maintenance personnel can maintain the system according to the combined condition abnormality alarm notification.
[0094] Referring to FIG8 , a schematic diagram of an alarm notification interface provided by an embodiment of the present application is shown; the list headers include: alarm name, alarm level, alarm content, generation time / duration, number of alarms, and action options. In conjunction with the schematic diagram of the alarm action setting interface shown in FIG5 , the alarm event name that generates the alarm is the user-defined name "Memory usage greater than 85%", and the alarm level is a warning alarm. It is worth noting that in the alarm content column, the content displayed in FIG8 is the result of combining the calculated component values with the preset content. Referring to the text box for the definition of the alarm content in FIG5 , the following text appears: [${workspaceName}]-[${componentName}]-[${ip}] The alarm value is currently [${actionVariables}], where [${workspaceName}] is the workspace name, [${componentName}] is the component name, [${actionVariables}] is the action variable, and [${ip}] represents the IP address of the current host. The above components are all parameter tables that display data. That is, when the target data is obtained, it will be referenced through the parameter table to ensure that specific numerical results such as the component values of the time series data can be displayed correctly.
[0095] In some embodiments of the present application, in one embodiment, the method may further include:
[0096] Step 207: Obtain a preset single-variable alarm rule.
[0097] In addition to calculating component values under compound variable alarm rules, embodiments of the present application also provide a method for processing data that meets single variable alarm rules.
[0098] Specifically, referring to Figure 2, in the overall framework diagram of the alarm information early warning implementation process shown in Figure 2, for the acquired time series data, after analysis by the alarm engine, if it meets the preset single-variable alarm rules, since the specific value of its fault alarm can be directly obtained by reading the time series data, a single-condition abnormal alarm notification can be directly generated and sent to the client, so that the operation and maintenance personnel can perform related operations such as system maintenance based on the single-condition abnormal alarm notification.
[0099] Step 208: According to the single variable alarm rule, the alarm engine parses and processes the time series data to obtain an analysis result.
[0100] This step may be specifically referred to the above step 102, which will not be described again in this embodiment.
[0101] Step 209: In the analysis result, if the time series data satisfies the judgment condition expression of the fault alarm in the single variable alarm rule, it is determined that the time series data satisfies the single variable alarm rule.
[0102] This step may be specifically referred to the above step 103, which will not be described in detail in this embodiment.
[0103] Step 210: When it is determined that the time series data satisfies the single variable alarm rule, a single condition abnormal alarm notification is generated according to the preset judgment condition expression of the single variable alarm rule and the time series data corresponding to the judgment condition expression.
[0104] Corresponding to the alarm notification under the composite variable alarm rule in steps 201 - 206 , the embodiment of the present application also provides a notification method under the single variable alarm rule.
[0105] If the time series data is determined to meet the single-variable alarm rule, a single-condition abnormality alarm notification is generated based on the preset single-variable alarm rule's judgment condition expression and the corresponding time series data. It should be noted that in this case, since the alarm notification trigger condition only applies to one type of time series data, there is no need to further perform semantic analysis or component value calculation on the single-variable alarm notification. Instead, the single-variable alarm notification is directly generated by integrating the judgment condition expression in the preset single-variable alarm rule with the corresponding time series data.
[0106] Step 211: Send the single condition abnormality alarm notification to the user end, so that the operation and maintenance personnel can maintain the system according to the single condition abnormality alarm notification.
[0107] When it is determined that the time series data meets the single variable alarm rule, after generating a single condition abnormal alarm notification, referring to the content shown in Figure 2, the cloud server can directly send the single condition abnormal alarm notification to the client for operation and maintenance personnel to review. Compared with the alarm notification generated by the composite variable alarm rule, the single condition abnormal alarm notification in this step only differs from the composite variable abnormal alarm notification in the final display format in terms of the number of alarm variables.
[0108] In summary, the embodiment of the present application provides a method for calculating the component value of alarm information. First, the time series data generated by the server cluster and the preset alarm rules are obtained, and the time series data is parsed and processed by the alarm engine. When it is determined that the time series data meets the triggering single variable alarm rule, an alarm notification is directly generated and sent to the client for the operation and maintenance personnel to review; when it is determined that the time series data meets the triggering composite variable alarm rule, the preset composite variable alarm rule is semantically segmented to obtain a judgment condition expression for a single fault alarm; finally, the time series data is extracted and calculated according to the specific content of each judgment condition expression to obtain the component value of each alarm information, and an alarm notification is generated and sent to the client for the operation and maintenance personnel to review; in this way, when the operation and maintenance personnel receive the multi-factor fault alarm information triggered by the composite variable alarm rule, they can see the specific value of the corresponding data of each fault alarm in detail, so as to locate the source of the fault more accurately and quickly and perform adaptive maintenance, thereby improving the operation and maintenance efficiency of the server.
[0109] 9 , a schematic diagram illustrating the structure of a device for calculating alarm information component values according to an embodiment of the present application is shown. As shown in FIG9 , the device includes:
[0110] The processing information acquisition module 301 is used to obtain the time series data of the server cluster and obtain the preset composite variable alarm rules; wherein the time series data is used to represent the operating status of each server in the server cluster;
[0111] The time series data parsing module 302 is used to parse the time series data through the alarm engine according to the composite variable alarm rule to obtain the parsing result. A composite variable alarm rule includes at least two judgment condition expressions for different faults.
[0112] The composite variable alarm determination module 303 is configured to determine that the time series data satisfies the composite variable alarm rule if the time series data satisfies all the fault alarm judgment condition expressions in the composite variable alarm rule in the analysis result, and send the composite variable alarm rule to the semantic analysis engine;
[0113] The variable alarm rule segmentation module 304 is used to perform semantic segmentation on the composite variable alarm rule through a semantic analysis engine to obtain judgment condition expressions for different fault alarms;
[0114] The alarm information component value generating module 305 is configured to obtain the alarm information component value of the fault alarm according to the time series data corresponding to the judgment condition expression.
[0115] In some embodiments of the present application, the alarm information component value generating module 305 may further include:
[0116] The calculation variable array acquisition submodule is used to obtain the calculation variables corresponding to the judgment condition expression from the time series data according to the judgment condition expression after segmentation, and generate the calculation variable array;
[0117] The calculation variable array acquisition module sending submodule is used to send the calculation variable array to the time series database; the alarm information component value calculation submodule is used to perform component calculation on the calculation variable array through the time series database to obtain the alarm information component value.
[0118] In some embodiments of the present application, the alarm information component value calculation submodule may further include:
[0119] A calculation variable array acquisition unit is used to obtain the value of the calculation variable corresponding to the judgment condition expression of the fault alarm in the calculation variable array through the application programming interface of the time series database;
[0120] The alarm information component value calculation unit is used to determine the alarm information component value according to the content display format of the fault alarm and the value of the calculation variable in the judgment condition expression.
[0121] In some embodiments of the present application, the computing device may further include:
[0122] An alarm notification generation module is configured to generate a combined condition abnormality alarm notification based on all judgment condition expressions in a preset composite variable alarm rule and the alarm information component values corresponding to the judgment condition expressions. The combined condition abnormality alarm notification includes one or more of: an alarm event name, alarm content, and an alarm generation time; wherein the alarm content is an alarm statement including the alarm information component values;
[0123] The alarm notification execution module is used to send the combined condition abnormal alarm notification to the user end so that the operation and maintenance personnel can maintain the system according to the combined condition abnormal alarm notification.
[0124] In some embodiments of the present application, the computing device may further include:
[0125] A single variable alarm rule acquisition module is used to obtain preset single variable alarm rules;
[0126] The single-variable alarm data analysis module is used to parse and process the time series data through the alarm engine according to the single-variable alarm rules to obtain the analysis results;
[0127] A single variable alarm determination module is used to determine that the time series data meets the single variable alarm rule if the time series data meets the judgment condition expression of the fault alarm in the single variable alarm rule in the analysis result;
[0128] The single condition alarm notification generation module is used to generate a single condition abnormal alarm notification according to the preset judgment condition expression of the single variable alarm rule and the time series data corresponding to the judgment condition expression when it is determined that the time series data meets the single variable alarm rule;
[0129] The single condition alarm notification execution module is used to send the single condition abnormal alarm notification to the user end so that the operation and maintenance personnel can maintain the system according to the single condition abnormal alarm notification.
[0130] In some embodiments of the present application, the computing device may further include:
[0131] The time series data receiving module is used to receive the time series data sent by the server cluster through the Internet; wherein the time series data is the system data collected by the server cluster through the data collection module; the time series data includes: one or more of business system data, open source component data, and operating system data.
[0132] In some embodiments of the present application, the processing information acquisition module 301 may further include:
[0133] A data type determination submodule is used to determine the type of time series data corresponding to the composite variable;
[0134] An alarm parameter acquisition module is used to determine, based on the type of time series data, a trigger threshold for triggering a single fault alarm in the fault alarm and a threshold judgment relationship corresponding to the trigger threshold;
[0135] A conditional expression generation module is used to determine the judgment condition expression for triggering the fault alarm based on the trigger threshold and the threshold judgment relationship;
[0136] The composite variable alarm rule generation module is used to connect the judgment condition expressions corresponding to all fault alarms to obtain the composite variable alarm rules.
[0137] In summary, the embodiment of the present application provides a calculation device for the component value of alarm information, which first obtains the time series data generated by the server cluster and the preset composite variable alarm rule, parses and processes the time series data through the alarm engine, and when it is determined that the time series data meets the requirements for triggering the composite variable alarm rule, the preset composite variable alarm rule is semantically segmented to obtain a judgment condition expression for a single fault alarm; finally, the time series data is extracted and calculated according to the specific content of each judgment condition expression to obtain the component value of each alarm information; in this way, when the operation and maintenance personnel receive the fault alarm information triggered by the composite variable alarm rule, they can see the specific value of the data corresponding to each fault alarm in detail, so as to locate the source of the fault more accurately and quickly and perform adaptive maintenance, thereby improving the operation and maintenance efficiency of the server.
[0138] 10 is a block diagram of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0139] 10 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0140] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 602 may include one or more modules to facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
[0141] The memory 604 is used to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, multimedia, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0142] The power supply assembly 606 provides power to the various components of the electronic device 600. The power supply assembly 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.
[0143] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of touch or slide actions, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0144] The audio component 610 is used to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), which is used to receive external audio signals when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0145] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.
[0146] Sensor assembly 614 includes one or more sensors for providing various status assessments of electronic device 600. For example, sensor assembly 614 can detect the open / closed state of electronic device 600, the relative positioning of components, such as the display and keypad of electronic device 600. Sensor assembly 614 can also detect changes in the position of electronic device 600 or a component of electronic device 600, the presence or absence of user contact with electronic device 600, the orientation or acceleration / deceleration of electronic device 600, and changes in the temperature of electronic device 600. Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 614 may also include an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, or a temperature sensor. Communication assembly 616 facilitates wired or wireless communication between electronic device 600 and other devices. Electronic device 600 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0147] In an exemplary embodiment, the electronic device 600 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to implement a method for calculating an alarm information component value provided in an embodiment of the present application.
[0148] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, which can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0149] Figure 11 is a block diagram of an electronic device 700 according to an exemplary embodiment. For example, electronic device 700 can be provided as a server. Referring to Figure 11, electronic device 700 includes a processing component 722, which further includes one or more processors, and memory resources represented by memory 732 for storing instructions executable by processing component 722, such as application programs. The application programs stored in memory 732 may include one or more modules, each corresponding to a set of instructions. In addition, processing component 722 is configured to execute instructions to perform a method for calculating an alarm information component value provided in an embodiment of the present application. Electronic device 700 may also include a power supply component 726 configured to perform power management for electronic device 700, a wired or wireless network interface 750 configured to connect electronic device 700 to a network, and an input / output (I / O) interface 758. Electronic device 700 may operate based on an operating system stored in memory 732, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.
[0150] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0151] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for calculating the component value of an alarm information, characterized in that: Applied to a cloud server, the method includes: Acquire time series data of a server cluster and obtain preset composite variable alarm rules; wherein the time series data is used to characterize the operating status of each server in the server cluster; According to the composite variable alarm rule, the time series data is parsed and processed by the alarm engine to obtain the parsing result; one composite variable alarm rule includes: at least two judgment condition expressions for different faults; In the analysis result, if the time series data satisfies the judgment condition expressions of all fault alarms in the composite variable alarm rule at the same time, it is determined that the time series data satisfies the composite variable alarm rule, and the composite variable alarm rule is sent to the semantic analysis engine; The semantic analysis engine is used to semantically segment the composite variable alarm rule to obtain judgment condition expressions for different fault alarms; According to the time series data corresponding to the judgment condition expression, the alarm information component value of the fault alarm is obtained.
2. The method according to claim 1, characterized in that The obtaining, according to the time series data corresponding to the judgment condition expression, the alarm information component value of the fault alarm includes: According to the segmented judgment condition expression, obtaining a calculation variable corresponding to the judgment condition expression from the time series data, and generating a calculation variable array; Sending the calculated variable array to a time series database; Component calculation is performed on the calculation variable array through the time series database to obtain component values of the alarm information.
3. The method according to claim 2, characterized in that The performing component calculation on the calculation variable array through the time series database to obtain the component value of the alarm information includes: Obtaining, through the application programming interface of the time series database, the value of the calculation variable corresponding to the judgment condition expression of the fault alarm in the calculation variable array; The alarm information component value is determined according to the content display format of the fault alarm in the judgment condition expression and the value of the calculation variable.
4. The method according to claim 1, characterized in that: After obtaining the alarm information component value of the fault alarm according to the time series data corresponding to the judgment condition expression, the method further includes: Generate a combined condition abnormal alarm notification according to all judgment condition expressions in the preset composite variable alarm rule and the alarm information component value corresponding to the judgment condition expression, wherein the combined condition abnormal alarm notification includes: one or more of the alarm event name, alarm content, and alarm generation time; wherein the alarm content is an alarm statement including the alarm information component value; The combined condition abnormality alarm notification is sent to the user end, so that the operation and maintenance personnel can maintain the system according to the combined condition abnormality alarm notification.
5. The method according to claim 1, characterized in that After acquiring the time series data of the server cluster, the method further includes: Get the preset single variable alarm rules; According to the single variable alarm rule, the time series data is parsed by an alarm engine to obtain an analysis result; In the analysis result, if the time series data satisfies the judgment condition expression of the fault alarm in the single variable alarm rule, it is determined that the time series data satisfies the single variable alarm rule; When it is determined that the time series data satisfies the single variable alarm rule, a single variable alarm rule is generated according to the judgment condition expression of the preset single variable alarm rule and the time series data corresponding to the judgment condition expression. Abnormal alarm notification; The single condition abnormal alarm notification is sent to the user end, so that the operation and maintenance personnel can maintain the system according to the single condition abnormal alarm notification.
6. The method according to claim 1, characterized in that The obtaining of time series data of the server cluster includes: Receive time series data sent by a server cluster via the Internet; wherein the time series data is system data collected by the server cluster through a data collection module; the time series data includes: one or more of business system data, open source component data, and operating system data.
7. The method according to claim 1, characterized in that The step of obtaining a preset composite variable alarm rule includes: Determine the type of time series data corresponding to the composite variable; Determine, according to the type of the time series data, a triggering threshold for triggering a single fault alarm in the fault alarm and a threshold judgment relationship corresponding to the triggering threshold; According to the triggering threshold and the threshold judgment relationship, a judgment condition expression for triggering a fault alarm is determined; and the judgment condition expressions corresponding to all fault alarms are connected to obtain a composite variable alarm rule.
8. The method according to claim 6, characterized in that The operating system data includes: one or more of: CPU load rate, system memory occupancy rate, graphics processor temperature, and graphics processor power consumption; The open source component data includes: one or more of cloud network packet loss rate and cloud network packet error rate; The business system data includes: one or more of server cluster inlet traffic and server cluster outlet traffic.
9. A device for calculating a warning information component value, characterized in that: Applied to a cloud server, the computing device comprises: A processing information acquisition module is used to acquire time series data of a server cluster and to acquire preset compound variable alarm rules; wherein the time series data is used to characterize the operating status of each server in the server cluster; A time series data parsing module is used to parse the time series data through the alarm engine according to the composite variable alarm rule to obtain a parsing result; one composite variable alarm rule includes: at least two judgment condition expressions for different faults; A composite variable alarm determination module, configured to determine, in the analysis result, if the time series data simultaneously satisfies the judgment condition expressions of all fault alarms in the composite variable alarm rule, that the time series data satisfies the composite variable alarm rule, and send the composite variable alarm rule to the semantic analysis engine; A variable alarm rule segmentation module, used to perform semantic segmentation on the composite variable alarm rule through the semantic analysis engine to obtain judgment condition expressions for different fault alarms; The alarm information component value generation module is used to obtain the alarm information component value of the fault alarm according to the time series data corresponding to the judgment condition expression.
10. The computing device according to claim 9, characterized in that The warning information component value generation module includes: A calculation variable array acquisition submodule is used to acquire the calculation variables corresponding to the judgment condition expression from the time series data according to the judgment condition expression after segmentation, and generate a calculation variable array; The calculation variable array acquisition module sending submodule is used to send the calculation variable array to the time series database; the alarm information component value calculation submodule is used to perform component calculation on the calculation variable array through the time series database to obtain the alarm information component value.
11. The computing device according to claim 10, characterized in that The alarm information component value calculation submodule includes: A calculation variable array acquisition unit, used to acquire the value of the calculation variable corresponding to the judgment condition expression of the fault alarm in the calculation variable array through the application programming interface of the time series database; The alarm information component value calculation unit is used to determine the alarm information component value according to the content display format of the fault alarm in the judgment condition expression and the value of the calculation variable.
12. The computing device according to claim 9, characterized in that The device also includes: A combined alarm notification generation module, used to generate a combined condition abnormal alarm notification according to all judgment condition expressions in a preset composite variable alarm rule and the alarm information component value corresponding to the judgment condition expression, wherein the combined condition abnormal alarm notification includes: one or more of the alarm event name, alarm content, and alarm generation time; wherein the alarm content is an alarm statement including the alarm information component value; The combined alarm notification execution module is used to send the combined condition abnormal alarm notification to the user end, so that the operation and maintenance personnel can maintain the system according to the combined condition abnormal alarm notification.
13. The computing device according to claim 9, characterized in that: The computing device further comprises: A single variable alarm rule acquisition module is used to obtain a preset single variable alarm rule; A single variable alarm data analysis module is used to analyze the time series data through the alarm engine according to the single variable alarm rule to obtain an analysis result; A single variable alarm determination module, configured to determine, in the analysis result, if the time series data satisfies the judgment condition expression of the fault alarm in the single variable alarm rule, that the time series data satisfies the single variable alarm rule; A single condition alarm notification generating module, used to generate a single condition abnormal alarm notification according to a preset judgment condition expression of the single variable alarm rule and the time series data corresponding to the judgment condition expression when it is determined that the time series data satisfies the single variable alarm rule; The single condition alarm notification execution module is used to send the single condition abnormal alarm notification to the user end, so that the operation and maintenance personnel can maintain the system according to the single condition abnormal alarm notification.
14. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 8.
15. A storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method as claimed in any one of claims 1 to 8.
Citation Information
Patent Citations
Mobile network fault analysis system based on intelligent terminal
CN107018030A
Alarm processing method and device, computer equipment and storage medium
CN107832200A
Fault alarm processing method, system, and computer-readable storage medium
CN108989132A
Multi-dimensional game system alarm method and system thereof
CN112988523A
Monitoring method, device and equipment and computer storage medium
CN113704065A
Cited By
Time series data quality classification system based on big data real-time engine
CN119357230A
Intelligent early warning method and system for hardware fault of ruggedized computer
CN121210243A
