Service monitoring method and device, electronic equipment and storage medium

By calculating the historical and current values ​​of business detection indicators, predicting thresholds, judging cloud storage business failures, and realizing automatic alarms, it solves the problem of poor timeliness of cloud storage business failures and improves monitoring accuracy and user experience.

CN118660174APending Publication Date: 2024-09-17CHINA TELECOM CORP LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410650388.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In scenarios where massive devices are connected, cloud storage service failures are difficult to detect and handle in a timely manner, resulting in poor user experience. Existing technologies rely on manual back-checking, which is inefficient and timely.

Method used

By obtaining the historical values ​​and current values ​​of business detection indicators in advance, the alarm index is calculated based on the prediction threshold, business faults are determined, and automatic alarms and rapid positioning are achieved.

Benefits of technology

It improves the timeliness and accuracy of business monitoring, reduces the reliance on manual troubleshooting, can quickly detect and handle cloud storage business failures, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118660174A
    Figure CN118660174A
Patent Text Reader

Abstract

The invention provides a service monitoring method and device, electronic equipment and a storage medium. The service monitoring method comprises the following steps: for each service detection index corresponding to a service, obtaining a historical numerical value of the service detection index under each dimension corresponding to the service detection index in advance, and for each dimension, obtaining a prediction threshold value of the service detection index under the dimension based on the historical numerical value of the service detection index under the dimension; for each service detection index corresponding to the service, obtaining a current value of the service detection index under each dimension corresponding to the service detection index; for each dimension, comparing the current numerical value of the service detection index under the dimension with the prediction threshold value of the service detection index under the dimension, and obtaining an alarm index of the service detection index under the dimension; and judging whether a service fault corresponding to the service detection index occurs or not based on the alarm index of the service detection index in each dimension. According to the invention, the timeliness and accuracy of service monitoring are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a service monitoring method, device, electronic device and storage medium. Background Art

[0002] Cloud storage is a storage method that stores data on a cloud server through the Internet. Cloud storage has advantages such as automatic backup, remote access, and high reliability. With the gradual improvement of security monitoring systems, various industries are paying more and more attention to the value of data, and the demand for data storage is increasing. Cloud storage has become a more popular storage method with its large storage space, high data security, and ease of use.

[0003] In actual use, cloud storage needs to consider issues such as network bandwidth and storage costs. In order to maximize the use of storage space and reduce bandwidth consumption, an event-based dynamic storage method is introduced for video storage. Its operating mechanism is as follows: when the device detects a motion detection event, the device obtains the cloud storage streaming address through the cloud platform. After receiving the request, the cloud platform generates a streaming task, allocates a storage cluster server and a stream ID, and returns it to the device. After the device obtains the address, it sends a video stream to the address. After the server receives the stream data, it binds the stream task according to the stream ID to receive, process and store the file.

[0004] However, in the scenario of massive device access, tens of millions of devices generate hundreds of millions of data every day, and cloud storage service failures often occur. However, it is impossible to manually check the device status and the operation of cloud storage services one by one. In the past, management often relies on users reporting problems and then conducting reverse checks, but this method is inefficient and timeless. Summary of the invention

[0005] In view of the above problems, the embodiments of the present application propose a business monitoring method, device, electronic device and storage medium to improve the timeliness and accuracy of business monitoring.

[0006] According to one aspect of an embodiment of the present application, a service monitoring method is provided, the method comprising:

[0007] For each service detection indicator corresponding to the service, obtain in advance a historical value of the service detection indicator in each dimension corresponding to the service detection indicator, and for each dimension, obtain a prediction threshold value of the service detection indicator in the dimension based on the historical value of the service detection indicator in the dimension;

[0008] For each service detection indicator corresponding to the service, obtain the current value of the service detection indicator in each dimension corresponding to the service detection indicator;

[0009] For each dimension, based on the current value of the business detection indicator in the dimension and the predicted threshold value of the business detection indicator in the dimension, an alarm index of the business detection indicator in the dimension is obtained;

[0010] Based on the alarm index of the business detection indicator in each dimension, it is determined whether a business failure corresponding to the business detection indicator occurs.

[0011] Optionally, the dimension includes a business dimension and a clustering dimension; obtaining the historical value of the business detection indicator in each dimension corresponding to itself, including: when the dimension is a business dimension, based on the existing log information under the business dimension, calculating the historical value of the business detection indicator in the business dimension; when the dimension is a clustering dimension, calculating the historical value of the business detection indicator based on the existing log information, clustering the historical values ​​of the business detection indicator, and obtaining the historical value of the business detection indicator in the clustering dimension.

[0012] Optionally, based on the historical values ​​of the business detection indicator in the dimension, a predicted threshold value of the business detection indicator in the dimension is obtained, including: based on the historical values ​​of the business detection indicator in the dimension, an initial threshold value of the business detection indicator in the dimension is obtained; based on the initial threshold value of the business detection indicator in the dimension, a predicted threshold value of the business detection indicator in the dimension is obtained.

[0013] Optionally, based on the historical values ​​of the business detection indicator in the dimension, an initial threshold value of the business detection indicator in the dimension is obtained, including: calculating the mean and standard deviation of the historical values ​​of the business detection indicator in the dimension; taking the sum of the preset multiples of the mean and the standard deviation as the initial threshold value, or taking the difference between the preset multiples of the mean and the standard deviation as the initial threshold value.

[0014] Optionally, based on the initial threshold of the business detection indicator in the dimension, a predicted threshold of the business detection indicator in the dimension is obtained, including: performing time series prediction based on the initial threshold of the business detection indicator in the dimension to obtain the predicted threshold of the business detection indicator in the dimension.

[0015] Optionally, the dimension includes a business dimension and a clustering dimension; obtaining the current value of the business detection indicator in each dimension corresponding to itself, including: when the dimension is a business dimension, based on the incremental log information under the business dimension, calculating the current value of the business detection indicator in the business dimension; when the dimension is a clustering dimension, calculating the current value of the business detection indicator based on the incremental log information, clustering the current value of the business detection indicator, and obtaining the current value of the business detection indicator in the clustering dimension.

[0016] Optionally, based on the current value of the business detection indicator in the dimension and the predicted threshold value of the business detection indicator in the dimension, an alarm index of the business detection indicator in the dimension is obtained, including: when the current value of the business detection indicator in the dimension does not meet the predicted threshold value of the business detection indicator in the dimension, determining that the alarm index of the business detection indicator in the dimension is a first value, and the first value indicates that an alarm is required; when the current value of the business detection indicator in the dimension meets the predicted threshold value of the business detection indicator in the dimension, determining that the alarm index of the business detection indicator in the dimension is a second value, and the second value indicates that no alarm is required.

[0017] Optionally, based on the alarm index of the business detection indicator in each dimension, it is determined whether a business failure corresponding to the business detection indicator occurs, including: performing voting based on the alarm index of the business detection indicator in each dimension to obtain a voting result; when the voting result indicates that an alarm is needed, it is determined that a business failure corresponding to the business detection indicator occurs.

[0018] Optionally, the method further includes: when a business failure corresponding to the business detection indicator occurs, issuing an alarm notification based on the alarm index of the business detection indicator in each dimension.

[0019] Optionally, the service detection indicator includes at least one of a platform-side service detection indicator and a device-side service detection indicator.

[0020] According to another aspect of an embodiment of the present application, a service monitoring device is provided, the device comprising:

