Index monitoring method, index monitoring device and computer storage medium
By creating business-level indicator counters in the system and recording and analyzing the operating information of each business, the defects of the difficulty in quickly positioning the system in the existing technology are solved, and monitoring efficiency and targetedness are improved.
Patent Information
- Application Number
- CN202411665534.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-04-04
AI Technical Summary
Existing system monitoring methods are difficult to quickly locate the problems such as excessive memory usage that occur in the system, especially when a large amount of data is needed to analyze, which affects business operations and consumes time, resulting in low monitoring efficiency.
An indicator monitoring method is proposed. By creating a business-level indicator counter, determining the number of keys in the counter based on the number of services currently running, obtaining and recording the business operation information of each service, and recording the indicator values in the message middleware to analyze the monitoring indicator situation.
Through the indicator monitoring method, the impact of system indicators can be quickly analyzed from the business level, the monitoring efficiency can be improved, the impact on business operations can be reduced, and the system indicator abnormality can be quickly positioned.
Smart Images

Figure CN119759714A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an indicator monitoring method, an indicator monitoring device and a computer storage medium. Background Art
[0002] Most system monitoring actually monitors the indicators provided by the system itself, such as CPU (Central Processing Unit), memory, QPS (Queries-per-second), etc., but sometimes these indicators alone cannot locate the problem well. For example, if the system has a problem of high memory usage, it is finally located that a large amount of data is read locally through redis (Remote Dictionary Server). At this time, it is difficult to analyze the problem based solely on the indicators provided by the system itself, unless it is analyzed through dump data. However, analyzing dump data not only affects the business, but also takes time, resulting in low indicator monitoring efficiency of the current monitoring system.
[0003] Among them, dump means "dump" in Chinese, which generally refers to exporting and transferring data into files or static forms, that is, saving dynamic (volatile) data as static data (persistent data). Summary of the invention
[0004] In order to solve the above technical problems, the present application proposes an indicator monitoring method, an indicator monitoring device and a computer storage medium.
[0005] In order to solve the above technical problems, the present application proposes an indicator monitoring method, which includes:
[0006] In response to the indicator monitoring instruction, obtaining the indicator to be monitored;
[0007] Based on the indicator to be monitored, create an indicator counter, wherein the number of keys in the indicator counter is determined according to the number of currently running services;
[0008] Obtaining business operation information of each currently running business;
[0009] Recording the service operation information of each currently running service in the indicator value of each key of the indicator counter;
[0010] According to the indicator values of all keys in the indicator counter, the monitoring indicator status of the currently running business is analyzed.
[0011] The obtaining of the service operation information of each currently running service includes:
[0012] Obtain the business operation information of each currently running business in the current monitoring cycle;
[0013] The recording of the service operation information of each currently running service in the indicator value of each key of the indicator counter includes:
[0014] Extract the current indicator value of the corresponding key from the business operation information of each currently running business in the current monitoring period;
[0015] Recording the current indicator value as the indicator value of the corresponding key in the indicator counter;
[0016] After the current monitoring cycle ends, the indicator values of all keys in the indicator counter are recorded in the message middleware, and the indicator values of all keys in the indicator counter are cleared.
[0017] The step of recording the current indicator value as the indicator value of the corresponding key in the indicator counter includes:
[0018] In response to the business operation generated by the current indicator value being the first business operation of the current monitoring period, using the current indicator value as the indicator value of the corresponding key in the indicator counter;
[0019] In response to the business operation generated by the current indicator value not being the first business operation in the current monitoring period, the current indicator value is added as an accumulated value to the indicator value of the corresponding key in the indicator counter.
[0020] The step of recording the current indicator value as the indicator value of the corresponding key in the indicator counter includes:
[0021] Determine whether there is a key corresponding to the current indicator value in the indicator counter;
[0022] If not, create a key corresponding to the current indicator value in the indicator counter, and use the current indicator value as the indicator value of the corresponding key in the indicator counter;
[0023] If so, the current indicator value is accumulated based on the existing indicator values of the keys corresponding to the current indicator value in the indicator counter.
[0024] Wherein, the indicator monitoring method further includes:
[0025] Read the indicator values of each business in different monitoring cycles in the message middleware to form continuous dot data of the indicator to be monitored in a continuous time;
[0026] The continuous dotted data is used to construct a chart showing the impact of each business operation on system indicators.
[0027] After constructing a chart showing the impact of each business operation on the system index using the continuous dot data, the index monitoring method further includes:
[0028] The monitoring period and / or business in which the indicator to be monitored is abnormal is located according to the chart.
[0029] The indicators to be monitored are any one or more of the following indicators: central processing unit, memory, and query rate per second.
[0030] In order to solve the above technical problems, the present application also proposes an indicator monitoring device, which includes an indicator module, a counting module, an operation module, a recording module, and an analysis module; wherein,
[0031] The indicator module is used to obtain the indicator to be monitored in response to the indicator monitoring instruction;
[0032] The counting module is used to create an indicator counter based on the indicator to be monitored, wherein the number of keys in the indicator counter is determined according to the number of currently running businesses;
[0033] The operation module is used to obtain the service operation information of each currently running service;
[0034] The recording module is used to record the business operation information of each currently running business in the indicator value of each key of the indicator counter;
[0035] The analysis module is used to analyze the monitoring indicator status of the currently running business according to the indicator values of all keys in the indicator counter.
[0036] To solve the above technical problems, the present application also proposes an indicator monitoring device, which includes a memory and a processor coupled to the memory; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the indicator monitoring method as described above.
[0037] In order to solve the above technical problems, the present application also proposes a computer storage medium, which is used to store program data. When the program data is executed by a computer, it is used to implement the above indicator monitoring method.
[0038] Compared with the prior art, the beneficial effects of the present application are: the indicator monitoring device responds to the indicator monitoring instruction to obtain the indicator to be monitored; based on the indicator to be monitored, an indicator counter is created, wherein the number of keys in the indicator counter is determined according to the number of currently running businesses; the business operation information of each currently running business is obtained; the business operation information of each currently running business is recorded in the indicator value of each key of the indicator counter; according to the indicator values of all keys in the indicator counter, the monitoring indicator of the currently running business is analyzed. Through the above-mentioned indicator monitoring method, an indicator counter is created, and the indicator counter is used to record the impact of each business on the system indicator when it is running. It is possible to quickly analyze the indicator impact of the system from the business level, and improve the efficiency and pertinence of indicator monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] in:
[0041] Figure 1 It is a flowchart of an embodiment of an indicator monitoring method provided by the present application;
[0042] Figure 2 It is a flowchart of another embodiment of the indicator monitoring method provided by the present application;
[0043] Figure 3 It is a structural schematic diagram of an embodiment of an indicator monitoring device provided by the present application;
[0044] Figure 4 It is a structural schematic diagram of another embodiment of the indicator monitoring device provided by the present application;
[0045] Figure 5 It is a structural diagram of an embodiment of a computer storage medium provided by the present application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0047] The terms "first", "second", "third", "fourth", etc. (if any) 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 of the present application described herein can, for example, be implemented in an order other than those 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 that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0048] To solve the problems of the prior art, this application proposes a universal business-level key indicator counter solution. Figure 1 , Figure 1 It is a flow chart of an embodiment of an indicator monitoring method provided by the present application.
[0049] The index monitoring method of the present application is applied to an index monitoring device, wherein the index monitoring device of the present application can be a server, a terminal device, or a system in which a server and a terminal device cooperate with each other. Accordingly, the various parts included in the index monitoring device, such as various units, subunits, modules, and submodules, can all be set in the server, can all be set in the terminal device, or can be set in the server and the terminal device respectively.
[0050] Furthermore, the above-mentioned server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules, such as software or software modules used to provide distributed servers, or it can be implemented as a single software or software module, which is not specifically limited here.
[0051] Specifically, the indicator monitoring device of the present application can be a processing unit or processor in an indicator monitoring system, and the indicator monitoring system is mainly used to consume various services. In the process of consuming services, the system parameters of the indicator monitoring system will change. Therefore, the indicator monitoring system can locate the problem of abnormal indicators by monitoring the changes of various indicators of the system itself. When the indicator changes exceed the safety threshold, the indicator monitoring system can locate the problem of abnormal indicators. The present application can further locate the problem of abnormal indicators to specific services in combination with the indicator monitoring method, and can further monitor and analyze the system indicators, so as to obtain accurate indicator monitoring results.
[0052] like Figure 1 As shown, the specific steps are as follows:
[0053] Step S11: In response to the indicator monitoring instruction, obtain the indicator to be monitored.
[0054] In an embodiment of the present application, the indicator monitoring system provides an indicator monitoring function to users or staff by providing an indicator monitoring interface.
[0055] Specifically, users or staff can view several system indicators supported by the current indicator monitoring system in the indicator monitoring interface, including but not limited to: CPU (Central Processing Unit), memory, QPS (Queries-per-second), etc. The monitoring of each system indicator represents the monitoring of each system scenario by the user or staff. Therefore, the indicator counter solution provided in this application can support a variety of scenarios for monitoring different system indicators.
[0056] Furthermore, when a user or staff member selects one or more system indicators in the indicator monitoring interface, the indicator monitoring system can generate corresponding indicator monitoring instructions, and the indicators to be monitored are the system indicators selected by the user or staff member.
[0057] Step S12: Create an indicator counter based on the indicator to be monitored, wherein the number of keys in the indicator counter is determined according to the number of currently running businesses.
[0058] In an embodiment of the present application, the indicator monitoring system creates a corresponding indicator counter based on the indicator to be monitored selected by the user. The Key in the indicator counter, that is, the key records each indicator item of the business type, and the number thereof is determined according to the number of currently running businesses. The Value corresponding to the Key in the indicator counter is the specific numerical value of the indicator item.
[0059] It should be noted that the number of currently running businesses is the number of business tasks visible in the indicator monitoring interface and run by the indicator monitoring interface. The above business tasks come from different suppliers, i.e. consumers, or from different business logics, i.e. consumer projects.
[0060] The following is an introduction to the content of the indicator counter and its creation process in this application through a specific implementation method:
[0061] The indicator monitoring system establishes a code class, and establishes a string variable type in the class to record the business type, such as "redis_GetRate". Establish a string variable serverIP in the class to record the IP of the current server, such as: "192.168.171.1". Establish a dictionary variable countDict in the class, the Key is a string type of data, which records the various indicator items of this business type, and the Value is a numerical value, that is, the specific value of the indicator item.
[0062] Step S13: Obtain the service operation information of each currently running service.
[0063] In the embodiment of the present application, the indicator monitoring system runs related businesses and records the business operation information generated by the running business. Taking the statistics of redis access related indicators as an example, the indicator monitoring system needs to record the time and amount of data accessed from redis by each business. The information of redis access data mainly affects the indicator changes of the indicator monitoring system regarding memory.
[0064] Furthermore, since the indicator monitoring system records the time when redis accesses data, the indicator monitoring system can also divide the indicator changes of each business in redis access data according to the monitoring cycle, that is, specifically obtain the data volume of redis access data in each monitoring cycle.
[0065] Step S14: recording the service operation information of each currently running service in the index value of each key of the index counter.
[0066] In the embodiment of the present application, the indicator monitoring system stores the business operation information recorded in step S13 in the Value of the Key corresponding to each business in the indicator counter, so as to record the indicator value of each business through the indicator counter.
[0067] Specifically, taking the statistics of redis access-related indicators as an example, when the indicator monitoring system needs to obtain Rate data from redis, assuming Key = 1 (assuming that the data of supplier ID = 1 is to be obtained), and then there are 3 data retrieved from redis, the indicator value of the key Key = 1 in the indicator counter is 3, thus forming business indicator data. Among them, Rate data is mainly used in PromQL to calculate the average growth rate of a certain indicator within a specific time interval.
[0068] In a specific implementation, the business indicator data generated by the indicator monitoring system can be expressed as:
[0069] {
[0070] "1":100,
[0071] "2":1,
[0072] "3":1000
[0073] }
[0074] The above business indicator data indicates that supplier ID=1 has 100 pieces of data retrieved from redis, supplier ID=2 has 1 piece of data retrieved from redis, and supplier ID=3 has 1000 pieces of data retrieved from redis.
[0075] Furthermore, during the indicator monitoring process, there may be a currently running business that is a new business running in the indicator monitoring system. At this time, the indicator counter may not have the key of the currently running business. Therefore, the indicator monitoring system also needs to add the function of adaptively adding business keys to the indicator counter.
[0076] Specifically, taking the above example, when the indicator monitoring system needs to retrieve Rate data from redis, assuming Key = 1 (assuming that the data of supplier ID = 1 is to be retrieved), then there are 3 pieces of data retrieved from redis. At this time, the indicator monitoring system first determines whether there is this Key in the indicator counter. If not, Key = 1 is added to the indicator counter, and the Value of Key = 1 is set to 3. If there is, 3 is added to the Value of this Key = 1.
[0077] When the monitoring period referred to above is a long period of time, the indicator monitoring system will always monitor the changes of the system indicators, and the Value of each Key will continue to accumulate to achieve continuous long-term monitoring of one or more system indicators.
[0078] When the monitoring cycle referred to above is a short period of time, the indicator monitoring system needs to clear the monitoring data of the previous monitoring cycle at the beginning of each monitoring cycle to ensure the independence of each monitoring cycle. In this application, the specific practice of the indicator monitoring system is: with a monitoring cycle of 1 minute, the indicator monitoring system sends the data in the dictionary to kafka every 1 minute. After the sending is successful, the dictionary is directly cleared and the key indicators start counting again. Among them, Kafka is an open source high-throughput distributed message middleware.
[0079] In the above-mentioned shorter monitoring cycle solution, the indicator monitoring system needs to further distinguish whether the currently running business is the first business operation in the current monitoring cycle. Whether it is the first business operation, the indicator monitoring system needs to execute different counting logic.
[0080] Specifically, in response to the business operation generated by the current indicator value being the first business operation in the current monitoring period, the indicator monitoring system uses the current indicator value as the indicator value of the corresponding key in the indicator counter. For example, when the business operation of Key=1 is the first business operation, there are 3 data retrieved from redis, and the indicator monitoring system directly sets the Value of Key=1 to 3.
[0081] In response to the business operation generated by the current indicator value not being the first business operation in the current monitoring cycle, the indicator monitoring system adds the current indicator value as a cumulative value to the indicator value of the corresponding key in the indicator counter. For example, when the business operation of Key=1 is not the first business operation, there are 3 data retrieved from redis. The indicator monitoring system first obtains the current value of Key=1, which is 5, and then accumulates the Value of Key=1 by 3 on the original basis, that is, 5+3=8.
[0082] Step S15: Analyze the monitoring indicators of the currently running business according to the indicator values of all keys in the indicator counter.
[0083] In the embodiment of the present application, the indicator monitoring system can clearly know the impact of each business operation on the system indicator according to the value of each key in the indicator counter. Furthermore, the indicator monitoring system can also visualize the above monitoring indicator situation on the indicator monitoring interface to facilitate users or staff to view and make further analysis.
[0084] In the present application, the indicator monitoring system responds to the indicator monitoring instruction and obtains the indicator to be monitored; based on the indicator to be monitored, an indicator counter is created, wherein the number of keys in the indicator counter is determined according to the number of currently running businesses; the business operation information of each currently running business is obtained; the business operation information of each currently running business is recorded in the indicator value of each key of the indicator counter; according to the indicator values of all keys in the indicator counter, the monitoring indicator of the currently running business is analyzed. Through the above-mentioned indicator monitoring method, an indicator counter is created, and the indicator counter is used to record the impact of each business on the system indicator when it is running. It is possible to quickly analyze the indicator impact of the system from the business level, and improve the efficiency and pertinence of indicator monitoring.
[0085] In the above Figure 1 Based on the indicator monitoring method shown, the indicator monitoring system of the present application can also achieve the effect of quickly locating abnormal problems of system indicators. Figure 2 , Figure 2 It is a flow chart of another embodiment of the indicator monitoring method provided by the present application.
[0086] like Figure 2 As shown, the specific steps are as follows:
[0087] Step S21: reading the indicator values of each business in different monitoring periods in the message middleware to form continuous dot data of the indicator to be monitored within a continuous time.
[0088] In an embodiment of the present application, the indicator monitoring system or a unified message processing server reads the message and then writes the data into the Hologres database, thereby forming a series of key indicator data of a specified business type over a continuous period of time, and then constructs relevant charts based on the data to assist in problem analysis.
[0089] Among them, Hologres is a relational database focusing on real-time query and analysis. It uses optimization technologies such as column storage and indexing, which can provide lower query latency and high-performance query response.
[0090] Step S22: Use the continuous dot data to construct a chart showing the impact of each business operation on system indicators.
[0091] Step S23: Locate the monitoring period and / or business where the monitored indicator is abnormal according to the chart.
[0092] In an embodiment of the present application, the indicator monitoring system can use charts, such as line charts, to analyze abnormal monitoring cycles, or abnormal business, etc.
[0093] The following introduces the positioning process in combination with the scenario of statistics on redis access-related indicators:
[0094] Suppose that there is an intermittent memory and bandwidth surge problem in a certain Redis instance. It is known that this Redis instance stores the supplier quotation cache, and there are nearly 2,000 suppliers. Now we need to quickly locate the problem.
[0095] 1. After retrieving data through redis, the indicator monitoring system first groups the data by supplier and counts how much data each supplier retrieves in this data retrieval operation. Assume that data from three suppliers is retrieved this time, supplier A retrieves 100 records, supplier B retrieves 1,000 records, and supplier C retrieves 5,000 records. At this time, the indicator monitoring system uses a dictionary to store these three data:
[0096] {
[0097] "A_redis_GET":100,
[0098] "B_redis_GET":1000,
[0099] "C_redis_GET":5000
[0100] }
[0101] 2. When the indicator monitoring system needs to retrieve data from redis again, assuming that the data of two suppliers is retrieved this time, supplier A retrieves 50,000 records and supplier D retrieves 3,000 records. At this time, the indicator monitoring system updates the data in this dictionary:
[0102] {
[0103] "A_redis_GET":50100,
[0104] "B_redis_GET":1000,
[0105] "C_redis_GET":5000,
[0106] "D_redis_GET":3000
[0107] }
[0108] 3. Similarly, after each data is retrieved, the statistical data in this dictionary is updated, and the total amount of data retrieved from the corresponding supplier is accumulated.
[0109] 4. Assume that the indicator monitoring system now wants to obtain the change in the amount of data taken out from redis by each supplier according to the dimension of "per minute". Then, the indicator monitoring system needs to create a timer that executes a specific code once every minute, such as the timing function provided by the built-in function of the C# language. When the timer is triggered, the data generated in steps 1, 2, and 3 are sent to the Kafka queue. After sending, the program resets the data in the dictionary and starts a new round of statistics.
[0110] 5. The data collection system collects and stores the message data in Kafka, so that the indicator monitoring system can obtain continuous data counted every minute.
[0111] 6. Finally, the indicator monitoring system displays the recorded data as a line graph. When a memory surge occurs, if you observe the graph and find that a certain supplier has retrieved a particularly large amount of data this minute, or that the number of data retrieved from the same supplier has surged compared to the data from the previous minute, you can locate the problem.
[0112] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0113] In order to implement the above-mentioned indicator monitoring method, this application also proposes an indicator monitoring device, please refer to Figure 3 , Figure 3 It is a structural diagram of an embodiment of an indicator monitoring device provided by the present application.
[0114] The indicator monitoring device 300 of this embodiment includes an indicator module 31 , a counting module 32 , an operation module 33 , a recording module 34 , and an analysis module 35 .
[0115] The indicator module 31 is used to obtain the indicator to be monitored in response to the indicator monitoring instruction.
[0116] The counting module 32 is used to create an indicator counter based on the indicator to be monitored, wherein the number of keys in the indicator counter is determined according to the number of currently running services.
[0117] The operation module 33 is used to obtain the service operation information of each currently running service.
[0118] The recording module 34 is used to record the business operation information of each currently running business in the indicator value of each key of the indicator counter.
[0119] The analysis module 35 is used to analyze the monitoring indicator status of the currently running business according to the indicator values of all keys in the indicator counter.
[0120] In order to implement the above-mentioned indicator monitoring method, this application also proposes another indicator monitoring device, please refer to Figure 4 , Figure 4 It is a structural diagram of another embodiment of the indicator monitoring device provided by the present application.
[0121] The indicator monitoring device 400 of this embodiment includes a processor 41 , a memory 42 , an input / output device 43 , and a bus 44 .
[0122] The processor 41 , the memory 42 , and the input / output device 43 are respectively connected to the bus 44 . The memory 42 stores program data, and the processor 41 is used to execute the program data to implement the indicator monitoring method described in the above embodiment.
[0123] In the embodiment of the present application, the processor 41 may also be referred to as a CPU (Central Processing Unit). The processor 41 may be an integrated circuit chip having the ability to process signals. The processor 41 may also be a general-purpose processor, 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. A general-purpose processor may be a microprocessor or the processor 41 may also be any conventional processor, etc.
[0124] This application also provides a computer storage medium, please continue to refer to Figure 5 , Figure 5 It is a structural diagram of an embodiment of a computer storage medium provided in the present application. The computer storage medium 600 stores a computer program 61. When the computer program 61 is executed by a processor, it is used to implement the indicator monitoring method of the above embodiment.
[0125] When the embodiments of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0126] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. An indicator monitoring method, characterized in that: The indicator monitoring method comprises: In response to the indicator monitoring instruction, obtaining the indicator to be monitored; Based on the indicator to be monitored, create an indicator counter, wherein the number of keys in the indicator counter is determined according to the number of currently running services; Obtaining business operation information of each currently running business; Recording the service operation information of each currently running service in the indicator value of each key of the indicator counter; According to the indicator values of all keys in the indicator counter, the monitoring indicator status of the currently running business is analyzed.
2. The indicator monitoring method according to claim 1, characterized in that: The obtaining of the service operation information of each currently running service includes: Obtain the business operation information of each currently running business in the current monitoring cycle; The recording of the service operation information of each currently running service in the indicator value of each key of the indicator counter includes: Extract the current indicator value of the corresponding key from the business operation information of each currently running business in the current monitoring period; Recording the current indicator value as the indicator value of the corresponding key in the indicator counter; After the current monitoring cycle ends, the indicator values of all keys in the indicator counter are recorded in the message middleware, and the indicator values of all keys in the indicator counter are cleared.
3. The indicator monitoring method according to claim 2, characterized in that: The step of recording the current indicator value as the indicator value of the corresponding key in the indicator counter includes: In response to the business operation generated by the current indicator value being the first business operation of the current monitoring period, using the current indicator value as the indicator value of the corresponding key in the indicator counter; In response to the business operation generated by the current indicator value not being the first business operation in the current monitoring period, the current indicator value is added as an accumulated value to the indicator value of the corresponding key in the indicator counter.
4. The indicator monitoring method according to claim 2 or 3, characterized in that: The step of recording the current indicator value as the indicator value of the corresponding key in the indicator counter includes: Determine whether there is a key corresponding to the current indicator value in the indicator counter; If not, create a key corresponding to the current indicator value in the indicator counter, and use the current indicator value as the indicator value of the corresponding key in the indicator counter; If so, the current indicator value is accumulated based on the existing indicator values of the key corresponding to the current indicator value in the indicator counter.
5. The indicator monitoring method according to claim 2, characterized in that: The indicator monitoring method further includes: Read the indicator values of each business in different monitoring cycles in the message middleware to form continuous dot data of the indicator to be monitored in a continuous time; The continuous dotted data is used to construct a chart showing the impact of each business operation on system indicators.
6. The indicator monitoring method according to claim 5, characterized in that: After constructing a chart of the impact of each business operation on the system index using the continuous dot data, the index monitoring method further includes: The monitoring period and / or business in which the indicator to be monitored is abnormal is located according to the chart.
7. The indicator monitoring method according to claim 1, characterized in that: The indicators to be monitored are any one or more of the following indicators: central processing unit, memory, and query rate per second.
8. An indicator monitoring device, characterized in that: The indicator monitoring device includes an indicator module, a counting module, an operation module, a recording module, and an analysis module; wherein, The indicator module is used to obtain the indicator to be monitored in response to the indicator monitoring instruction; The counting module is used to create an indicator counter based on the indicator to be monitored, wherein the number of keys in the indicator counter is determined according to the number of currently running businesses; The operation module is used to obtain the service operation information of each currently running service; The recording module is used to record the business operation information of each currently running business in the indicator value of each key of the indicator counter; The analysis module is used to analyze the monitoring indicator status of the currently running business according to the indicator values of all keys in the indicator counter.
9. An indicator monitoring device, characterized in that: The indicator monitoring device includes a memory and a processor coupled to the memory; The memory is used to store program data, and the processor is used to execute the program data to implement the indicator monitoring method as described in any one of claims 1 to 7.
10. A computer storage medium, characterized in that: The computer storage medium is used to store program data, and when the program data is executed by a computer, it is used to implement the indicator monitoring method according to any one of claims 1 to 7.