A data monitoring and analysis method and related equipment
The decision tree model is used to analyze the performance indicator data of services or systems, which solves the problems in the existing technology of no alarm for multiple data changes in services and incorrect judgment of a single indicator, and achieves more accurate service status judgment and rapid problem handling.
Patent Information
- Application Number
- CN202010721529.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-24
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-07-24
AI Technical Summary
The existing automated processing system generates alarms through a single threshold and cannot detect sudden increases or decreases in multiple service data in a timely manner, and a single server indicator cannot accurately determine service problems, which may lead to erroneous operations.
Use the decision tree model to analyze the performance indicator data of the service or system. Use the pre-trained decision tree model to determine whether the service or system is abnormal and perform corresponding operations to avoid single indicator judgment errors.
It effectively solves the problem of no alarm when multiple service data suddenly changes, improves the accuracy of service status judgment, can quickly modify and generate new decision tree models, and improves problem handling efficiency.
Smart Images

Figure CN111913848B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a data monitoring and analysis method and related equipment. Background Art
[0002] Some existing automated processing systems use a single threshold to issue an alarm, take action based on the alarm value, or use an alarm to trigger an action to analyze the service / system status (for example, using the central processing unit (CPU) and memory usage to determine whether the server should be expanded or the number of services on it should be reduced). They use hard-coded rules to analyze multiple performance indicators of the system / service in order to achieve accurate results.
[0003] If the alarm parameters of a service do not reach the threshold, no alarm will be generated, and some hidden problems cannot be discovered. For example, if multiple data of a service suddenly increase or decrease, there may be some problems with the service, but because the threshold has not been reached, it is easy to ignore this phenomenon. In addition, a single service indicator cannot accurately determine what problems the service has, and may cause wrong operations. For example, the CPU of the tomcat service exceeds the standard, but this may be caused by memory problems. Summary of the invention
[0004] The present application provides a data monitoring and analysis method and related equipment, which analyzes performance indicator data through a decision tree model, thereby solving the existing problem that no error is reported when multiple data of a service suddenly increase or decrease, and also avoiding the problem that the existing single server indicator cannot accurately judge the service.
[0005] The first aspect of the present application provides a data monitoring and analysis method, comprising:
[0006] Obtain target performance indicator data for services or systems;
[0007] Determining whether the service or system is abnormal according to the target performance indicator data;
[0008] When the service or system is abnormal, the target performance indicator data is input into a preset decision tree model to obtain an analysis result, wherein the preset decision tree model is obtained by training training samples in advance, wherein the training samples include a performance indicator data set of the service or system and a state corresponding to the service or system, and the analysis result indicates the state of the service or system;
[0009] Execute a target operation corresponding to the analysis result.
[0010] Optionally, the method further comprises:
[0011] Obtaining a performance indicator data set of the service or system;
[0012] Determining an abnormal data subset in the performance indicator data set;
[0013] Determining a status of the service or system corresponding to the abnormal data subset;
[0014] The preset decision tree model is generated according to the abnormal data subset and the status of the service or system corresponding to the abnormal data subset.
[0015] Optionally, determining an abnormal data subset in the performance indicator data set includes:
[0016] Initialize N cluster centers through k-means clustering, where N is a positive integer greater than or equal to 3;
[0017] Determine N clusters based on the N cluster centers and the performance indicator data set;
[0018] Determine a data point in a first target cluster as first abnormal data, wherein the first target cluster is a cluster containing only one data point among the N clusters;
[0019] Determine a second target cluster, where the second target cluster is a cluster where the difference between data points in the N clusters is less than a preset value;
[0020] Determine the outliers in the second target cluster and the corresponding average value of the second target cluster;
[0021] Determining whether a data point corresponding to an outlier in the second target cluster is an outlier data point according to the outlier and the average value;
[0022] If yes, then determining the data point corresponding to the outlier value in the second target cluster as the second outlier data;
[0023] The first abnormal data and the second abnormal data are both included in the abnormal data subset.
[0024] Optionally, judging whether the service or system is abnormal according to the target performance indicator data includes:
[0025] Determining whether abnormal data points appear in the target performance indicator data;
[0026] If so, it is determined that the service or system is abnormal.
[0027] Optionally, the method further comprises:
[0028] Recording operation information corresponding to the target operation;
[0029] Displaying the operation information;
[0030] The preset decision tree model is updated based on the target performance indicator data and the analysis results.
[0031] A second aspect of the present application provides a data monitoring and analysis device, comprising:
[0032] An acquisition unit, used to acquire target performance indicator data of a service or system;
[0033] A judgment unit, used to judge whether the service or system is abnormal according to the target performance indicator data;
[0034] an analysis unit, configured to input the target performance indicator data into a preset decision tree model to obtain an analysis result when an abnormality occurs in the service or system, wherein the preset decision tree model is obtained by training training samples in advance, wherein the training samples include a performance indicator data set of the service or system and a state corresponding to the service or system, and the analysis result indicates the state of the service or system;
[0035] An execution unit is used to execute a target operation corresponding to the analysis result.
[0036] Optionally, the device further comprises:
[0037] A training unit, the training unit is used to:
[0038] Obtaining a performance indicator data set of the service or system;
[0039] Determining an abnormal data subset in the performance indicator data set;
[0040] Determining a status of the service or system corresponding to the abnormal data subset;
[0041] The preset decision tree model is generated according to the abnormal data subset and the status of the service or system corresponding to the abnormal data subset.
[0042] Optionally, the training unit determines the abnormal data subset in the performance indicator data set includes:
[0043] Initialize N cluster centers through k-means clustering, where N is a positive integer greater than or equal to 3;
[0044] Determine N clusters based on the N cluster centers and the performance indicator data set;
[0045] Determine a data point in a first target cluster as first abnormal data, wherein the first target cluster is a cluster containing only one data point among the N clusters;
[0046] Determine a second target cluster, where the second target cluster is a cluster where the difference between data points in the N clusters is less than a preset value;
[0047] Determine the outliers in the second target cluster and the corresponding average value of the second target cluster;
[0048] Determining whether a data point corresponding to an outlier in the second target cluster is an outlier data point according to the outlier and the average value;
[0049] If yes, then determining the data point corresponding to the outlier value in the second target cluster as the second outlier data;
[0050] The first abnormal data and the second abnormal data are both included in the abnormal data subset.
[0051] Optionally, the judging unit is specifically configured to:
[0052] Determining whether abnormal data points appear in the target performance indicator data;
[0053] If so, it is determined that the service or system is abnormal.
[0054] Optionally, the device further comprises:
[0055] A display unit, the display unit is used for:
[0056] Recording operation information corresponding to the target operation;
[0057] Displaying the operation information;
[0058] The training unit is also used for:
[0059] The preset decision tree model is updated based on the target performance indicator data and the analysis results.
[0060] The third aspect of the present application provides a computer device, comprising: at least one connected processor, memory and transceiver; the memory is used to store program code, and the program code is loaded and executed by the processor to implement the steps of the data monitoring and analysis method described in the first aspect above.
[0061] A fourth aspect of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enable the computer to execute the steps of the data monitoring and analysis method described in the first aspect.
[0062] In summary, it can be seen that in the embodiments provided by the present application, the performance indicator data of the service or system is used to determine whether an abnormality occurs in the service or system, and when an abnormality occurs in the service or system, the target performance indicator data is analyzed through a pre-trained preset decision tree model to obtain an analysis result, and corresponding operations are performed according to the analysis result. Since the performance indicator data is analyzed through a decision tree model, the problem that an error will not be reported when multiple data of a service suddenly increase or decrease is solved, and the problem that the existing single server indicator cannot accurately judge the occurrence of the service can also be avoided. In addition, since the present application uses a decision tree model for analysis, the data of the decision tree model can be modified, thereby realizing rapid modification and generation of new decision tree models, handling new problems, and improving the efficiency of problem handling. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 A flow chart of a data monitoring and analysis method provided in an embodiment of the present application;
[0064] Figure 2 A schematic diagram of the training process of the preset decision tree model provided in the embodiment of this application;
[0065] Figure 3 A schematic diagram of the generation of the decision tree model provided for the implementation of this application;
[0066] Figure 4 A virtual structural diagram of a data monitoring and analysis device provided in an embodiment of the present application;
[0067] Figure 5 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;
[0068] Figure 6 A schematic diagram of the hardware structure of the server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] The technical solutions 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 only part of the embodiments of the present application, rather than all of the embodiments.
[0070] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than the content illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or modules need not be limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The division of modules that appear in this application is only a logical division. There may be other division modes when implemented in practical applications, for example, multiple modules may be combined into or integrated in another system, or some feature vectors may be ignored, or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection between modules may be electrical or other similar forms, which are not limited in this application. Furthermore, the modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present application.
[0071] The data monitoring and analysis method of the present application is described below from the perspective of a data monitoring and analysis device. The data monitoring and analysis device can be a terminal, a server, or a service unit in a server, without specific limitation.
[0072] See also Figure 1 , Figure 1 A flow chart of a data monitoring and analysis method provided in an embodiment of the present application includes:
[0073] 101. Obtain target performance indicator data for a service or system.
[0074] In this embodiment, the data monitoring and analysis device can obtain the target performance indicator data of the service or system, where, if it is a service, then the target performance indicator data includes but is not limited to performance indicator data such as the number of nginx connections and the number of requests; if it is a system, the target performance indicator data includes but is not limited to performance indicator data such as CPU usage, memory usage, and disk IO. In addition, the method of obtaining the target performance indicator data is not specifically limited here. For example, the service or system can be monitored in real time to obtain the target performance indicator data of the service or system, or a request information can be sent to make the service or system return the target performance indicator data. Of course, other methods can also be used, such as the service or system periodically sending the target performance indicator data. There is no specific limitation, as long as the target performance indicator data can be obtained.
[0075] 102. Determine whether the service or system is abnormal based on the target performance indicator data. If so, execute step 103.
[0076] In this embodiment, after acquiring the target performance indicator data, the data monitoring and analysis device can determine whether the service or system has an abnormality based on the target performance indicator data. Specifically, it can determine whether there are abnormal data points in the target performance indicator data. If so, it is determined that the service or system has an abnormality and step 103 is executed. If not, it is determined that the service or system has no abnormality and other operations are performed, such as obtaining the performance indicator data of the service or system again.
[0077] It should be noted that the data monitoring and analysis device can perform anomaly detection on the target performance data based on the existing Bisecting KMeans algorithm to determine the anomaly. Of course, the target performance indicator data can also be detected by other anomaly detection algorithms, such as median clustering or iForest, without specific limitation.
[0078] 103. When the service or system is abnormal, the target performance indicator data is input into the preset decision tree model to obtain the analysis results.
[0079] In this embodiment, when the data monitoring and analysis device determines that a service or system abnormality occurs based on the target performance indicator data, the target performance indicator data can be input into a pre-trained preset decision tree model for analysis to obtain an analysis result, which indicates the state of the service or system when the target performance indicator data is obtained.
[0080] 104. Execute a target operation corresponding to the analysis result.
[0081] In this embodiment, after the target performance indicator data is analyzed by the preset decision tree model to obtain the analysis result, the target operation corresponding to the analysis result can be executed. That is, after the target performance indicator data is analyzed by the preset decision tree model to determine the status of the service or system, corresponding operations can be performed according to the status of the system or service, such as restarting the service, migrating the service, or expanding the server capacity, etc. Of course, there can be other operations, which are not specifically limited here.
[0082] It should be noted that after executing the target operation corresponding to the analysis result, the operation information corresponding to the target operation can also be recorded and displayed to the user for viewing, or the operation information can be notified to the user, such as notifying the user of the status of the service or system and the operations performed based on the status. In addition, the preset decision tree model can be updated based on the target performance indicator data and the analysis results.
[0083] In summary, in the embodiments provided by the present application, the performance indicator data of the service or system is used to determine whether an abnormality occurs in the service or system, and when an abnormality occurs in the service or system, the target performance indicator data is analyzed through a pre-trained preset decision tree model to obtain an analysis result, and corresponding operations are performed according to the analysis result. Since the performance indicator data is analyzed through a decision tree model, the problem that an error message will not be reported when multiple data of a service suddenly increases or decreases is solved, and the problem that the existing single server indicator cannot accurately judge the occurrence of the service can be avoided. In addition, since the present application uses a decision tree model for analysis, the data of the decision tree model can be modified, thereby realizing rapid modification and generation of new decision tree models, handling new problems, and improving the efficiency of problem handling.
[0084] Combine the following Figure 2 The training process of the preset decision tree model provided in the embodiment of the present application is explained.
[0085] See also Figure 2 , Figure 2 The training process diagram of the preset decision tree model provided in the embodiment of the present application includes:
[0086] 201. Obtain a performance indicator data set for a service or system.
[0087] In this embodiment, the data monitoring and analysis device can obtain a performance indicator data set of a service or system, where each indicator data set has 60 data [10, 45, 47, 32, 34, 22, 31...]. The amount of data in this indicator set can also be increased or decreased according to actual needs, but the data in each indicator data set must be at least 6.
[0088] 202. Determine an abnormal data subset in the performance indicator data set.
[0089] In this embodiment, the data monitoring and analysis device can determine an abnormal data subset in the performance indicator data set.
[0090] In one embodiment, the data monitoring and analysis device determines the abnormal data subset in the performance indicator data set including:
[0091] Initialize N cluster centers through k-means clustering, where N is a positive integer greater than or equal to 3;
[0092] Determine N clusters based on the N cluster centers and the performance indicator data set;
[0093] Determine a data point in a first target cluster as first abnormal data, the first target cluster being a cluster containing only one data point among the N clusters;
[0094] Determine a second target cluster, where the second target cluster is a cluster where the difference between data points in the N clusters is less than a preset value;
[0095] Determine outliers in a second target cluster and a corresponding average value of the second target cluster;
[0096] Determine whether the data point corresponding to the outlier in the second target cluster is an outlier data point according to the outlier and the average value;
[0097] If yes, the data point corresponding to the outlier in the second target cluster is determined as the second outlier data;
[0098] The first abnormal data and the second abnormal data are both included in the abnormal data subset.
[0099] In this embodiment, the data monitoring and analysis device can use k-means clustering to initialize three cluster centers, and then calculate the service / system performance indicator data set to generate three clusters. If one of the three generated clusters has only one data point, such as
[10] , [22, 32, 34...], [45, 47...], then this data point is judged as an abnormal point; in addition, due to the characteristics of the BisectingKMeans algorithm, some tiny differences will also be judged as abnormal points, such as [10000, 10000, 10001, 10001, 10 001, 10002], that is, a cluster with a difference less than a preset value can be selected from N clusters. For example, the preset value can be 1. In this case, 10002 will be determined as an abnormal data point. However, the difference in the data in this cluster is very small, and this kind of data is not needed. Therefore, the data needs to be calculated and processed. In order to determine whether the abnormal value in the cluster meets the required value, the abnormal value in the cluster with a difference less than the preset value and the average value of the data set in the cluster can be used to determine whether the abnormal value in the cluster is an abnormal data point. The specific judgment can be made by the following formula:
[0100] |1-outlier value / average value of data set|>0.5, where the parameter 0.5 can be adjusted according to actual needs. When the calculated result is greater than 0.5, the data point corresponding to the outlier value is determined to be abnormal data.
[0101] 203. Determine the status of the service or system corresponding to the abnormal data subset.
[0102] In this embodiment, after determining the abnormal data subset, the data monitoring and analysis device can determine the status of the service or system for each abnormal data in the abnormal data subset, which can be confirmed manually or in other ways, but the specific details are not limited.
[0103] 204. Generate a preset decision tree model according to the abnormal data subset and the status of the service or system corresponding to the abnormal data subset.
[0104] In this embodiment, when the data monitoring and analysis device obtains the abnormal data subset and the status of the service or system corresponding to the abnormal data subset, it can generate a preset decision tree model according to the abnormal data subset and the status of the service or system corresponding to the abnormal data subset. Figure 3 , Figure 3A schematic diagram of generating a decision tree model provided for an embodiment of the present application is provided, where a service and three groups of data [100%, 50%, 0], [190%, 50%, 1], [100%, 100%, 2] are used as examples for explanation, wherein the first of each group of data is the CPU usage, the second is the memory usage, and the third is the analysis result. A simple decision tree model is generated using these data. Taking the first branch as an example, when the CPU usage is 100% (referring to the CPU usage of the service, which can exceed 100%) and the memory usage is 50%, the service is judged to be normal and no processing operation is required for the service, and the other two are similar.
[0105] In summary, it can be seen that in the embodiments provided by the present application, a preset decision tree model is obtained by training a subset of abnormal data in a performance indicator data set of a service or system. When data analysis is performed through the preset decision tree model, since the performance indicator data is analyzed through a decision tree model, the problem that no error is reported when multiple data of an existing service suddenly increase or decreases is solved, and the problem that the existing single server indicator cannot accurately judge the service can be avoided. In addition, since the present application performs analysis through a decision tree model, the data of the decision tree model can be modified, thereby realizing rapid modification and generation of new decision tree models, handling new problems, and improving problem handling efficiency.
[0106] The above describes the present application from the perspective of a data monitoring and analysis method, and the following describes the present application from the perspective of a data monitoring and analysis device.
[0107] See also Figure 4 , Figure 4 A virtual structural diagram of a data monitoring and analysis device provided in an embodiment of the present application includes:
[0108] An acquisition unit 401 is used to acquire target performance indicator data of a service or system;
[0109] A judgment unit 402 is used to judge whether the service or system is abnormal according to the target performance indicator data;
[0110] An analysis unit 403 is used to input the target performance indicator data into a preset decision tree model to obtain an analysis result when an abnormality occurs in the service or system, wherein the preset decision tree model is obtained by training training samples in advance, wherein the training samples include a performance indicator data set of the service or system and a state corresponding to the service or system, and the analysis result indicates the state of the service or system;
[0111] The execution unit 404 is used to execute the target operation corresponding to the analysis result.
[0112] Optionally, the device further comprises:
[0113] The training unit 405 is used for:
[0114] Obtaining a performance indicator data set of the service or system;
[0115] Determining an abnormal data subset in the performance indicator data set;
[0116] Determining a status of the service or system corresponding to the abnormal data subset;
[0117] The preset decision tree model is generated according to the abnormal data subset and the status of the service or system corresponding to the abnormal data subset.
[0118] Optionally, the training unit 405 determines that the abnormal data subset in the performance indicator data set includes:
[0119] Initialize N cluster centers through k-means clustering, where N is a positive integer greater than or equal to 3;
[0120] Determine N clusters based on the N cluster centers and the performance indicator data set;
[0121] Determine a data point in a first target cluster as first abnormal data, wherein the first target cluster is a cluster containing only one data point among the N clusters;
[0122] Determine a second target cluster, where the second target cluster is a cluster where the difference between data points in the N clusters is less than a preset value;
[0123] Determine the outliers in the second target cluster and the corresponding average value of the second target cluster;
[0124] Determining whether a data point corresponding to an outlier in the second target cluster is an outlier data point according to the outlier and the average value;
[0125] If yes, then determining the data point corresponding to the outlier value in the second target cluster as the second outlier data;
[0126] The first abnormal data and the second abnormal data are both included in the abnormal data subset.
[0127] Optionally, the judging unit 402 is specifically configured to:
[0128] Determining whether abnormal data points appear in the target performance indicator data;
[0129] If so, it is determined that the service or system is abnormal.
[0130] Optionally, the device further comprises:
[0131] The display unit 406 is used for:
[0132] Recording operation information corresponding to the target operation;
[0133] Displaying the operation information;
[0134] The training unit 405 is also used for:
[0135] The preset decision tree model is updated based on the target performance indicator data and the analysis results.
[0136] In summary, in the embodiments provided by the present application, the performance indicator data of the service or system is used to determine whether an abnormality occurs in the service or system, and when an abnormality occurs in the service or system, the target performance indicator data is analyzed through a pre-trained preset decision tree model to obtain an analysis result, and corresponding operations are performed according to the analysis result. Since the performance indicator data is analyzed through a decision tree model, the problem that an error message will not be reported when multiple data of a service suddenly increases or decreases is solved, and the problem that the existing single server indicator cannot accurately judge the occurrence of the service can be avoided. In addition, since the present application uses a decision tree model for analysis, the data of the decision tree model can be modified, thereby realizing rapid modification and generation of new decision tree models, handling new problems, and improving the efficiency of problem handling.
[0137] The present application also provides another data monitoring and analysis device, such as Figure 5 For the sake of convenience, only the parts related to the embodiments of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present application. The data monitoring and analysis device can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a car computer, etc., taking the data monitoring and analysis device as a mobile phone as an example:
[0138] Figure 5 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application. Figure 5 The mobile phone includes: a radio frequency (RF) circuit 510, a memory 520, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a wireless fidelity (WiFi) module 570, a processor 580, and a power supply 590. Those skilled in the art will understand that Figure 5The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0139] Combine the following Figure 5 A detailed introduction to the various components of the mobile phone:
[0140] The RF circuit 510 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 580 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 510 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the RF circuit 510 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.
[0141] The memory 520 can be used to store software programs and modules. The processor 580 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 520. The memory 520 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 520 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0142] The input unit 530 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532. The touch panel 531, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 531 or near the touch panel 531 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 531 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch panel 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 531, the input unit 530 may also include other input devices 532. Specifically, other input devices 532 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
[0143] The display unit 540 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 540 may include a display panel 541. Optionally, the display panel 541 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 531 may cover the display panel 541. When the touch panel 531 detects a touch operation on or near it, it is transmitted to the processor 580 to determine the type of touch event. Subsequently, the processor 580 provides a corresponding visual output on the display panel 541 according to the type of touch event. Although in Figure 5 In the embodiment, the touch panel 531 and the display panel 541 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 531 and the display panel 541 can be integrated to realize the input and output functions of the mobile phone.
[0144] The mobile phone may also include at least one sensor 550, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 541 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0145] The audio circuit 560, the speaker 561, and the microphone 562 can provide an audio interface between the user and the mobile phone. The audio circuit 560 can transmit the received audio data to the speaker 561 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 562 converts the collected sound signal into an electrical signal, which is received by the audio circuit 560 and converted into audio data, and then the audio data is output to the processor 580 for processing, and then sent to another mobile phone through the RF circuit 510, or the audio data is output to the memory 520 for further processing.
[0146] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 570. It provides users with wireless broadband Internet access. Figure 5 A WiFi module 570 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0147] The processor 580 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 520, and calling data stored in the memory 520, it executes various functions of the mobile phone and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 580 may include one or more processing units; preferably, the processor 580 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 580.
[0148] The mobile phone also includes a power source 590 (such as a battery) for supplying power to various components. Preferably, the power source can be logically connected to the processor 580 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0149] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0150] In the embodiment of the present application, the processor 580 can also execute the operations performed by the above-mentioned data monitoring and analysis device.
[0151] Figure 6 6 is a schematic diagram of a server structure provided in an embodiment of the present application. The server 600 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 622 (for example, one or more processors) and a memory 632, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 642 or data 644. Among them, the memory 632 and the storage medium 630 may be short-term storage or permanent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 622 may be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the server 600.
[0152] The server 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, and / or one or more operating systems 641, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0153] The steps performed by the server in the above embodiment can be based on the Figure 6 The server structure shown.
[0154] An embodiment of the present application also provides a computer-readable storage medium on which a program is stored, and when the program is executed by a processor, the steps of the above-mentioned data monitoring and analysis method are implemented.
[0155] An embodiment of the present application further provides a processor, which is used to run a program, wherein the steps of the above-mentioned data monitoring and analysis method are executed when the program is running.
[0156] An embodiment of the present application also provides a terminal device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program code is loaded and executed by the processor to implement the steps of the above-mentioned data monitoring and analysis method.
[0157] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the steps of the above-mentioned data monitoring and analysis method.
[0158] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0159] 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 modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0160] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0161] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products of the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0162] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0163] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0164] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0165] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0166] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0167] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0168] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0169] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A data monitoring and analysis method, characterized in that: include: Obtain target performance indicator data for services or systems; Determining whether the service or system is abnormal according to the target performance indicator data; When an abnormality occurs in the service or system, the target performance indicator data is input into a preset decision tree model to obtain an analysis result, wherein the preset decision tree model is obtained by training training samples in advance, and the training samples include an abnormal data subset in the performance indicator data set of the service or system and the status of the service or system corresponding to the abnormal data subset, and the analysis result indicates the status of the service or system; Execute a target operation corresponding to the analysis result; The preset decision tree model is updated based on the target performance indicator data and the analysis results.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining a performance indicator data set of the service or system; Determining an abnormal data subset in the performance indicator data set; Determining a status of the service or system corresponding to the abnormal data subset; The preset decision tree model is generated according to the abnormal data subset and the status of the service or system corresponding to the abnormal data subset.
3. The method according to claim 2, characterized in that Determining the abnormal data subset in the performance indicator data set includes: Initialize N cluster centers through k-means clustering, where N is a positive integer greater than or equal to 3; Determine N clusters based on the N cluster centers and the performance indicator data set; Determine a data point in a first target cluster as first abnormal data, wherein the first target cluster is a cluster containing only one data point among the N clusters; Determine a second target cluster, where the second target cluster is a cluster where the difference between data points in the N clusters is less than a preset value; Determine the outliers in the second target cluster and the corresponding average value of the second target cluster; Determining whether a data point corresponding to an outlier in the second target cluster is an outlier data point according to the outlier and the average value; If yes, then determining the data point corresponding to the outlier value in the second target cluster as the second outlier data; The first abnormal data and the second abnormal data are both included in the abnormal data subset.
4. The method according to any one of claims 1 to 3, characterized in that The determining whether the service or system is abnormal according to the target performance indicator data includes: Determining whether abnormal data points appear in the target performance indicator data; If so, it is determined that the service or system is abnormal.
5. The method according to any one of claims 1 to 3, characterized in that The method further comprises: Recording operation information corresponding to the target operation; The operation information is displayed.
6. A data monitoring and analysis device, characterized in that: include: An acquisition unit, used to acquire target performance indicator data of a service or system; A judgment unit, used to judge whether the service or system is abnormal according to the target performance indicator data; An analysis unit, configured to input the target performance indicator data into a preset decision tree model to obtain an analysis result when an abnormality occurs in the service or system, wherein the preset decision tree model is obtained by training training samples in advance, wherein the training samples include an abnormal data subset in a performance indicator data set of the service or system and a status of the service or system corresponding to the abnormal data subset, and the analysis result indicates the status of the service or system; An execution unit, configured to execute a target operation corresponding to the analysis result; A training unit is used to update the preset decision tree model based on the target performance indicator data and the analysis result.
7. The device according to claim 6, characterized in that The training unit is also used for: Obtaining a performance indicator data set of the service or system; Determining an abnormal data subset in the performance indicator data set; Determining a status of the service or system corresponding to the abnormal data subset; The preset decision tree model is generated according to the abnormal data subset and the status of the service or system corresponding to the abnormal data subset.
8. The device according to claim 7, characterized in that The training unit determines the abnormal data subset in the performance indicator data set including: Initialize N cluster centers through k-means clustering, where N is a positive integer greater than or equal to 3; Determine N clusters based on the N cluster centers and the performance indicator data set; Determine a data point in a first target cluster as first abnormal data, wherein the first target cluster is a cluster containing only one data point among the N clusters; Determine a second target cluster, where the second target cluster is a cluster where the difference between data points in the N clusters is less than a preset value; Determine the outliers in the second target cluster and the corresponding average value of the second target cluster; Determining whether a data point corresponding to an outlier in the second target cluster is an outlier data point according to the outlier and the average value; If yes, then determining the data point corresponding to the outlier value in the second target cluster as the second outlier data; The first abnormal data and the second abnormal data are both included in the abnormal data subset.
9. A computer device, characterized in that: include: at least one connected processor, memory, and transceiver; The memory is used to store program codes, and the program codes are loaded and executed by the processor to implement the steps of the data monitoring and analysis method described in any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that: It includes instructions, which, when executed on a computer, enable the computer to execute the steps of the data monitoring and analysis method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Data processing method and device for operation and maintenance
CN108804251A