[0021] A processing module, used to obtain, in advance, for each service detection indicator corresponding to the service, a historical value of the service detection indicator in each dimension corresponding to the service detection indicator, and, for each dimension, based on the historical value of the service detection indicator in the dimension, obtain a prediction threshold value of the service detection indicator in the dimension;

[0022] A first acquisition module is used to acquire, for each business detection indicator corresponding to the business, a current value of the business detection indicator in each dimension corresponding to the business detection indicator;

[0023] A second acquisition module is used to obtain, for each dimension, an alarm index of the business detection indicator in the dimension based on a comparison between a current value of the business detection indicator in the dimension and a predicted threshold value of the business detection indicator in the dimension;

[0024] The judgment module is used to judge whether a business failure corresponding to the business detection indicator occurs based on the alarm index of the business detection indicator in each dimension.

[0025] Optionally, the dimension includes a business dimension and a clustering dimension; the processing module includes: a first value acquisition unit, used to calculate the historical value of the business detection indicator under the business dimension based on the existing log information under the business dimension when the dimension is the business dimension; a second value acquisition unit, used to calculate the historical value of the business detection indicator based on the existing log information when the dimension is the clustering dimension, cluster the historical values ​​of the business detection indicator, and obtain the historical value of the business detection indicator under the clustering dimension.

[0026] Optionally, the processing module includes: a first threshold acquisition unit, used to obtain the initial threshold of the business detection indicator in the dimension based on the historical value of the business detection indicator in the dimension; a second threshold acquisition unit, used to obtain the predicted threshold of the business detection indicator in the dimension based on the initial threshold of the business detection indicator in the dimension.

[0027] Optionally, the first threshold acquisition unit is specifically used to calculate the mean and standard deviation of the historical values ​​of the business detection indicator under the dimension; take the sum of the preset multiples of the mean and the standard deviation as the initial threshold, or take the difference between the preset multiples of the mean and the standard deviation as the initial threshold.

[0028] Optionally, the second threshold acquisition unit is specifically used to perform time series prediction based on the initial threshold of the business detection indicator in the dimension to obtain a prediction threshold of the business detection indicator in the dimension.

[0029] Optionally, the dimension includes a business dimension and a clustering dimension; the first acquisition module includes: a third value acquisition unit, used to calculate the current value of the business detection indicator under the business dimension based on the incremental log information under the business dimension when the dimension is the business dimension; a fourth value acquisition unit, used to calculate the current value of the business detection indicator based on the incremental log information when the dimension is the clustering dimension, cluster the current value of the business detection indicator, and obtain the current value of the business detection indicator under the clustering dimension.

[0030] Optionally, the second acquisition module includes: a first determination unit, used to determine that the alarm index of the business detection indicator in the dimension is a first value when the current value of the business detection indicator in the dimension does not meet the predicted threshold of the business detection indicator in the dimension, and the first value indicates that an alarm is needed; a second determination unit, used to determine that the alarm index of the business detection indicator in the dimension is a second value when the current value of the business detection indicator in the dimension meets the predicted threshold of the business detection indicator in the dimension, and the second value indicates that no alarm is needed.

[0031] Optionally, the judgment module is specifically used to perform voting based on the alarm index of the business detection indicator in each dimension to obtain a voting result; when the voting result indicates that an alarm is required, it is determined that a business failure corresponding to the business detection indicator has occurred.

[0032] Optionally, the device further includes: a notification module, configured to issue an alarm notification based on an alarm index of the business detection indicator in each dimension when a business failure corresponding to the business detection indicator occurs.

[0033] Optionally, the service detection indicator includes at least one of a platform-side service detection indicator and a device-side service detection indicator.

[0034] According to another aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; and one or more computer-readable storage media having instructions stored thereon; when the instructions are executed by the one or more processors, the processors execute the business monitoring method as described in any one of the above items.

[0035] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the service monitoring method as described in any one of the above items.

[0036] In the embodiment of the present application, for each business detection indicator corresponding to the business, the historical value of the business detection indicator in each dimension corresponding to itself is obtained in advance, and for each dimension, based on the historical value of the business detection indicator in the dimension, the predicted threshold of the business detection indicator in the dimension is obtained; for each business detection indicator corresponding to the business, the current value of the business detection indicator in each dimension corresponding to itself is obtained; for each dimension, based on the current value of the business detection indicator in the dimension and the predicted threshold of the business detection indicator in the dimension, the alarm index of the business detection indicator in the dimension is obtained; based on the alarm index of the business detection indicator in each dimension, it is determined whether the business failure corresponding to the business detection indicator occurs. It can be seen that in the embodiment of the present application, the values ​​of the business detection indicators in different dimensions are analyzed, and the predicted thresholds of the business detection indicators in each dimension are predicted in advance, and the current values ​​of the business detection indicators in each dimension are compared with the corresponding predicted thresholds, so as to determine whether the business failure corresponding to the business detection indicator occurs, so that there is no need to wait for the user to report the fault before troubleshooting, which improves the timeliness of business monitoring, and improves the accuracy of business monitoring by analyzing the business detection indicators of the business itself.

[0037] 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

[0038] In order to more clearly illustrate the technical solution of the embodiment of the present application, the drawings required for use in the description of the embodiment of the present application will be briefly introduced below. Obviously, the drawings described below are only some drawings of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 It is a step flow chart of a business monitoring method in an embodiment of the present application.

[0040] Figure 2 It is a schematic diagram of a classification set of an embodiment of the present application.

[0041] Figure 3 It is a schematic diagram of a numerical distribution of an embodiment of the present application.

[0042] Figure 4 It is a schematic diagram of an offline analysis process of an embodiment of the present application.

[0043] Figure 5It is a schematic diagram of an online analysis process of an embodiment of the present application.

[0044] Figure 6 It is a structural block diagram of a business monitoring device according to an embodiment of the present application.

[0045] Figure 7 It is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0047] The service monitoring method of the embodiment of the present application can be used to monitor various applicable services, including but not limited to cloud storage services, etc.

[0048] For example, the cloud storage business has the following main problems:

[0049] On the one hand, in the entire video cloud storage business process, there are multiple systems from the device to the cloud platform, and from the cloud platform to the storage cluster. Any problem in any process or system will affect the quality of event dynamic storage. Specifically, it includes but is not limited to the loss of cloud storage files due to terminal disconnection, network disconnection, and restart, the terminal is turned on for a long time, which reduces the front-end detection sensitivity, fails, or the detection sensitivity is set too high, resulting in no corresponding cloud storage files when the event occurs, the failure of the terminal to interact with the cloud platform signaling leads to the failure to obtain the streaming address, the storage cluster storage task processing request fails or the storage file write fails, resulting in the loss of cloud storage files, etc.

[0050] On the other hand, the number of access terminals of the operator-level video surveillance system is in the millions to tens of millions. Although the equipment failure conditions are collected through the business platform and network plane log collection capabilities, they are mostly used in the post-processing process and cannot be predicted in advance to prevent problems before they happen. At the same time, since the causes of failures are numerous and complex, and the terminals and failure types can be subdivided into regions, models, manufacturers, business types, firmware versions, access networks and other situations according to specific dimensions, the fault handling personnel and handling methods for each dimension are different. The operation and maintenance personnel cannot quickly locate and handle faults through simple collection and analysis of log events. Therefore, although the operator maintains a large platform operation and terminal and network maintenance personnel, it is still unable to detect abnormal situations well and eliminate cloud storage business failures in a timely manner, resulting in many customer complaints and seriously affecting the normal production and operation activities.

