System health monitoring method, device, equipment and storage medium
The system health monitoring method automates the determination of software system health by using basic indicators and weight distribution schemes, enhancing real-time performance and accuracy in monitoring complex systems.
Patent Information
- Application Number
- CN202110363225.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-02
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2041-04-02
AI Technical Summary
Existing system health monitoring methods suffer from poor real-time performance, are labor-intensive, and have low accuracy due to human subjective influence and the need for manual data merging from isolated platforms, failing to address the health status of complex software systems.
A system health monitoring method that automatically determines the health status of software systems by starting a monitoring task based on user requests, using a set of basic indicators with weight distribution schemes, and calculating health scores without human intervention, utilizing monitoring platforms to collect and store data in cache and databases.
Improves real-time performance and accuracy by reducing human subjectivity, enabling automated and efficient health status determination across multiple systems.
Smart Images

Figure CN113760646B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a system health monitoring method, apparatus, device and storage medium. Background Art
[0002] With the continuous development of computer technology and Internet applications, various software systems have emerged in different fields. In order to ensure the availability and reliability of each software system (hereinafter referred to as the system), and to support high-performance, high-concurrency and other business scenarios, it is necessary to monitor the health status of different software systems.
[0003] In the related art, since there are many factors that affect the normal operation of the system, such as deployment hardware, Java virtual machine (JVM), system container port, interface performance, interface call volume, code quality, remote procedure call (RPC) service, etc., therefore, for a certain system to be monitored, it is mainly to build a monitoring platform separately for each factor of the system to be monitored, perform isolated monitoring, and then manually log in to the monitoring platform of each factor to obtain the monitoring results of each factor, and finally manually merge the monitoring results of each factor to obtain the health status of the system to be monitored.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: since the monitoring results of various factors are determined by the monitoring personnel and are affected by human subjectivity, there are problems such as poor real-time performance, time-consuming and labor-intensive, and low accuracy of monitoring results. Summary of the invention
[0005] The embodiments of the present application provide a system health monitoring method, apparatus, device and storage medium to solve the problems of poor real-time performance, time and labor consumption, and low accuracy of monitoring results in existing system monitoring solutions.
[0006] According to a first aspect of the present application, a system health monitoring method is provided, comprising:
[0007] Acquire a health monitoring request issued by a user, wherein the health monitoring request includes: an identifier of a system to be monitored;
[0008] According to the identification of the system to be monitored, starting the monitoring task corresponding to the system to be monitored;
[0009] The health status of the system to be monitored is determined according to the monitoring configuration information of the monitoring task.
[0010] In a possible design, the monitoring configuration information includes: a basic indicator set, a weight distribution scheme corresponding to the basic indicator set;
[0011] Accordingly, determining the health status of the system to be monitored according to the monitoring configuration information of the monitoring task includes:
[0012] According to each basic indicator included in the basic indicator set, obtaining each basic indicator monitoring data of the system to be monitored;
[0013] Determine the score of each basic indicator according to the basic indicator monitoring data of the system to be monitored and the preset basic indicator threshold data;
[0014] Obtaining a health score of the system to be monitored according to the scores of each basic indicator and a weight distribution scheme corresponding to the basic indicator set;
[0015] The health status of the system to be monitored is determined according to the health score of the system to be monitored and a preset health threshold.
[0016] In a possible design, acquiring each basic indicator monitoring data of the system to be monitored according to each basic indicator included in the basic indicator set includes:
[0017] Determine, according to each basic indicator included in the basic indicator set, a monitoring platform associated with each basic indicator;
[0018] Obtain the monitoring data of each basic indicator from the monitoring platform associated with each basic indicator.
[0019] In a possible design, after acquiring each basic indicator monitoring data of the system to be monitored according to each basic indicator included in the basic indicator set, the method further includes:
[0020] For each basic indicator, the basic indicator monitoring data is encapsulated to obtain a target data body corresponding to the basic indicator, wherein the name of the target data body includes: an identifier of the system to be monitored, a type of the basic indicator, and an identifier of the basic indicator;
[0021] Storing the target data body corresponding to the basic indicator into the cache space;
[0022] The data in the cache space is periodically persisted to the database.
[0023] In a possible design, determining the score of each basic indicator according to each basic indicator monitoring data of the system to be monitored and each preset basic indicator threshold data includes:
[0024] For each basic indicator, calculating the ratio between the basic indicator monitoring data corresponding to the basic indicator and the basic indicator threshold data;
[0025] When the ratio and the preset threshold value satisfy a preset relationship, the score of the basic indicator is calculated according to the ratio and the preset health score.
[0026] In a possible design, the basic indicator set includes at least one of the following indicators: code quality, business function, container survival status, hardware usage information, and startup service quality.
[0027] In one possible design, before obtaining the health monitoring request issued by the user, the method further includes:
[0028] Obtaining a task establishment request of the system to be monitored, wherein the task establishment request includes: an identifier of the system to be monitored;
[0029] Establishing a monitoring task for the system to be monitored according to the task establishment request;
[0030] Acquire and store the monitoring configuration information of the monitoring task.
[0031] According to a second aspect of the present application, a system health monitoring device is provided, comprising:
[0032] An acquisition module is used to acquire a health monitoring request issued by a user, wherein the health monitoring request includes: an identification of a system to be monitored;
[0033] A starting module, used for starting the monitoring task corresponding to the system to be monitored according to the identification of the system to be monitored;
[0034] The processing module is used to determine the health status of the system to be monitored according to the monitoring configuration information of the monitoring task.
[0035] In a possible design, the monitoring configuration information includes: a basic indicator set, and a weight distribution scheme corresponding to the basic indicator set;
[0036] Accordingly, the processing module is specifically used for:
[0037] According to each basic indicator included in the basic indicator set, obtaining each basic indicator monitoring data of the system to be monitored;
[0038] Determine the score of each basic indicator according to the basic indicator monitoring data of the system to be monitored and the preset basic indicator threshold data;
[0039] Obtaining a health score of the system to be monitored according to the scores of each basic indicator and a weight distribution scheme corresponding to the basic indicator set;
[0040] The health status of the system to be monitored is determined according to the health score of the system to be monitored and a preset health threshold.
[0041] In a possible design, the processing module is used to obtain each basic indicator monitoring data of the system to be monitored according to each basic indicator included in the basic indicator set, specifically:
[0042] The processing module is specifically used for:
[0043] Determine, according to each basic indicator included in the basic indicator set, a monitoring platform associated with each basic indicator;
[0044] Obtain the monitoring data of each basic indicator from the monitoring platform associated with each basic indicator.
[0045] In a possible design, the processing module is further used for:
[0046] For each basic indicator, the basic indicator monitoring data is encapsulated to obtain a target data body corresponding to the basic indicator, wherein the name of the target data body includes: an identifier of the system to be monitored, a type of the basic indicator, and an identifier of the basic indicator;
[0047] Storing the target data body corresponding to the basic indicator into the cache space;
[0048] The data in the cache space is periodically persisted to the database.
[0049] In a possible design, the processing module is used to determine the score of each basic indicator according to each basic indicator monitoring data of the system to be monitored and each preset basic indicator threshold data, specifically:
[0050] The processing module is specifically used for:
[0051] For each basic indicator, calculating the ratio between the basic indicator monitoring data corresponding to the basic indicator and the basic indicator threshold data;
[0052] When the ratio and the preset threshold value satisfy a preset relationship, the score of the basic indicator is calculated according to the ratio and the preset health score.
[0053] In a possible design, the basic indicator set includes at least one of the following indicators: code quality, business function, container survival status, hardware usage information, and startup service quality.
[0054] In a possible design, the acquisition module is further used to acquire a task establishment request of the system to be monitored, and the task establishment request includes: an identifier of the system to be monitored;
[0055] The processing module is further used for:
[0056] Establishing a monitoring task for the system to be monitored according to the task establishment request;
[0057] Acquire and store the monitoring configuration information of the monitoring task.
[0058] According to a third aspect of the present application, a monitoring processing device is provided, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described in the first aspect and various possible designs is implemented.
[0059] According to a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect and various possible designs.
[0060] According to the fifth aspect of the present application, a computer program product is provided, comprising: a computer program, wherein the computer program is stored in a readable storage medium, and at least one processor of a monitoring and processing device can read the computer program from the readable storage medium, and the at least one processor executes the computer program so that the monitoring and processing device executes the method described in the first aspect.
[0061] The system health monitoring method, device, equipment and storage medium provided in the embodiment of the present application obtains a health monitoring request issued by a user, and the health monitoring request includes: an identification of the system to be monitored, and starts a monitoring task corresponding to the system to be monitored according to the identification of the system to be monitored, so that the health status of the system to be monitored can be determined according to the monitoring configuration information of the monitoring task. In this technical solution, the monitoring task can be started when a monitoring request is received, and the health status can be automatically obtained according to the monitoring configuration information of the monitoring task, without human participation, reducing human subjective influence and improving real-time performance and monitoring accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0063] Figure 1 A schematic diagram of an application scenario of the system health monitoring method provided in an embodiment of the present application;
[0064] Figure 2 A flowchart of a first embodiment of the system health monitoring method provided in this application;
[0065] Figure 3A flowchart of a second embodiment of the system health monitoring method provided in this application;
[0066] Figure 4 A schematic diagram of collecting basic indicator monitoring data provided in an embodiment of the present application;
[0067] Figure 5 It is a distribution diagram of each basic indicator in the basic indicator set;
[0068] Figure 6 A schematic diagram of health scores of multiple systems to be monitored shown in an embodiment of the present application;
[0069] Figure 7 A schematic diagram of determining a health score of a trading system in an embodiment of the present application;
[0070] Figure 8 A flowchart of a third embodiment of the system health monitoring method provided in this application;
[0071] Fig. 9 A schematic diagram of the process of constructing a monitoring task for a system to be monitored according to an embodiment of the present application;
[0072] Fig.10 A schematic diagram of the structure of an embodiment of a system health monitoring device provided in an embodiment of the present application;
[0073] Fig.11 A schematic diagram of the structure of an embodiment of the monitoring and processing equipment provided in this application.
[0074] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0075] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0076] First, the terms involved in the embodiments of the present application are explained:
[0077] Java Virtual Machine (JVM): is a specification for computing devices. It is a fictional computer that is implemented by simulating various computer functions on an actual computer.
[0078] Remote procedure call (RPC): It can be understood as one node requesting a service provided by another node.
[0079] Cache is a buffer for data exchange. When the browser executes a request, it will first search in the cache. If it exists, it will be retrieved; otherwise, it will access the database. The cached data can be read faster.
[0080] The redis database is a cache database and a non-relational database used to store frequently used data, which reduces the number of database accesses and improves operational efficiency, but the storage time is limited.
[0081] MySQL is a relational database with persistent storage. It is mainly used to store persistent data. It stores data on the hard disk and has a slow reading speed.
[0082] Based on the background technology, it can be known that the monitoring of system health in the prior art is mainly carried out by manually isolating and monitoring various factors that affect the health of the system, and summarizing the monitoring results to determine the health status of the system to be monitored. The monitoring results of the above scheme are affected by human subjectivity, and there are problems such as poor real-time performance, prone to errors, time-consuming and labor-intensive, and low accuracy of monitoring results. Moreover, as the number of systems to be monitored increases, the system health status becomes increasingly uncontrollable.
[0083] Furthermore, there are many factors that determine whether a system is healthy, such as system deployment hardware, system JVM, system container port, system interface performance, system interface call volume, system code quality, and system RPC service. Each of the above factors will affect the normal operation of the system and determine the health of the system. Moreover, since different systems are located in different fields, each system has different concerns about each factor. Therefore, a fixed set of system health monitoring rules cannot be applied to systems in various fields.
[0084] In response to the above technical problems, the conceiving process of the technical solution of the present application is as follows: the inventor has discovered in practice that there is a key performance indicator (KPI) assessment scheme in enterprise performance management. KPI is a target-based quantitative management indicator that measures process performance by setting, sampling, calculating and analyzing key parameters of the input and output ends of the internal processes of the organization. It can be a tool for breaking down the strategic goals of an enterprise into operational work goals and is the basis of enterprise performance management. Therefore, the inventor applies the KPI concept to system health monitoring. By setting basic assessment indicators for each system to be monitored and assessing each indicator, the health status of the system to be monitored can be determined.
[0085] Based on the above-mentioned conception process, the embodiment of the present application provides a system health monitoring method, which obtains a health monitoring request issued by a user, and the health monitoring request includes: the identification of the system to be monitored, and starts the monitoring task corresponding to the system to be monitored according to the identification of the system to be monitored, so that the health status of the system to be monitored can be determined according to the monitoring configuration information of the monitoring task. In this technical solution, the monitoring task can be started when the monitoring request is received, and the health status can be automatically obtained according to the monitoring configuration information of the monitoring task, without human participation, reducing the subjective influence of human beings, and improving real-time performance and monitoring accuracy.
[0086] For example, Figure 1 Schematic diagram of application scenarios of the system health monitoring method provided in the embodiment of the present application. Figure 1 As shown, the application scenario may include: at least one system to be monitored 11 and a monitoring processing device 12. The monitoring processing device 12 may communicate information with the service device 110 of the system to be monitored 11. For example, the monitoring processing device 12 may obtain basic indicator monitoring data corresponding to each basic indicator of the system to be monitored 11.
[0087] Exemplarily, in actual applications, at least one monitoring platform 13 is also arranged between each monitored system 11 and the monitoring processing device 12. Each monitoring platform can monitor at least one basic indicator of at least one monitored system, determine the basic indicator monitoring data corresponding to each basic indicator, and transmit it to the monitoring processing device 12.
[0088] Correspondingly, the monitoring processing device 12 can receive a health monitoring request triggered by the outside world, and start the monitoring task corresponding to the system to be monitored according to the identification of the system to be monitored carried in the health monitoring request, and determine the health status of the system to be monitored based on the monitoring configuration information of the monitoring task.
[0089] Specifically, the monitoring processing device 12 pre-stores the monitoring configuration information of the monitoring tasks corresponding to each system to be monitored, for example, a set of basic monitoring indicators and a weight distribution scheme corresponding to the set of basic indicators. After receiving a health monitoring request, the technical solution of the present application can be automatically executed, thereby determining the health status of the system to be monitored without the need for human participation in monitoring.
[0090] In a possible design of the present application, the monitoring and processing device 12 may have an operation interaction interface 120. Therefore, when the monitoring and processing device 12 determines the health status of the system to be monitored, it can be displayed through the operation interaction interface 120 so that the monitoring personnel can obtain the health status of each system to be monitored in a timely manner.
[0091] In a possible design of the present application, the application scenario may also include a display device, which is connected to the monitoring and processing device 12 and can receive and display the processing results of the monitoring and processing device 12, such as health status, etc.
[0092] It is understandable that the embodiment of the present application is explained by including a system to be monitored in the application scenario. In actual application, the number of systems to be monitored connected to the monitoring processing device 12 is not limited, and it can be determined according to actual needs, which is not elaborated here.
[0093] It should be noted that the attached Figure 1 This is only a schematic diagram of an application scenario provided by the embodiment of the present application. Figure 1 does not limit the equipment included in Figure 1 The positional relationship between the devices in the Figure 1 In the embodiment, the display device can be an external device relative to the monitoring processing device 12, and in other cases, it can also be an integrated device, which is not limited in the embodiments of the present application.
[0094] In the embodiments of the present application, the above-mentioned monitoring and processing device 12 can be implemented by a terminal device or a server. As long as it is a device that can execute the computer program corresponding to the system health monitoring method provided in the present application, it can be implemented and is not limited here.
[0095] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0096] Figure 2The flowchart of the system health monitoring method embodiment 1 provided in this application is as follows. Figure 1 The monitoring and processing device shown is explained as the execution subject. Figure 2 As shown, the system health monitoring method may include the following steps:
[0097] S201. Obtain a health monitoring request issued by a user, where the health monitoring request includes: an identifier of a system to be monitored.
[0098] In an embodiment of the present application, when a user (usually the person responsible for system monitoring) wants to know the health status of a system, he can issue a health monitoring request so that the monitoring processing device that executes the system health monitoring method obtains the identification of the system to be monitored in order to execute the subsequent health monitoring processing process.
[0099] In one possible design, the monitoring and processing device has an operation interaction interface. In this case, the user inputs the identifier of the system to be monitored on the operation interaction interface and triggers the monitoring and processing device to start working, so that the monitoring and processing device can obtain the health monitoring request.
[0100] In another possible design, the monitoring and processing device has a communication connection with the user terminal. When the user enters the identifier of the system to be monitored on the operation interaction interface of the user terminal and clicks send, the monitoring and processing device can obtain the health monitoring request, thereby obtaining the identifier of the system to be monitored, and then executing the subsequent health monitoring processing process.
[0101] It can be understood that, in actual applications, the monitoring and processing equipment is a system health monitoring device uniformly built for certain software systems, and it can be used to monitor the health status of these software systems in real time.
[0102] S202: Start a monitoring task corresponding to the system to be monitored according to the identification of the system to be monitored.
[0103] Exemplarily, in this embodiment, monitoring tasks of one or more systems can be deployed on the monitoring processing device. Therefore, after obtaining the identification of the system to be monitored, the monitoring processing device can query among all the constructed monitoring tasks to locate the monitoring task of the system to be monitored, and start the monitoring task to execute the calculation process of the health status.
[0104] S203: Determine the health status of the system to be monitored according to the monitoring configuration information of the monitoring task.
[0105] In this step, since the monitoring processing device can process health monitoring requests of multiple systems at the same time, multiple system monitoring tasks may be running at the same time. In actual applications, different systems may need to pay attention to different indicators, so the pre-stored monitoring configuration information of each monitoring task is also different. Therefore, after the monitoring task corresponding to the monitored system is started, the stored monitoring configuration information can be queried first to determine the monitoring configuration information of the monitoring task, and then obtain the relevant indicator data of the monitored system based on the monitoring configuration information, and then calculate the health status of the monitored system.
[0106] Optionally, the monitoring processing device applied in the system health monitoring method provided in the embodiment of the present application can uniformly monitor multiple systems in multiple fields by separately constructing monitoring tasks, and configure corresponding monitoring configuration information for the monitoring tasks corresponding to each system, for example, multiple basic assessment indicators for each system, monitoring rules for multiple basic assessment indicators, etc., so that the health monitoring of the system can be ultimately achieved.
[0107] The system health monitoring method provided in the embodiment of the present application obtains a health monitoring request issued by a user, and the health monitoring request includes: an identification of the system to be monitored, and starts a monitoring task corresponding to the system to be monitored according to the identification of the system to be monitored, so that the health status of the system to be monitored can be determined according to the monitoring configuration information of the monitoring task. In this technical solution, the monitoring task can be started when a monitoring request is received, and the health status can be automatically obtained according to the monitoring configuration information of the monitoring task, without human participation, reducing human subjective influence and improving real-time performance and monitoring accuracy.
[0108] For example, in the above embodiment, if the monitoring configuration information includes: a basic indicator set and a weight distribution scheme corresponding to the basic indicator set, then the above S203 can be performed as follows: Figure 3 The embodiment shown implements.
[0109] Figure 3 This is a flow chart of the second embodiment of the system health monitoring method provided in this application. Figure 3 As shown, the above S203 can be implemented by the following steps:
[0110] S301. Obtain basic indicator monitoring data of the system to be monitored according to each basic indicator included in the basic indicator set.
[0111] Exemplarily, the basic indicator set includes at least one of the following indicators: code quality, business function, container survival, hardware usage information, and startup service quality. The basic indicator sets of different systems may be different, which can be configured by the monitoring person in charge of the system according to the focus of each system, and this embodiment does not limit it.
[0112] Specifically, the monitoring processing device may determine the monitoring platform associated with each basic indicator according to each basic indicator included in the basic indicator set, and then obtain each basic indicator monitoring data from the monitoring platform associated with each basic indicator.
[0113] Optionally, after starting the monitoring task corresponding to the system to be monitored, the monitoring processing device can start multiple scheduled tasks according to the basic indicator set of the monitoring task, and collect relevant data in real time based on each basic indicator included in the basic indicator set.
[0114] For example, when the basic indicator set includes indicators such as code quality, business functions, container survival, hardware usage information, and startup service quality, the monitoring and processing equipment can start the scheduled tasks corresponding to the monitored system, and collect relevant data such as system code scanning, business message queue (message queue, MQ), business interface calls, system container port survival, system container virtual machine, system hardware information, and RPC service survival.
[0115] For example, Figure 4 A schematic diagram of the collection of basic indicator monitoring data provided in an embodiment of the present application. Figure 5 This is a schematic diagram of the distribution of each basic indicator in the basic indicator set. Figure 4 and Figure 5 As shown, it is assumed that the basic indicator set of the system to be monitored may include: code quality monitoring, MQ business function monitoring, container monitoring, hardware monitoring, RPC monitoring, etc. Among them, container monitoring may include: method call monitoring, system survival monitoring, and virtual machine monitoring, etc., hardware monitoring includes: disk usage monitoring and system memory monitoring, and RPC monitoring refers to RPC service monitoring, etc.
[0116] Optionally, code quality monitoring mainly monitors quality problems existing in the code of the system to be monitored, such as blocking problems (i.e., very serious problems) and serious problems, and generates code monitoring data. Optionally, the code monitoring data is mainly obtained from an enterprise operating system (EOS) monitoring platform associated with the code.
[0117] It can be understood that blocking problems and serious problems are divided according to the degree of problems in the code indicator based on preset information. This embodiment does not limit the specific boundaries of the division, which can be determined according to actual needs and will not be elaborated here.
[0118] Business function monitoring is mainly to monitor the business call volume in a unit time, and the received business MQ message body is also called business monitoring data. Optionally, the MQ message body can include two types: a defined MQ message body and a custom message body.
[0119] Container monitoring - method call monitoring mainly monitors the call volume, availability, and TP99 performance of the business interface in the monitoring system per unit time, so as to obtain functional monitoring data. Among them, TP99 is the minimum time required to meet 99% of network requests.
[0120] Container monitoring-system survival monitoring mainly monitors the port survival and heartbeat survival of the container where the monitored system is located, and obtains survival monitoring data.
[0121] Container monitoring - virtual machine monitoring mainly monitors the full GC times of the JVM of the container where the monitored system is located and the number of all threads in the current system, and obtains virtual machine monitoring data. Full GC is to clean up the entire heap space (including young generation and permanent generation), and GC is the Java garbage collection mechanism.
[0122] In an embodiment of the present application, the monitoring platform associated with the container is an integrated database platform (unified mysql platform, UMP), therefore, the above-mentioned function monitoring data, survival monitoring data and virtual machine monitoring data are all obtained from UMP.
[0123] Hardware monitoring mainly monitors the disk usage and CPU usage of the Docker machine deployed by the monitoring system. The obtained data is hardware monitoring data, which is mainly obtained from the manufacturing data collection and control (MDC) management system.
[0124] RPC service monitoring mainly monitors the number of surviving RPC service instances in the monitored system, and obtains microservice monitoring data, which mainly comes from the Java service framework (Java Server Faces, JSF), which is a standard framework for building Java Web applications.
[0125] Therefore, from the above analysis, it can be known that the monitoring processing equipment can periodically (for example, in minutes) call the application programming interface (API) of monitoring platforms such as EOS, UMP, JSF, and MDC, and monitor the business MQ information in real time, so as to obtain the monitoring data of various basic indicators.
[0126] Optional, in Figure 4 In the process, after the monitoring and processing device obtains the monitoring data of each basic indicator, it first stores the monitoring data of each basic indicator in Redis as cache data, and then stores it in MySQL as historical data.
[0127] Furthermore, in an embodiment of the present application, after the monitoring processing device obtains each basic indicator monitoring data of the system to be monitored according to each basic indicator included in the basic indicator set, it may also perform the following steps:
[0128] A1. For each basic indicator, encapsulate the basic indicator monitoring data to obtain a target data body corresponding to the basic indicator, wherein the name of the target data body includes: the identifier of the system to be monitored, the type of the basic indicator, and the identifier of the basic indicator;
[0129] A2. Store the target data body corresponding to the basic indicator into the cache space;
[0130] A3. Periodically persist the data in the cache space to the database.
[0131] Exemplarily, in order to facilitate subsequent reading and storage, after the monitoring processing device obtains the basic indicator monitoring data of each basic indicator, it can encapsulate it into a Json data body, and use the identifier of the system to be monitored + the basic indicator type + the basic indicator id as the list name, and finally store the assembled data in the list data result of the cache space (Redis). For example, the basic indicator monitoring data of all the systems to be monitored generated on that day are stored in MySQL at a fixed time every morning, so that they can be obtained by Elasticsearch for subsequent use.
[0132] Among them, JSON (JavaScript Object Notation) is a lightweight data exchange format. JSON uses a text format that is completely independent of the language. These features make JSON an ideal data exchange language that is easy for people to read and write, and easy for machines to parse and generate. Elasticsearch is a search server based on Lucene, providing a distributed multi-user full-text search engine based on a RESTful web interface.
[0133] In this embodiment, by first storing each basic indicator monitoring data in the cache space and then periodically persisting it in the database, both the stability of the data and the efficiency of data reading can be ensured.
[0134] S302: Determine the score of each basic indicator according to each basic indicator monitoring data of the system to be monitored and each preset basic indicator threshold data.
[0135] Exemplarily, in an embodiment of the present application, after the monitoring and processing device obtains the basic indicator monitoring data of the system to be monitored, it can obtain the preset basic indicator threshold data, and then use the basic indicator monitoring data and basic indicator threshold data of each basic indicator to determine the monitoring status of each basic indicator, and then calculate the score of each basic indicator according to the weight allocation scheme corresponding to the preset basic indicator set.
[0136] In actual applications, the monitoring and processing equipment can first calculate the ratio between the basic indicator monitoring data and the basic indicator threshold data corresponding to each basic indicator, and then when the ratio and the preset threshold satisfy the preset relationship, calculate the score of the basic indicator according to the ratio and the preset health score.
[0137] In this step, it is assumed that the preset monitoring full score of each basic indicator is 100 and the preset threshold is 1 for explanation. The score of each basic indicator is calculated separately as follows.
[0138] For code quality monitoring, the basic indicator monitoring data may include the number of actual blocking problems and the number of actual serious problems. Accordingly, the basic indicator threshold data may include: a threshold for the number of blocking problems and a threshold for the number of serious problems. Therefore, for blocking problems, first determine the first ratio of the number of actual blocking problems to the threshold for the number of blocking problems. When the first ratio is <1, the score of the blocking problem is equal to the first ratio * 100 points, and when the first ratio is ≥1, the score of the blocking problem is equal to 0 points; for serious problems, first determine the second ratio of the number of actual serious problems to the threshold for the number of serious problems. When the second ratio is <1, the score of the serious problem is equal to the second ratio * 100 points, and when the second ratio is ≥1, the score of the serious problem is equal to 0 points.
[0139] For business function monitoring, the basic indicator monitoring data is the actual number of MQ messages within 1 minute, and correspondingly, the basic indicator threshold data is the threshold number of MQ messages within 1 minute. Therefore, for business function monitoring, the third ratio of the actual number of MQ messages within 1 minute to the threshold number of MQ messages within 1 minute is first determined. When the third ratio is ≥1, the score of business function monitoring is equal to the third ratio*100 points, and when the third ratio is <1, the score of business function monitoring is equal to 0 points.
[0140] For container monitoring - method monitoring, basic indicator monitoring data may include: the actual number of method calls within 1 minute, the actual availability of the method within 1 minute, and the actual TP99 performance of the method within 1 minute. Correspondingly, basic indicator threshold data may include: the threshold for the number of method calls within 1 minute, the threshold for the availability of the method within 1 minute, and the TP99 performance threshold for the method within 1 minute.
[0141] Therefore, for the number of times a method is called within 1 minute, the fourth ratio of the actual number of times the method is called within 1 minute to the threshold number of times the method is called within 1 minute is first determined. When the fourth ratio is less than 1, the score of the number of times the method is called within 1 minute is equal to the fourth ratio*100 points. When the fourth ratio is ≥1, the score of the number of times the method is called within 1 minute is equal to 0 points.
[0142] For the method availability rate within 1 minute, first determine the fifth ratio of the method actual availability rate within 1 minute to the method availability rate threshold within 1 minute. When the fifth ratio is ≥1, the score of the method availability rate within 1 minute is equal to the fifth ratio*100 points. When the fifth ratio is <1, the score of the method availability rate within 1 minute is equal to 0 points.
[0143] For the TP99 performance of the method within 1 minute, the sixth ratio of the actual TP99 performance within 1 minute to the TP99 performance threshold of the method within 1 minute is first determined. When the sixth ratio is less than 1, the score of the TP99 performance of the method within 1 minute is equal to the sixth ratio*100 points. When the sixth ratio is ≥1, the score of the TP99 performance of the method within 1 minute is equal to 0 points.
[0144] For container monitoring-survival monitoring, the basic indicator monitoring data is the actual number of system containers that survive, and the basic indicator threshold data is the threshold number of system containers that survive. Therefore, for system survival monitoring, the seventh ratio of the actual number of system containers that survive to the threshold number of system containers that survive is first determined. When the seventh ratio is ≥1, the score of container monitoring-survival monitoring is equal to the seventh ratio*100 points. When the seventh ratio is <1, the score of container monitoring-survival monitoring is equal to 0 points.
[0145] For container monitoring-virtual machine monitoring, basic indicator monitoring data may include: actual number of system virtual machine garbage collection times, actual number of system threads, and basic indicator threshold data may include: system virtual machine garbage collection times threshold, system thread number threshold.
[0146] Therefore, for the number of system virtual machine garbage collection times, first determine the eighth ratio of the actual number of system virtual machine garbage collection times and the system virtual machine garbage collection times threshold value. When the eighth ratio is less than 1, the score of the system virtual machine garbage collection times is equal to the eighth ratio * 100 points. When the eighth ratio is ≥1, the score of the system virtual machine garbage collection times is equal to 0 points.
[0147] In terms of the number of system threads, first determine the ninth ratio of the actual number of system threads to the threshold number of system threads. When the ninth ratio is less than 1, the score of the number of system threads is equal to the ninth ratio*100 points. When the ninth ratio is ≥1, the score of the number of system threads is equal to 0 points.
[0148] For hardware monitoring, basic indicator monitoring data may include: actual system disk usage, actual system CPU usage, and actual system memory usage; basic indicator threshold data may include: system disk usage threshold, system CPU usage threshold, and system memory usage threshold.
[0149] Therefore, in terms of system disk usage, we first determine the tenth ratio of the actual system disk usage to the system disk usage threshold. When the tenth ratio is less than 1, the score of the system disk usage is equal to the tenth ratio*100 points. When the tenth ratio is ≥1, the score of the system disk usage is equal to 0 points.
[0150] For the system CPU usage, first determine the eleventh ratio of the actual system CPU usage to the system CPU usage threshold. When the eleventh ratio is less than 1, the score of the system CPU usage is equal to the eleventh ratio*100 points. When the eleventh ratio is ≥1, the score of the system CPU usage is equal to 0 points.
[0151] For the system memory usage, first determine the twelfth ratio of the actual system memory usage to the system memory usage threshold. When the twelfth ratio is less than 1, the score of the system memory usage is equal to the twelfth ratio*100 points. When the twelfth ratio is ≥1, the score of the system memory usage is equal to 0 points.
[0152] For RPC service monitoring, the basic indicator monitoring data is the actual number of surviving system RPC services, and the basic indicator threshold data is the threshold number of surviving system RPC services. Therefore, for RPC service monitoring, the thirteenth ratio of the actual number of surviving system RPC services to the threshold number of surviving system RPC services is first determined. When the thirteenth ratio is ≥1, the score of RPC service monitoring is equal to the thirteenth ratio*100 points. When the thirteenth ratio is <1, the score of RPC service monitoring is equal to 0 points.
[0153] It is understandable that, in this embodiment, when the ratio satisfies the preset relationship, the score of the basic indicator is calculated according to the ratio and the preset health score. In practical applications, in order to simplify the calculation steps, when the ratio satisfies the preset relationship, the score of the basic indicator is directly used as the preset health score as a premise, and then the health score of the monitored system is determined according to the weight value of each basic indicator. The specific implementation details are not limited here.
[0154] S303: Obtain a health score of the system to be monitored according to the scores of each basic indicator and the weight distribution scheme corresponding to the basic indicator set.
[0155] In an embodiment of the present application, in the weight distribution scheme corresponding to the basic indicator set, the sum of the weights of each basic indicator is equal to 100%. Therefore, the health score of each basic indicator is equal to the product of the score of the basic indicator and the weight of the basic indicator. Correspondingly, the health score of the system to be monitored is equal to the sum of the health scores of each basic indicator.
[0156] In this step, the embodiment of the present application takes the monitoring configuration information of the monitoring task configured for the system to be monitored as a basis, and then combines the collected basic indicator monitoring data to assess each indicator of the system to be monitored, and finally obtains the health score of the system to be monitored.
[0157] For example, Figure 6 FIG. 1 is a schematic diagram of health scores of multiple systems to be monitored shown in an embodiment of the present application. Figure 6 As shown, according to the operation interaction interface of the monitoring and processing device, the system management directory can include a system score and a system list. The system score shows the health score of the monitoring system corresponding to the current monitoring task, and the system list can be a list of systems that can be monitored by the monitoring and processing device.
[0158] For example, in Figure 6 In the system score interface shown, the health scores of the monitoring systems corresponding to 6 monitoring tasks are shown, namely, monitoring task 1 to monitoring task 6. Each monitoring task has a monitoring task name, a monitoring system name and an administrator, and a health score of the monitoring system, and some deduction items can also be shown on the interface, for example, in the order of deduction from most to least (this embodiment is not limited to this), wherein, in this embodiment, the full score of the health score of the monitoring system is 100 for explanation.
[0159] For example, the monitoring task name of monitoring task 1 is monitoring task 1, the administrator is M1, the full health score of the monitoring system is 39.51 points, and the deduction items include: N1 deduction 10 points, N2 deduction 6.04 points, N3 deduction 5 points, N4 deduction 5 points. Similarly, the monitoring task name of monitoring task 2 is monitoring task 2, the administrator is M2, the full health score of the monitoring system is 35.69 points, and the deduction items include: N4 deduction 20 points, N1 deduction 20 points, N2 deduction 11.6 points, N3 deduction 10 points. The monitoring task name of monitoring task 3 is monitoring task 3, the administrator is M1, the full health score of the monitoring system is 61 points, and the deduction items include: N3 deduction 10 points, N4 deduction 5 points, N1 deduction 3.97 points, N2 deduction 0.02 points. The monitoring task name of monitoring task 4 is monitoring task 4, the administrator is M1, the full health score of the monitoring system is 53.37 points, and the deduction items include: N3 deduction 10 points, N4 deduction 10 points, N5 deduction 10 points, N6 deduction 6.7 points. The monitoring task name of monitoring task 5 is monitoring task 5, the administrator is M3, the full health score of the monitoring system is 0 points, and the deduction items include: N3 deduction 10 points. The monitoring task name of monitoring task 6 is monitoring task 6, the administrator is M4, the full health score of the monitoring system is 78.37 points, and the deduction items include: N6 deduction 10.02 points, N3 deduction 5 points, N4 deduction 5 points, N2 deduction 1.6 points.
[0160] It can be understood that the embodiments of the present application do not limit the number of deduction items for each system, the health score of each system, the specific name of each deduction item, and the specific score of each deduction item. All of these can be determined based on the actual scenario and will not be elaborated here.
[0161] Furthermore, Figure 7 Schematic diagram of determining the health score of the trading system in the embodiment of the present application. Figure 7 As shown, in actual applications, it is assumed that the basic health monitoring indicators of the system may include:
[01] code monitoring,
[02] business MQ monitoring,
[03] function monitoring,
[04] system survival monitoring,
[05] system hardware monitoring,
[06] virtual machine monitoring, and
[07] RPC service monitoring.
[0162] Therefore, when the system to be monitored is a trading system, the basic indicator set corresponding to the monitoring task of the trading system may include:
[01] code error,
[02] order quantity MQ,
[03] search function,
[03] add to cart function,
[06] clean up the entire heap space,
[04] port survival,
[04] system heartbeat,
[05] disk monitoring, etc. Correspondingly, the configuration indicator monitoring threshold of
[01] code monitoring is the maximum error number threshold value, and the configuration indicator weight is 10%; the configuration indicator monitoring threshold of
[02] order quantity MQ is the order quantity threshold value within 1 minute, and the configuration indicator weight is 10%; the configuration indicator monitoring threshold of
[03] search function is the number of successful searches within 1 minute and the number of successful searches within 1 minute. The number of search failures, the configuration indicator weight is 10%;
[03] The configuration indicator monitoring threshold of the shopping cart function is the number of successful cart additions within 1 minute and the number of failed cart additions within 1 minute, and the configuration indicator weight is 10%;
[06] The configuration indicator monitoring threshold of cleaning the entire heap space is the number of times the entire heap space is cleaned within 10 minutes, and the configuration indicator weight is 10%;
[04] The configuration indicator monitoring threshold of port survival is the port death number threshold, and the configuration indicator weight is 10%;
[04] The configuration indicator monitoring threshold of system heartbeat is the system heartbeat failure number threshold, and the configuration indicator weight is 10%;
[05] The configuration indicator monitoring threshold of disk monitoring is the disk usage threshold, and the configuration indicator weight is 30%.
[0163] Optional, according to the above Figure 7 According to the various indicators shown, executing S301 to S303 in this embodiment can obtain a health score of 90 points for the trading system.
[0164] It is understandable that the above Figure 7 The specific values and basic indicators of the configuration are all exemplary descriptions and are not limited in this embodiment.
[0165] S304: Determine the health status of the system to be monitored according to the health score of the system to be monitored and a preset health threshold.
[0166] In an embodiment of the present application, after determining the health score of the system to be monitored, the monitoring processing device can query the preset health threshold and determine the health status of the system to be monitored based on the relationship between the health score of the system to be monitored and the preset health threshold.
[0167] For example, assuming that the preset health threshold of the monitored system is 50 points, when the health score of the monitored system is greater than or equal to 50 points, it is determined that the monitored system is in a healthy state; when the health score of the monitored system is less than 50 points, it is determined that the monitored system has health problems.
[0168] It is understandable that the embodiments of the present application can also divide the health status of the system to be monitored into different states such as excellent, good, qualified, etc. according to the score of the system to be monitored according to actual needs, and the embodiments of the present application are not limited thereto.
[0169] The system health monitoring method provided in the embodiment of the present application obtains each basic indicator monitoring data of the system to be monitored according to each basic indicator included in the basic indicator set, and then determines the score of each basic indicator according to each basic indicator monitoring data of the system to be monitored and each preset basic indicator threshold data, and obtains the health score of the system to be monitored according to the score of each basic indicator and the weight allocation scheme corresponding to the basic indicator set, and finally determines the health status of the system to be monitored according to the health score of the system to be monitored and the preset health threshold. In this technical solution, according to each basic indicator monitoring data of the system to be monitored and the weight allocation scheme corresponding to the basic indicator set, the health score of the system to be monitored can be automatically calculated, and then the health status of the system to be monitored can be determined, without human participation, thereby improving the monitoring accuracy.
[0170] Exemplarily, based on the above embodiments, Figure 8 This is a flow chart of the third embodiment of the system health monitoring method provided in this application. Figure 8 As shown, before the above S201, the system health monitoring method may also include the following steps:
[0171] S801. Obtain a task establishment request of a system to be monitored, where the task establishment request includes: an identifier of the system to be monitored.
[0172] In an embodiment of the present application, when there is a need to monitor whether the system is healthy, the system responsible person can send a task establishment request including an identifier of the system to be monitored to the monitoring processing device, so that the monitoring processing device can perform the target operation in a targeted manner.
[0173] S802: Establish a monitoring task for the system to be monitored according to the task establishment request.
[0174] Optionally, the monitoring processing device may obtain the identification of the system to be monitored by parsing the acquired task establishment request, and then may establish a monitoring task for the system to be monitored so as to subsequently monitor it in a targeted manner.
[0175] S803: Acquire and store monitoring configuration information of the monitoring task.
[0176] Exemplarily, in order to enable the monitoring processing device to automatically implement health monitoring of the monitored system, the system manager first needs to configure monitoring configuration information for the monitored system, for example, including: a basic indicator set and a weight distribution scheme corresponding to the basic indicator set.
[0177] Specifically, the system manager determines the basic indicators of the system to be monitored based on the characteristics of the system, and configures the weight value of each basic indicator according to the impact of each basic indicator on the system to be monitored, and writes it into the monitoring processing device.
[0178] For example, Fig. 9 This is a schematic diagram of the process of constructing a monitoring task for the system to be monitored in the embodiment of the present application. Fig. 9 As shown, when a task establishment request is received, a monitoring task is first created for the system to be monitored. Then, when the monitoring configuration information of the monitoring task is obtained, the monitoring configuration information of the monitoring task is stored. Finally, in the specific monitoring process, when the monitoring task of the monitoring system is started, the basic indicator monitoring data obtained is first stored in Redis, that is, cache data. The cache data is read faster but easy to lose. Then it is periodically stored in MySQL, that is, the backup data. The backup data is stored in MySQL and is not easy to lose, but the reading speed is relatively slow.
[0179] The system health monitoring method provided in the embodiment of the present application obtains a task establishment request of the system to be monitored, and the task establishment request includes: an identifier of the system to be monitored, establishes a monitoring task for the system to be monitored according to the task establishment request, and finally obtains and stores the monitoring configuration information of the monitoring task. In this technical solution, by creating a monitoring task for the system to be monitored and configuring the monitoring configuration information, a prerequisite is provided for the subsequent automatic determination of the health of the system to be monitored.
[0180] The above describes the specific implementation process of the system health monitoring method provided by the present application. The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0181] Fig.10 This is a schematic diagram of the structure of the system health monitoring device embodiment provided in the present application. Fig.10 As shown, the system health monitoring device may include:
[0182] The acquisition module 1001 is used to acquire a health monitoring request issued by a user, wherein the health monitoring request includes: an identifier of a system to be monitored;
[0183] A starting module 1002 is used to start a monitoring task corresponding to the system to be monitored according to the identification of the system to be monitored;
[0184] The processing module 1003 is used to determine the health status of the system to be monitored according to the monitoring configuration information of the monitoring task.
[0185] In a possible design, the monitoring configuration information includes: a basic indicator set, and a weight distribution scheme corresponding to the basic indicator set;
[0186] Accordingly, the processing module 1003 is specifically used for:
[0187] According to each basic indicator included in the basic indicator set, obtaining each basic indicator monitoring data of the system to be monitored;
[0188] Determine the score of each basic indicator according to the basic indicator monitoring data of the system to be monitored and the preset basic indicator threshold data;
[0189] Obtaining a health score of the system to be monitored according to the scores of each basic indicator and a weight distribution scheme corresponding to the basic indicator set;
[0190] The health status of the system to be monitored is determined according to the health score of the system to be monitored and a preset health threshold.
[0191] In a possible design, the processing module 1003 is used to obtain each basic indicator monitoring data of the system to be monitored according to each basic indicator included in the basic indicator set, specifically:
[0192] The processing module 1003 is specifically used for:
[0193] Determine, according to each basic indicator included in the basic indicator set, a monitoring platform associated with each basic indicator;
[0194] Obtain the monitoring data of each basic indicator from the monitoring platform associated with each basic indicator.
[0195] In a possible design, the processing module 1003 is further used to:
[0196] For each basic indicator, the basic indicator monitoring data is encapsulated to obtain a target data body corresponding to the basic indicator, wherein the name of the target data body includes: an identifier of the system to be monitored, a type of the basic indicator, and an identifier of the basic indicator;
[0197] Storing the target data body corresponding to the basic indicator into the cache space;
[0198] The data in the cache space is periodically persisted to the database.
[0199] In a possible design, the processing module 1003 is used to determine the score of each basic indicator according to each basic indicator monitoring data of the system to be monitored and each preset basic indicator threshold data, specifically:
[0200] The processing module 1003 is specifically used for:
[0201] For each basic indicator, calculating the ratio between the basic indicator monitoring data corresponding to the basic indicator and the basic indicator threshold data;
[0202] When the ratio and the preset threshold value satisfy a preset relationship, the score of the basic indicator is calculated according to the ratio and the preset health score.
[0203] In a possible design, the basic indicator set includes at least one of the following indicators: code quality, business function, container survival status, hardware usage information, and startup service quality.
[0204] In a possible design, the acquisition module 1001 is further used to acquire a task establishment request of the system to be monitored, and the task establishment request includes: an identifier of the system to be monitored;
[0205] The processing module 1003 is further used for:
[0206] Establishing a monitoring task for the system to be monitored according to the task establishment request;
[0207] Acquire and store the monitoring configuration information of the monitoring task.
[0208] The device provided in the embodiment of the present application can be used to execute the technical solution described in the method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.
[0209] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the processing module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0210] Fig.11This is a schematic diagram of the structure of the monitoring and processing device embodiment provided in this application. Fig.11 As shown, the monitoring processing device may include: a processor 1101, a memory 1102, a communication interface 1103 and a system bus 1104. The memory 1102 and the communication interface 1103 are connected to the processor 1101 through the system bus 1104 and communicate with each other. The memory 1102 is used to store computer programs, and the communication interface 1103 is used to communicate with other devices. When the processor 1101 executes the computer program, the technical solution described in the above method embodiment is implemented.
[0211] Optionally, in an embodiment of the present application, the monitoring processing device may further include an operation interaction interface 1105, and the operation interaction interface 1105 is used to receive a user's instruction and / or display health score information of the system to be monitored. This embodiment does not limit this.
[0212] In this Fig.11 In the embodiment, the processor 1101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components.
[0213] The memory 1102 may include a random access memory (RAM), may include a read-only memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0214] The communication interface 1103 is used to implement the communication between the database access device and other devices (such as the client, the read-write library and the read-only library).
[0215] The system bus 1104 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus may 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.
[0216] Optionally, an embodiment of the present application further provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed on a computer, the computer executes the technical solution described in the above method embodiment.
[0217] Optionally, an embodiment of the present application further provides a chip for running instructions, wherein the chip is used to execute the technical solution described in the above method embodiment.
[0218] According to an embodiment of the present application, the present application also provides a computer program product, including: a computer program, the computer program is stored in a readable storage medium, at least one processor of the monitoring processing device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the monitoring processing device executes the solution provided by any of the above embodiments.
[0219] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the application disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0220] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A system health monitoring method, characterized in that: include: Acquire a health monitoring request issued by a user, wherein the health monitoring request includes: an identifier of a system to be monitored; According to the identification of the system to be monitored, starting the monitoring task corresponding to the system to be monitored; Determining the health status of the system to be monitored according to the monitoring configuration information of the monitoring task; The monitoring configuration information includes: a basic indicator set and a weight distribution scheme corresponding to the basic indicator set; Accordingly, determining the health status of the system to be monitored according to the monitoring configuration information of the monitoring task includes: According to each basic indicator included in the basic indicator set, obtaining each basic indicator monitoring data of the system to be monitored; According to the ratio between each basic indicator monitoring data of the system to be monitored and each preset basic indicator threshold data, when the ratio and the preset threshold satisfy a preset relationship, the score of each basic indicator is determined according to the ratio and the preset health score; Obtaining a health score of the system to be monitored according to the scores of each basic indicator and a weight distribution scheme corresponding to the basic indicator set; Determining the health status of the system to be monitored according to the health score of the system to be monitored and a preset health threshold; After acquiring each basic indicator monitoring data of the system to be monitored according to each basic indicator included in the basic indicator set, the method further includes: For each basic indicator, the basic indicator monitoring data is encapsulated to obtain a target data body corresponding to the basic indicator, wherein the name of the target data body includes: the identifier of the system to be monitored, the type of the basic indicator and the identifier of the basic indicator, and the target data body is a Json data body; Storing the target data body corresponding to the basic indicator into the cache space; The data in the cache space is periodically persisted to the database.
2. The method according to claim 1, characterized in that The acquiring, according to each basic indicator included in the basic indicator set, each basic indicator monitoring data of the system to be monitored comprises: Determine, according to each basic indicator included in the basic indicator set, a monitoring platform associated with each basic indicator; Obtain the monitoring data of each basic indicator from the monitoring platform associated with each basic indicator.
3. The method according to claim 1, characterized in that Determining the score of each basic indicator according to each basic indicator monitoring data of the system to be monitored and each preset basic indicator threshold data includes: For each basic indicator, calculating the ratio between the basic indicator monitoring data corresponding to the basic indicator and the basic indicator threshold data; When the ratio and the preset threshold value satisfy a preset relationship, the score of the basic indicator is calculated according to the ratio and the preset health score.
4. The method according to any one of claims 1 to 3, characterized in that: The basic indicator set includes at least one of the following indicators: code quality, business function, container survival, hardware usage information, and startup service quality.
5. The method according to any one of claims 1 to 3, characterized in that: Before obtaining the health monitoring request issued by the user, the method further includes: Obtaining a task establishment request of the system to be monitored, wherein the task establishment request includes: an identifier of the system to be monitored; Establishing a monitoring task for the system to be monitored according to the task establishment request; Acquire and store the monitoring configuration information of the monitoring task.
6. A system health monitoring device, characterized in that: include: An acquisition module is used to acquire a health monitoring request issued by a user, wherein the health monitoring request includes: an identification of a system to be monitored; A starting module, used for starting the monitoring task corresponding to the system to be monitored according to the identification of the system to be monitored; A processing module, used to determine the health status of the system to be monitored according to the monitoring configuration information of the monitoring task; The monitoring configuration information includes: a basic indicator set and a weight distribution scheme corresponding to the basic indicator set; Accordingly, the processing module is specifically used for: According to each basic indicator included in the basic indicator set, obtaining each basic indicator monitoring data of the system to be monitored; According to the ratio between each basic indicator monitoring data of the system to be monitored and each preset basic indicator threshold data, when the ratio and the preset threshold satisfy a preset relationship, the score of each basic indicator is determined according to the ratio and the preset health score; Obtaining a health score of the system to be monitored according to the scores of each basic indicator and a weight distribution scheme corresponding to the basic indicator set; Determining the health status of the system to be monitored according to the health score of the system to be monitored and a preset health threshold; The processing module is further used for: For each basic indicator, the basic indicator monitoring data is encapsulated to obtain a target data body corresponding to the basic indicator, wherein the name of the target data body includes: the identifier of the system to be monitored, the type of the basic indicator and the identifier of the basic indicator, and the target data body is a Json data body; Storing the target data body corresponding to the basic indicator into the cache space; The data in the cache space is periodically persisted to the database.
7. A monitoring processing device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5 when executed by a processor.
9. A computer program product comprising: A computer program, characterized in that when the computer program is executed by a processor, it is used to implement the method according to any one of claims 1 to 5.