[0051] In the scenario of massive device access, tens of millions of devices generate hundreds of millions of files every day. It is impossible to manually check the device status and the operation of cloud storage services one by one. In the past management, users often reported faults to conduct reverse checks, resulting in poor user experience and frequent fault reports. At the same time, as a platform capability, it is impossible to classify fault reports for massive devices, and operation and maintenance are exhausted, and users complain.

[0052] To solve the above problems, the embodiments of the present application use big data methods to uniformly collect the operating conditions of devices and platforms, establish a cloud storage quality monitoring and analysis model, generate warnings based on the model, and conduct comprehensive model evaluations on equipment from different manufacturers, business type equipment sets, regional equipment sets, storage cluster equipment sets, and the status of the entire platform. Guide the improvement of the overall governance level of the platform, quickly determine faults, and promptly discover faults and hidden dangers before users discover problems. The embodiments of the present application can achieve the following purposes: solve the stability problems of massive devices during storage, and provide early warnings and linkage processing when device interaction fails and platform failures occur; optimize the situational awareness of the platform's operation, use big data, and calculate a series of related data, so as to evaluate the overall operation of the platform in multiple dimensions and conduct model statistics.

[0053] Reference Figure 1 , showing a step flow chart of a business monitoring method in an embodiment of the present application.

[0054] like Figure 1 As shown, the service monitoring method may include the following steps:

[0055] Step 101, for each business detection indicator corresponding to the business, obtain in advance the historical value of the business detection indicator in each dimension corresponding to itself, and for each dimension, obtain the prediction threshold of the business detection indicator in the dimension based on the historical value of the business detection indicator in the dimension.

[0056] In the embodiment of the present application, at least one service detection indicator corresponding to the service is determined in advance.

[0057] In an optional implementation, the service detection index corresponding to the service may include but is not limited to at least one of the following: a platform-side service detection index, a device-side service detection index, etc. The platform may be a cloud storage platform, and the device may be any applicable terminal device.

[0058] Exemplarily, the platform-side service detection indicators may include, but are not limited to, at least one of the following: online rate of activated devices, online storage rate, service interaction success rate, storage completeness rate, and the like.

[0059] Online rate of activated devices: refers to the proportion of online devices with activated services within a set period. This indicator can be used to detect business abnormalities (such as cloud storage services) caused by device disconnection, offline, shutdown, etc. It is mainly obtained through statistical analysis of log information such as device heartbeat and device connection status.

[0060] Online storage rate: refers to the ratio of device storage time to platform storage time for services activated within a set period. This indicator can be used to detect platform storage anomalies caused by failure of device to obtain streaming address through interaction with platform. It is mainly obtained through statistical analysis of log information such as device cloud storage status, device cloud storage address acquisition status, device streaming status, device streaming completion status, and device storage service acquisition status.

[0061] Business interaction success rate: refers to the proportion of successful command interactions within the platform within a set period. This indicator can be used to detect business anomalies caused by the failure of the storage cluster to interact with the platform to obtain task requests. It is mainly obtained through statistical analysis of log information such as platform query records and platform storage records.

[0062] Storage completeness rate: refers to the ratio of device push duration to platform storage duration within a set period. This indicator can be used to detect cloud storage anomalies caused by failure to write storage files. It is mainly obtained through statistical analysis of log information such as device cloud storage address acquisition status, cloud storage query records, file information records, file writing records, and platform storage records.

[0063] Exemplarily, the device-side service detection index may include, but is not limited to, at least one of the following: device time offset, device access stability coefficient, device operating time, platform interaction success rate, device sensitivity, and the like.

[0064] Device time offset: refers to the deviation between the device time and the actual time within a set period. This indicator can be used to detect situations where cloud storage file writing fails due to abnormal device time synchronization. It is mainly obtained through statistical analysis of log information such as device heartbeat and device connection status.

[0065] Device access stability coefficient: refers to the number of times the device is disconnected from the platform within a set period. This indicator can detect cloud storage anomalies caused by device disconnection, offline, shutdown, etc. It is mainly obtained through statistical analysis of log information such as device heartbeat and device connection status.

[0066] Device operating time: refers to the continuous operating time of the device within a set period. This indicator can detect situations where the front-end detection sensitivity is reduced or the device fails due to long startup time. It is mainly obtained through statistical analysis of log information such as device heartbeat and device connection status.

[0067] Platform interaction success rate: refers to the ratio of successful to failed interactions between devices and the platform within a set period. This indicator can detect situations where cloud storage anomalies are caused by failures in the interaction between the device and the cloud platform to obtain the streaming address. It is mainly obtained through statistical analysis of log information such as device cloud storage status, device cloud storage address acquisition status, device streaming status, and device streaming completion status.

[0068] Device sensitivity: refers to the device service detection sensitivity within a set period. This indicator can detect situations where the front-end detection sensitivity is reduced or fails due to the terminal being powered on for a long time, or the detection sensitivity is set too high, resulting in no corresponding cloud storage file being generated when an event occurs. It is mainly obtained through statistical analysis of log information such as device heartbeat, device connection status, and device motion detection sensitivity.

[0069] In the embodiment of the present application, at least one dimension corresponding to each service detection indicator itself is determined in advance.

[0070] In an optional implementation, the dimension corresponding to the business detection indicator may include but is not limited to at least one of the following: business dimension, clustering dimension, and the like.

[0071] Exemplarily, the service dimension may include, but is not limited to, at least one of the following: region, model, manufacturer, service type, firmware version, access network, and the like.

[0072] The business dimensions corresponding to different business detection indicators may be the same or different, and can be set according to actual needs. This embodiment does not limit this.

[0073] The service dimension corresponding to the online rate of the activated device may include but is not limited to at least one of the following: region, model, manufacturer, service type, firmware version, access network, etc.

[0074] The service dimension corresponding to the online storage rate may include but is not limited to at least one of the following: region, model, manufacturer, service type, firmware version, access network, and the like.

[0075] The service dimension corresponding to the storage integrity rate may include, but is not limited to, at least one of the following: region, model, manufacturer, service type, firmware version, access network, and the like.

[0076] The service dimension corresponding to the device time offset may include but is not limited to at least one of the following: model, manufacturer, service type, firmware version, access network, etc.

[0077] The service dimension corresponding to the device access stability coefficient may include but is not limited to at least one of the following: region, model, manufacturer, service type, firmware version, access network, etc.

[0078] The service dimension corresponding to the device running time may include but is not limited to at least one of the following: model, manufacturer, service type, firmware version, etc.

[0079] The business dimension corresponding to the platform interaction success rate may include, but is not limited to, at least one of the following: region, model, manufacturer, business type, firmware version, access network, and the like.

[0080] The business dimension corresponding to the device sensitivity may include but is not limited to at least one of the following: model, manufacturer, firmware version, etc.

[0081] Exemplarily, the clustering dimension refers to machine clustering of business detection indicators, and the classification obtained after clustering is the clustering dimension.

[0082] In the embodiment of the present application, for each service detection indicator corresponding to the service, a historical value of the service detection indicator in each dimension corresponding to the service detection indicator is obtained in advance.

[0083] In an optional implementation manner, for any service detection indicator, a process of obtaining a historical value of the service detection indicator in each dimension corresponding to the service detection indicator may include the following steps A1 to A2:

[0084] Step A1, when the dimension is a business dimension, based on the stock log information under the business dimension, calculate the historical value of the business detection indicator under the business dimension.

[0085] In the embodiment of the present application, the log collection system can collect the stock log information related to the service detection index, wherein the stock log information may include but is not limited to the stock log information on the platform side, the stock log information on the device side, and so on.

[0086] In the embodiment of the present application, for a device, a service tag can be pre-labeled for the device according to the specific service attributes of the device. The service tag may include but is not limited to region, model, manufacturer, service type, firmware version, access network, etc., so the service tag corresponding to the device can be carried in the stock log information. Therefore, each service tag can be used as a business dimension. For any business dimension, the stock log information under the business dimension can be obtained according to the service tag corresponding to the business dimension, and then the stock log information under the business dimension can be statistically analyzed to calculate the historical value of the service detection indicator under the business dimension. The specific calculation process of the historical value of each service detection indicator under each business dimension can be processed according to actual experience, and this embodiment will not be discussed in detail here.

[0087] Among them, a business detection indicator can have multiple historical values ​​in a business dimension, thereby forming a historical value set of the business detection indicator in the business dimension. For example, for the business detection indicator of the online rate of activated equipment, in the business dimension of region, each region can correspond to an online rate of activated equipment, thereby obtaining the online rates of activated equipment corresponding to multiple regions.

[0088] For example, for the business detection indicator of the online rate of activated equipment, the existing log information under each business dimension can be obtained according to the business label division of the existing log information. Then, for each business dimension, big data statistical analysis can be performed on the existing log information such as the device heartbeat status and device connection status under the business dimension to obtain the historical value of the business detection indicator of the online rate of activated equipment under the business dimension.

[0089] For example, for the service detection indicator of the online rate of activated equipment, it can be obtained based on the online list of activated service equipment in the existing log information / (the heartbeat data of equipment connected to the national standard + the union of the list of activated service equipment). The service tags corresponding to the online rate of activated equipment are divided into several categories, including region, model, manufacturer, service type, firmware version, and access network. According to the service tags, the online rate of activated equipment is divided into several categories, including region, model, manufacturer, service type, firmware version, and access network, and data is aggregated separately.

[0090] Step A2, when the dimension is a clustering dimension, calculate the historical value of the business detection indicator based on the existing log information, cluster the historical value of the business detection indicator, and obtain the historical value of the business detection indicator under the clustering dimension.

[0091] In an embodiment of the present application, in order to further improve the accuracy of business detection, a clustering dimension is further added on the basis of the business dimension. The clustering dimension is to perform machine clustering on business detection indicators, thereby obtaining clustering groups based on machine algorithms and corresponding business detection indicators, so as to eliminate discrete points, abnormal points and other problems caused by the simple division based on business dimensions, and to simulate the overall business situation as accurately as possible.

[0092] Therefore, for any business detection indicator, the historical value of the business detection indicator can be calculated based on the overall stock log information, and the historical value of the business detection indicator can be clustered to obtain the historical value of the business detection indicator under the clustering dimension. Among them, there are multiple historical values ​​of a business detection indicator, and there are multiple historical values ​​of a business detection indicator under the clustering dimension, thereby forming a historical value set of the business detection indicator under the clustering dimension, and the set obtained by clustering can be one or more. The specific calculation process of the historical values ​​of each business detection indicator can be processed according to actual experience, and this embodiment will not be discussed in detail here.

[0093] In the embodiment of the present application, any applicable clustering method can be used for clustering, such as K-Means clustering algorithm, K-Medoids clustering algorithm, etc., and this embodiment does not limit this.

[0094] Taking K-Medoids clustering algorithm as an example, K-Medoids clustering algorithm is an unsupervised learning algorithm, which is mainly used to automatically classify similar samples into one category. K-Medoids clustering algorithm distributes data points to the nearest clustering center by calculating the distance between each data point and the clustering center. As an improvement of K-Means clustering algorithm, the clustering center selected by K-Medoids clustering algorithm is the actual data point, rather than the mean of the data. By limiting the clustering center point from the data point, the original method of directly calculating the center of gravity containing all data points is changed to finding a data point near the center of gravity as the new center point after calculating the center of gravity, and continuously iterating and calculating the sum of the distances of all other points in the current data point to the center point to be the minimum. K-Medoids clustering algorithm solves the shortcoming that K-Means clustering algorithm is easily affected by outliers. For the specific process of K-Medoids clustering algorithm, it can be processed according to actual experience, and this embodiment will not be discussed in detail here.

[0095] For example, for the business detection indicator of the online rate of activated equipment, the above steps can be used to obtain the historical value set of the online rate of activated equipment in each business dimension. Since the historical value set in the business dimension is a discrete relationship, the online rate of activated equipment can be further machine clustered to obtain the historical value set of the online rate of activated equipment in the clustering dimension, thereby eliminating discrete points and improving the accuracy of business early warning.

[0096] Figure 2 Schematic diagram of a classification set in an embodiment of the present application. Figure 2 As shown, the business detection indicators are divided into multiple categories, including M1, M2, M3, M4, M5, M6, and M', where M1, M2, M3, M4, M5, and M6 correspond to business dimensions, and M' corresponds to the clustering dimension.

[0097] In the embodiment of the present application, for each dimension of each business detection indicator, a prediction threshold value of the business detection indicator in the dimension is obtained in advance based on the historical value of the business detection indicator in the dimension.

[0098] Exemplarily, for any dimension of any service detection indicator, based on the historical value of the service detection indicator in the dimension, the process of obtaining the prediction threshold value of the service detection indicator in the dimension may include the following steps B1 to B2:

[0099] Step B1, based on the historical value of the business detection indicator in the dimension, obtain the initial threshold value of the business detection indicator in the dimension.

[0100] Exemplarily, based on the historical values ​​of the business detection indicator in the dimension, the process of obtaining the initial threshold value of the business detection indicator in the dimension may include: calculating the mean and standard deviation of the historical values ​​of the business detection indicator in the dimension; taking the sum of the preset multiples of the mean and the standard deviation as the initial threshold value, or taking the difference between the preset multiples of the mean and the standard deviation as the initial threshold value. If the business detection indicator needs to be compared with a certain upper threshold value, the sum of the preset multiples of the mean and the standard deviation is taken as the initial threshold value; if the business detection indicator needs to be compared with a certain lower threshold value, the difference between the preset multiples of the mean and the standard deviation is taken as the initial threshold value. The specific values ​​of the above-mentioned preset multiples can be set according to actual needs, and this embodiment does not limit this.

[0101] Exemplarily, the initial threshold can be calculated based on the Z-score algorithm. The Z-score is used as the standard score to measure the distance between the data point and the mean. If the data point differs from the mean by 3 standard deviations, then the Z-score = 3. Based on the 3 sigma criterion (also known as the Laida criterion), Z-score = 3 is used as the initial threshold here.

[0102]

[0103] The corresponding upper threshold is:

[0104] upper=mean(x)+3·SD(x)

[0105] The corresponding lower threshold is:

[0106] lower=mean(x)-3·SD(x)

[0107] Among them, x represents the historical value, mean(x) represents the mean of the historical value, SD(x) represents the standard deviation of the historical value, Z-score represents the Z-score of the historical value, upper represents the upper threshold, and lower represents the lower threshold. Depending on the actual situation, the upper threshold or the lower threshold is used as the initial threshold.

[0108] Figure 3 is a schematic diagram of a numerical distribution of an embodiment of the present application. Figure 3As shown, μ represents the mean and σ represents the standard deviation. It can be seen that the values ​​between μ-3σ and μ+3σ account for 99.72%. Therefore, using the data within the 99.72% probability interval as the basis for measurement, the initial threshold calculation can be performed more objectively and accurately.

[0109] Step B2: based on the initial threshold of the business detection indicator in the dimension, obtain the predicted threshold of the business detection indicator in the dimension.

[0110] Exemplarily, the process of obtaining the predicted threshold value of the business detection indicator in the dimension based on the initial threshold value of the business detection indicator in the dimension may include: performing time series prediction based on the initial threshold value of the business detection indicator in the dimension to obtain the predicted threshold value of the business detection indicator in the dimension.

[0111] In the embodiment of the present application, for each dimension corresponding to each business detection indicator, the historical value of the business detection indicator under the dimension can be obtained according to the set period (the set period can be called the historical set period), and the initial threshold of the business detection indicator under the dimension can be obtained accordingly according to the set period, that is, each set period corresponds to an initial threshold, so that time series prediction can be performed based on the initial thresholds corresponding to multiple consecutive set periods, so as to obtain the prediction thresholds corresponding to multiple future set periods (the set period can be called the future set period). The specific value of the set period can be set according to actual needs, and this embodiment does not limit this. For example, the set period can be 1 day, 2 days, and so on.

[0112] For example, the Prophet algorithm can be used for time series prediction. The Prophet algorithm can regularly roll forecasts the prediction threshold of future cycles, and perform time series predictions on the initial thresholds of various business detection indicators in various dimensions. The Prophet algorithm can not only handle some abnormal value situations in the time series, but also handle some missing value situations, and can automatically predict the trend of future time series.

[0113] The Prophet algorithm is based on the initial timestamp of the time series (that is, the various historical setting periods in the embodiments of the present application) and the initial value of the time series (that is, the initial threshold in the embodiments of the present application). It can calculate the predicted value (that is, the predicted threshold in the embodiments of the present application) of the predicted timestamp of the time series (that is, the various predicted setting periods in the embodiments of the present application). Of course, it can also calculate the lower bound of the predicted value of the time series and the upper bound of the predicted value of the time series.

[0114] The algorithm model of the Prophet algorithm is as follows:

[0115] y(t)=g(t)+s(t)+h(t)+ε(t)

[0116] The model as a whole consists of three parts:

[0117] growth

[0118] week (cyclical trend)

[0119] Holidays (the impact of holidays on the predicted value)

[0120] Among them, g(t) represents the trend term, s(t) represents the cycle term, h(t) represents the holiday term, ε(t) represents the error term or the residual term, and y(t) represents the predicted value.

[0121] g(t) represents the changing trend of the time series in the non-periodic state:

[0122]

[0123] a(t)=(a1(t),…,a S (t)) T

[0124] δ=(δ1,…,δ S ) T

[0125] γ=(γ1,…,γ S ) T

[0126] Among them, C(t) represents the carrying capacity (also known as the upper limit of the trend), k represents the growth rate, m represents the offset (also known as the midpoint position of the trend), a(t) represents the indicator function, δ represents the change in the growth rate at the change point timestamp, γ represents the adjustment parameter, and t represents the timestamp.

[0127] s(t) represents the periodic term, also known as the weekly term or the seasonal term:

[0128] Use the Fourier series to simulate the periodicity of the time series. The Fourier series of s(t) is in the form of:

[0129]

[0130] Wherein, P represents the period of the time series (i.e., the set period in the embodiment of the present application), N represents the number of such periods that are desired to be used in the model, and a n and b n Indicates setting parameters.

[0131] s(t)=X(t)β

[0132] β~Normal(0,σ 2 )

[0133] Here, σ represents the flexibility of the seasonal term and X(t) represents the function in Fourier series form.

[0134] h(t) represents the impact of potential holidays with non-fixed periods in the time series on the predicted value:

[0135] Assuming there are L holidays, the holiday effect model is:

[0136]

[0137]

[0138] κ={κ1,…,κ L} T

[0139] Among them, κ i Indicates the impact range of holidays, D i Indicates the period of time before and after holidays.

[0140] ε(t) represents the fluctuations not predicted by the model, and ε(t) follows a Gaussian distribution.

[0141] The Prophet algorithm fits these items and then adds them up to get the predicted value of the time series.

[0142] For example, predictions based on the Prophet algorithm are performed by capturing the periodicity and suddenness in the data for trend analysis, providing reliable prediction results within a certain time period and continuously revising the predicted data. The business detection indicators of the business dimension and clustering dimension are combined with the stock log collection cycle to introduce time parameters. Based on the initial threshold, the trend prediction cycle (day, week, month, etc.) is set, and the holiday effect (i.e., the sudden surge in business volume) is considered. In the time series, g(t) (the growth trend forecast at time t) is calculated by the trend upper limit, growth rate, and trend midpoint position, and finally the data trend is divided into multiple time periods to describe the data changes to adapt to the threshold change speed in different time periods. Finally, based on the Prophet algorithm, the prediction threshold of the business detection indicators of the business dimension and clustering dimension in a certain time period in the future can be obtained.

[0143] Step 102: for each service detection indicator corresponding to the service, obtain the current value of the service detection indicator in each dimension corresponding to the service detection indicator.

[0144] In an optional implementation manner, for any service detection indicator, a process of obtaining a current value of the service detection indicator in each dimension corresponding to the service detection indicator may include the following steps C1 to C2:

[0145] Step C1, when the dimension is a business dimension, based on the incremental log information under the business dimension, calculate the current value of the business detection indicator under the business dimension.

[0146] In the embodiment of the present application, incremental log information related to the service detection index can be collected by the log collection system, wherein the incremental log information may include but is not limited to the incremental log information on the platform side, the incremental log information on the device side, and so on.

[0147] When it is necessary to determine whether a service failure occurs within a current set period, incremental log information within the set period may be obtained, and the current value of the service detection indicator may be calculated based on the incremental log information within the set period.

[0148] The specific process of calculating the current value of the business detection indicator under the business dimension based on the incremental log information under the business dimension is similar to the above step A1. For details, please refer to the relevant instructions above, and this embodiment will not be discussed in detail here.

[0149] A business detection indicator may have multiple current values ​​in a business dimension, thereby forming a current value set of the business detection indicator in the business dimension.

[0150] Step C2, when the dimension is a clustering dimension, calculate the current value of the business detection indicator based on the incremental log information, cluster the current value of the business detection indicator, and obtain the current value of the business detection indicator under the clustering dimension.

[0151] The specific process of calculating the current value of the business detection indicator based on the incremental log information, clustering the current value of the business detection indicator, and obtaining the current value of the business detection indicator under the clustering dimension is similar to the above step A2, and the specific process can refer to the above related instructions, which will not be discussed in detail in this embodiment. Of course, the current value of the business detection indicator can also be clustered based on the clustering result obtained in the above step A2.

[0152] A business detection indicator has multiple current values ​​in a clustering dimension, thereby forming a current value set of the business detection indicator in the clustering dimension.

[0153] Step 103, for each dimension, based on the current value of the business detection indicator in the dimension and the predicted threshold value of the business detection indicator in the dimension, the alarm index of the business detection indicator in the dimension is obtained.

[0154] In the embodiment of the present application, the prediction threshold may be a preset threshold of multiple set periods, and thus the current value may be compared with the prediction threshold of the set period corresponding to the current value.

[0155] In an optional implementation, the process of obtaining the alarm index of the business detection indicator in the dimension based on the comparison between the current value of the business detection indicator in the dimension and the predicted threshold value of the business detection indicator in the dimension may include: when the current value of the business detection indicator in the dimension does not meet the predicted threshold value of the business detection indicator in the dimension, determining that the alarm index of the business detection indicator in the dimension is a first value, and the first value indicates that an alarm is required; when the current value of the business detection indicator in the dimension meets the predicted threshold value of the business detection indicator in the dimension, determining that the alarm index of the business detection indicator in the dimension is a second value, and the second value indicates that no alarm is required.

[0156] Exemplarily, each current value can be compared with the prediction threshold value. If the prediction threshold value is an upper threshold value, when at least one current value is greater than the prediction threshold value, it is determined that the current value does not meet the prediction threshold value, otherwise it is determined that the current value meets the prediction threshold value; or when more than a preset proportion of the current values ​​are greater than the prediction threshold value, it is determined that the current value does not meet the prediction threshold value, otherwise it is determined that the current value meets the prediction threshold value. If the prediction threshold value is a lower threshold value, when at least one current value is less than the prediction threshold value, it is determined that the current value does not meet the prediction threshold value, otherwise it is determined that the current value meets the prediction threshold value; or when more than a preset proportion of the current values ​​are less than the prediction threshold value, it is determined that the current value does not meet the prediction threshold value, otherwise it is determined that the current value meets the prediction threshold value.

[0157] Exemplarily, the average value of the current value can be compared with the prediction threshold. If the prediction threshold is an upper threshold, when the average value of the current value is greater than the prediction threshold, it is determined that the current value does not meet the prediction threshold, otherwise it is determined that the current value meets the prediction threshold. If the prediction threshold is a lower threshold, when the average value of the current value is less than the prediction threshold, it is determined that the current value does not meet the prediction threshold, otherwise it is determined that the current value meets the prediction threshold.

[0158] Exemplarily, the first value may be 1, and the second value may be 0. Of course, the first value and the second value may also be other values, which is not limited in this embodiment.

[0159] Step 104: Based on the alarm index of the service detection indicator in each dimension, determine whether a service failure corresponding to the service detection indicator occurs.

[0160] In an optional implementation, the process of determining whether a business failure corresponding to the business detection indicator occurs based on the alarm index of the business detection indicator in each dimension may include: performing voting based on the alarm index of the business detection indicator in each dimension to obtain a voting result; and determining that a business failure corresponding to the business detection indicator occurs when the voting result indicates that an alarm is required.

[0161] Exemplarily, the first sum of the alarm indexes of the business detection indicator in each dimension can be calculated, and the first sum can be used as the comprehensive alarm index of the business detection indicator; the maximum sum of the alarm indexes of the business detection indicator in each dimension can be calculated (the alarm indexes all represent the sum when an alarm is required), and half of the maximum sum can be used as the target alarm index of the business detection indicator; when the comprehensive alarm index of the business detection indicator is greater than the target alarm index of the business detection indicator, it is determined that a business failure corresponding to the business detection indicator has occurred.

[0162] In the prediction threshold construction method, the same business detection indicator adopts multiple classification methods such as business dimension and clustering dimension, and there are differences in the comparison and judgment of the prediction thresholds of the same business detection indicator in different dimensions.

[0163] The voting method is an integrated learning model that follows the principle of majority rule. It reduces variance by integrating multiple models, thereby improving the robustness of the model.

[0164] For example, for the service detection indicator of the online rate of activated equipment, the service dimensions of the corresponding equipment are divided into six categories: region, model, manufacturer, service type, firmware version, and access network (i.e., M=6), and the corresponding clustering dimension is 1 category (i.e., M′=1). For each dimension, the current value of the online rate of activated equipment under the dimension is compared with the corresponding prediction threshold of the online rate of activated equipment under the dimension. If the current value does not meet the prediction threshold, the alarm index of the online rate of activated equipment under the dimension is set to 1. The alarm index under each dimension is added to obtain the comprehensive alarm index of the online rate of activated equipment, and half of the maximum sum of the alarm indexes under each dimension (e.g., 7) is used as the target alarm index of the online rate of activated equipment. If the comprehensive alarm index is greater than the target alarm index, it is determined that the service failure corresponding to the online rate of activated equipment occurs (i.e., for the online rate of activated equipment, it is required that 4 of the 7 dimensions exceed the corresponding prediction threshold before the service failure is determined). If a service failure is determined when the comprehensive alarm index is less than or equal to the target alarm index, it means that each service failure will be handled, which will bring great challenges to the overall operation and maintenance work. For individual service failures that have not been determined but actually exist, users can actively initiate fault reporting traffic. If a service failure is determined when the comprehensive alarm index is equal to the maximum sum of the alarm indices, it is an ideal state based on the premise of maximizing the reduction of operation and maintenance costs and reducing the workload of operation and maintenance.

[0165] At the same time, in a possible embodiment, a certain weight coefficient can also be added to each specific dimension, and the weight can be divided according to business experience, model operation status, alarm and fault handling feedback results, etc. to determine the weight of each dimension.

[0166] In an optional implementation, when it is determined that a service failure corresponding to the service detection indicator occurs, an alarm notification is issued based on the alarm index of the service detection indicator in each dimension.

[0167] Here are some examples:

[0168] A service failure corresponding to the platform-side service detection indicator exceeding the threshold occurs:

[0169] Online rate of activated equipment: If the alarm index indicating the need for an alarm is based on dimensions such as region, service type, and access network, notify the municipal or provincial telecommunications company by phone or email to troubleshoot terminal and network faults; if the alarm index indicating the need for an alarm is based on dimensions such as model, manufacturer, and firmware version, notify the equipment manufacturer to troubleshoot terminal faults, upgrade the firmware version, and perform other operations.

[0170] Online storage rate: If the alarm index that requires an alarm is the region, service type, access network and other dimensions, notify the city or state telecommunications company by phone / email to troubleshoot the terminal and network faults; if the alarm index that requires an alarm is the model, manufacturer, firmware version and other dimensions, notify the equipment manufacturer to troubleshoot the terminal faults, upgrade the firmware version and other operations.

[0171] Business interaction success rate: This item is mainly within the platform, that is, the interaction between the cloud platform and the storage cluster is abnormal, and the platform operation and maintenance personnel mainly perform troubleshooting.

[0172] Storage integrity rate: If the alarm index that requires an alarm is the region, service type, access network and other dimensions, notify the city or state telecommunications company by phone / email to troubleshoot the terminal and network faults; if the alarm index that requires an alarm is the model, manufacturer, firmware version and other dimensions, notify the equipment manufacturer to troubleshoot the terminal faults, upgrade the firmware version and other operations.

[0173] A service failure corresponding to the service detection indicator on the device side occurs:

[0174] Equipment time offset: If the alarm index that requires an alarm is the business type, access network and other dimensions, notify the municipal and provincial telecommunications companies by phone / email to troubleshoot the terminal and network faults; if the alarm index that requires an alarm is the model, manufacturer, firmware version and other dimensions, notify the equipment manufacturer to handle it.

[0175] Equipment access stability coefficient: If the alarm index that requires an alarm is based on dimensions such as region, service type, and access network, notify the city or state telecommunications company by phone or email to troubleshoot terminal and network faults; if the alarm index that requires an alarm is based on dimensions such as model, manufacturer, and firmware version, notify the equipment manufacturer to perform terminal troubleshooting, firmware version upgrades, and other operations.

[0176] Device running time: If the alarm index indicating the need for an alarm is a dimension such as model, manufacturer, business type, firmware version, etc., the platform side will restart the device according to the specific business dimension.

[0177] Platform interaction success rate: If the alarm index that requires an alarm is the region, service type, access network and other dimensions, notify the city or state telecommunications company by phone / email to troubleshoot the terminal and network faults; if the alarm index that requires an alarm is the model, manufacturer, firmware version and other dimensions, notify the equipment manufacturer to troubleshoot the terminal faults, upgrade the firmware version and other operations; at the same time, load adjustments can be made according to the specific business dimensions based on the load conditions of the computer room and server.

[0178] Device sensitivity: Analyze the model, manufacturer, and firmware version corresponding to the alarm index that requires an alarm, compare it with the predicted threshold of the firmware of this type, and when triggered, link the device sensitivity setting function to make adjustments based on specific business dimensions.

[0179] In an embodiment of the present application, the values ​​of the business detection indicators in different dimensions are analyzed. By pre-predicting the prediction thresholds of the business detection indicators in each dimension and comparing the current values ​​of the business detection indicators in each dimension with the corresponding prediction thresholds, it is possible to determine whether a business failure corresponding to the business detection indicator occurs. This eliminates the need to wait for the user to report a fault before conducting troubleshooting, thereby improving the timeliness of business monitoring. In addition, by analyzing the business detection indicators of the business itself, the accuracy of business monitoring is improved.

[0180] The service monitoring process in the embodiment of the present application may include an offline analysis process and an online analysis process, which are introduced below respectively.

[0181] Figure 4 Schematic diagram of an offline analysis process of an embodiment of the present application. Figure 4 As shown, the offline analysis process may include: analyzing factors affecting business quality, presetting business detection indicators and business dimensions; collecting existing log information; statistically analyzing the historical values ​​of each business detection indicator in each business dimension based on the existing log information; clustering the business detection indicators based on the existing log information to obtain the historical values ​​of each business detection indicator in the clustering dimension; calculating the initial threshold of each business detection indicator in each dimension; performing time series prediction based on the initial threshold to obtain the prediction threshold of each business detection indicator in each dimension.

[0182] Figure 5 Schematic diagram of an online analysis process of an embodiment of the present application. Figure 5 As shown, the online analysis process may include: collecting incremental log information; statistically analyzing the current value of each business detection indicator in each business dimension based on the incremental log information; obtaining the current value of each business detection indicator in the clustering dimension based on the incremental log information; comparing the current value of each business detection indicator in each dimension with the corresponding prediction threshold to obtain the alarm index of each business detection indicator in each dimension; determining whether the business failure corresponding to each business detection indicator occurs by voting method according to the alarm index; and performing linkage alarm notification according to the alarm index and corresponding dimension of each business detection indicator.

[0183] The technical solution of the embodiment of the present application has the following beneficial effects:

[0184] (1) The business detection indicators that affect the success rate of cloud storage services are collected and extracted from the platform and equipment logs in multiple dimensions and pushed to the big data analysis module. The business detection indicator items that exceed the threshold are also processed in a linked manner. This can quickly locate and warn cloud storage business failures, solving the problem of difficult fault location caused by the lack of coordination between the end and the cloud in event dynamic storage scenarios.

[0185] (2) Through clustering and time series prediction analysis of business detection indicators, the thresholds of multiple classification methods such as machine clustering and experience-based business dimension classification are integrated, and a voting mechanism is combined to eliminate the threshold differences of the same log in different classifications or different business dimensions, thereby greatly improving the accuracy of business monitoring.

[0186] Reference Figure 6 , shows a structural block diagram of a business monitoring device in an embodiment of the present application.

[0187] like Figure 6 As shown, the service monitoring device may include the following modules:

[0188] The processing module 601 is used to obtain, in advance, for each service detection indicator corresponding to the service, a historical value of the service detection indicator in each dimension corresponding to the service detection indicator, and, for each dimension, obtain a prediction threshold value of the service detection indicator in the dimension based on the historical value of the service detection indicator in the dimension;

[0189] A first acquisition module 602 is used to acquire, for each service detection indicator corresponding to the service, a current value of the service detection indicator in each dimension corresponding to the service detection indicator;

[0190] A second acquisition module 603 is used to obtain, for each dimension, an alarm index of the service detection indicator in the dimension based on a comparison between a current value of the service detection indicator in the dimension and a predicted threshold value of the service detection indicator in the dimension;

[0191] The judgment module 604 is used to judge whether a business failure corresponding to the business detection indicator occurs based on the alarm index of the business detection indicator in each dimension.

[0192] Optionally, the dimension includes a business dimension and a clustering dimension; the processing module 601 includes: a first value acquisition unit, used to calculate the historical value of the business detection indicator under the business dimension based on the existing log information under the business dimension when the dimension is the business dimension; a second value acquisition unit, used to calculate the historical value of the business detection indicator based on the existing log information when the dimension is the clustering dimension, cluster the historical values ​​of the business detection indicator, and obtain the historical value of the business detection indicator under the clustering dimension.

[0193] Optionally, the processing module 601 includes: a first threshold acquisition unit, used to obtain the initial threshold of the business detection indicator in the dimension based on the historical value of the business detection indicator in the dimension; a second threshold acquisition unit, used to obtain the predicted threshold of the business detection indicator in the dimension based on the initial threshold of the business detection indicator in the dimension.

[0194] Optionally, the first threshold acquisition unit is specifically used to calculate the mean and standard deviation of the historical values ​​of the business detection indicator under the dimension; take the sum of the preset multiples of the mean and the standard deviation as the initial threshold, or take the difference between the preset multiples of the mean and the standard deviation as the initial threshold.

[0195] Optionally, the second threshold acquisition unit is specifically used to perform time series prediction based on the initial threshold of the business detection indicator in the dimension to obtain a prediction threshold of the business detection indicator in the dimension.

[0196] Optionally, the dimension includes a business dimension and a clustering dimension; the first acquisition module 602 includes: a third value acquisition unit, used to calculate the current value of the business detection indicator under the business dimension based on the incremental log information under the business dimension when the dimension is the business dimension; a fourth value acquisition unit, used to calculate the current value of the business detection indicator based on the incremental log information when the dimension is the clustering dimension, cluster the current value of the business detection indicator, and obtain the current value of the business detection indicator under the clustering dimension.

[0197] Optionally, the second acquisition module 603 includes: a first determination unit, used to determine that the alarm index of the business detection indicator in the dimension is a first value when the current value of the business detection indicator in the dimension does not meet the predicted threshold of the business detection indicator in the dimension, and the first value indicates that an alarm is required; a second determination unit, used to determine that the alarm index of the business detection indicator in the dimension is a second value when the current value of the business detection indicator in the dimension meets the predicted threshold of the business detection indicator in the dimension, and the second value indicates that no alarm is required.

[0198] Optionally, the judgment module 604 is specifically used to perform voting based on the alarm index of the business detection indicator in each dimension to obtain a voting result; when the voting result indicates that an alarm is required, it is determined that a business failure corresponding to the business detection indicator has occurred.

[0199] Optionally, the device further includes: a notification module, configured to issue an alarm notification based on an alarm index of the business detection indicator in each dimension when a business failure corresponding to the business detection indicator occurs.

[0200] Optionally, the service detection indicator includes at least one of a platform-side service detection indicator and a device-side service detection indicator.

[0201] In an embodiment of the present application, the values ​​of the business detection indicators in different dimensions are analyzed. By pre-predicting the prediction thresholds of the business detection indicators in each dimension and comparing the current values ​​of the business detection indicators in each dimension with the corresponding prediction thresholds, it is possible to determine whether a business failure corresponding to the business detection indicator occurs. This eliminates the need to wait for the user to report a fault before conducting troubleshooting, thereby improving the timeliness of business monitoring. In addition, by analyzing the business detection indicators of the business itself, the accuracy of business monitoring is improved.

[0202] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0203] In an embodiment of the present application, an electronic device is also provided. The electronic device may include one or more processors, and one or more computer-readable storage media storing instructions thereon, the instructions being, for example, application programs. When the instructions are executed by the one or more processors, the processors execute the service monitoring method of any of the above embodiments.

[0204] Reference Figure 7 , shows a schematic diagram of an electronic device structure according to an embodiment of the present application. Figure 7 As shown, the electronic device includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704. The processor 701, the communication interface 702 and the memory 703 communicate with each other through the communication bus 704.

[0205] The memory 703 is used to store computer programs.

[0206] The processor 701 is used to implement the service monitoring method of any of the above embodiments when executing the program stored in the memory 703.

[0207] The communication interface 702 is used for communication between the electronic device and other devices.

[0208] The communication bus 704 mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0209] The processor 701 mentioned above may include but is not limited to: a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0210] The memory 703 mentioned above may include but is not limited to: Read Only Memory (ROM), Random Access Memory (RAM), Compact Disc Read Only Memory (CD-ROM), Electronic Erasable Programmable Read Only Memory (EEPROM), hard disk, floppy disk, flash memory, and the like.

[0211] In an embodiment of the present application, a computer-readable storage medium is further provided, on which a computer program is stored. The program can be executed by a processor of an electronic device. When the computer program is executed by the processor, the processor executes the business monitoring method described in any of the above embodiments.

[0212] The various embodiments in this specification are interrelated, and each embodiment is described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referenced to each other.

[0213] It should be noted that all actions of acquiring signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located and with the authorization given by the owner of the corresponding device.

[0214] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0215] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM, RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0216] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0217] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0218] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0219] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0220] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0221] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0222] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0223] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. In summary, the content of this specification should not be understood as limiting the present application.

Claims

1. A service monitoring method, characterized in that: The method comprises: For each service detection indicator corresponding to the service, obtain in advance a historical value of the service detection indicator in each dimension corresponding to the service detection indicator, and for each dimension, obtain a prediction threshold value of the service detection indicator in the dimension based on the historical value of the service detection indicator in the dimension; For each service detection indicator corresponding to the service, obtain the current value of the service detection indicator in each dimension corresponding to the service detection indicator; For each dimension, based on the current value of the business detection indicator in the dimension and the predicted threshold value of the business detection indicator in the dimension, an alarm index of the business detection indicator in the dimension is obtained; Based on the alarm index of the business detection indicator in each dimension, it is determined whether a business failure corresponding to the business detection indicator occurs.

2. The method according to claim 1, characterized in that The dimensions include business dimensions and clustering dimensions; obtaining the historical values ​​of the business detection indicator in each dimension corresponding to itself includes: When the dimension is a business dimension, based on the stock log information under the business dimension, a historical value of the business detection indicator under the business dimension is calculated; When the dimension is a clustering dimension, the historical value of the business detection indicator is calculated based on the existing log information, and the historical value of the business detection indicator is clustered to obtain the historical value of the business detection indicator under the clustering dimension.

3. The method according to claim 1, characterized in that Based on the historical value of the service detection indicator in the dimension, obtaining the prediction threshold of the service detection indicator in the dimension includes: Based on the historical value of the business detection indicator in the dimension, obtaining the initial threshold value of the business detection indicator in the dimension; Based on the initial threshold of the business detection indicator in the dimension, a predicted threshold of the business detection indicator in the dimension is obtained.

4. The method according to claim 3, characterized in that Based on the historical value of the service detection indicator in the dimension, obtaining the initial threshold value of the service detection indicator in the dimension includes: Calculate the mean and standard deviation of the historical values ​​of the business detection indicator under the dimension; The sum of the mean and the preset multiple of the standard deviation is used as the initial threshold, or the difference between the mean and the preset multiple of the standard deviation is used as the initial threshold.

5. The method according to claim 3, characterized in that: Acquiring a predicted threshold value of the service detection indicator in the dimension based on an initial threshold value of the service detection indicator in the dimension includes: A time series prediction is performed based on the initial threshold of the business detection indicator in the dimension to obtain a prediction threshold of the business detection indicator in the dimension.

6. The method according to claim 1, characterized in that The dimensions include a business dimension and a clustering dimension; obtaining the current value of the business detection indicator in each dimension corresponding to itself includes: When the dimension is a business dimension, based on the incremental log information under the business dimension, calculating the current value of the business detection indicator under the business dimension; When the dimension is a clustering dimension, the current value of the business detection indicator is calculated based on the incremental log information, and the current value of the business detection indicator is clustered to obtain the current value of the business detection indicator under the clustering dimension.

7. The method according to claim 1, characterized in that The method of obtaining an alarm index of the service detection indicator in the dimension based on a comparison between a current value of the service detection indicator in the dimension and a predicted threshold value of the service detection indicator in the dimension includes: When the current value of the service detection indicator in the dimension does not meet the prediction threshold of the service detection indicator in the dimension, determining that the alarm index of the service detection indicator in the dimension is a first value, and the first value indicates that an alarm is required; When the current value of the business detection indicator in the dimension meets the predicted threshold of the business detection indicator in the dimension, the alarm index of the business detection indicator in the dimension is determined to be a second value, and the second value indicates that no alarm is required.

8. The method according to claim 1, characterized in that Based on the alarm index of the service detection indicator in each dimension, judging whether a service failure corresponding to the service detection indicator occurs includes: Voting is performed based on the alarm index of the business detection indicator in each dimension to obtain a voting result; When the voting result indicates that an alarm is required, it is determined that a service failure corresponding to the service detection indicator occurs.

9. The method according to claim 1, characterized in that: The method further comprises: When a service failure corresponding to the service detection indicator occurs, an alarm notification is issued based on the alarm index of the service detection indicator in each dimension.

10. The method according to claim 1, characterized in that The service detection index includes at least one of a platform-side service detection index and a device-side service detection index.

11. A service monitoring device, characterized in that: The device comprises: A processing module, used to obtain, in advance, for each service detection indicator corresponding to the service, a historical value of the service detection indicator in each dimension corresponding to the service detection indicator, and, for each dimension, based on the historical value of the service detection indicator in the dimension, obtain a prediction threshold value of the service detection indicator in the dimension; A first acquisition module is used to acquire, for each business detection indicator corresponding to the business, a current value of the business detection indicator in each dimension corresponding to the business detection indicator; A second acquisition module is used to obtain, for each dimension, an alarm index of the business detection indicator in the dimension based on a comparison between a current value of the business detection indicator in the dimension and a predicted threshold value of the business detection indicator in the dimension; The judgment module is used to judge whether a business failure corresponding to the business detection indicator occurs based on the alarm index of the business detection indicator in each dimension.

12. An electronic device, characterized in that: include: one or more processors; and one or more computer-readable storage media having instructions stored thereon; When the instructions are executed by the one or more processors, the processors are enabled to execute the service monitoring method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the processor executes the service monitoring method according to any one of claims 1 to 10.

Citation Information

Cited By

  • Indicator threshold determination method, apparatus and device, storage medium and program product

    WO2026194268A1