Service performance monitoring method, device, computer equipment and storage medium
By providing a service performance monitoring method in a complex business system architecture, the script selection and editing process is simplified, automatic monitoring without logging into the server is achieved, and monitoring efficiency is improved.
Patent Information
- Application Number
- CN202011551813.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-24
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2040-12-24
AI Technical Summary
Existing performance monitoring methods are inefficient in complex business system architectures and require logging into different servers for monitoring, resulting in inefficient data acquisition.
Provides a service performance monitoring method that determines the target service and monitoring time, searches for the initial script from the script library, and pushes it to the script configuration interface. Users can select or edit the script, generate monitoring tasks, and send them to the server for performance monitoring.
The script acquisition process has been simplified, and service performance can be automatically monitored without logging into each server, thereby improving monitoring efficiency.
Smart Images

Figure CN114676013B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing technology, and in particular to a service performance monitoring method, apparatus, computer equipment, and storage medium. Background Art
[0002] With the advancement of computer technology, performance monitoring targets vary across different business scenarios and system architectures. Furthermore, the monitoring scripts used for these different monitoring targets cover a wide variety of metrics beyond common server performance indicators like CPU, memory, and network. Traditionally, test engineers had to log in to different servers and use different commands or monitoring scripts to obtain data.
[0003] However, with the development of the times, the complexity of business system architecture has increased, and the rise of microservice architecture has caused monitoring engineers to spend a lot of time monitoring server-related indicator data during performance monitoring, and the efficiency of obtaining monitoring data is low. Summary of the Invention
[0004] Based on this, it is necessary to provide a service performance monitoring method, device, computer equipment and storage medium that can improve the efficiency of monitoring data acquisition in response to the above technical problems.
[0005] A service performance monitoring method, the method comprising:
[0006] Respond to service performance monitoring configuration operations, determine the target service to be monitored and the monitoring time for the target service;
[0007] Find the initial script corresponding to the target service from the script library and push the initial script to the script configuration interface;
[0008] In response to the script selection operation, a target script is determined, where the target script is the initial script, an updated script edited and uploaded based on the initial script, or a custom script uploaded from a local computer.
[0009] Generate monitoring tasks based on the monitoring time and target script, and send the monitoring tasks to the server corresponding to the target service for service performance monitoring.
[0010] In one embodiment, in response to a script selection operation, determining a target script includes:
[0011] Respond to the script selection operation and obtain the submission data corresponding to the script selection operation;
[0012] Parse the submitted data to determine the script data type of the submitted data;
[0013] If the script data type is a script file, the updated script edited and uploaded based on the initial script or the customized script uploaded locally is used as the target script;
[0014] If the script data type is a script identifier, the initial script corresponding to the script identifier is determined as the target script.
[0015] In one embodiment, if the script data type is a script file, after using an updated script edited and uploaded based on the initial script or a customized script uploaded locally as the target script, the following steps are further included:
[0016] Extract the classification label and script description information corresponding to the script file;
[0017] Determine the category corresponding to the script file based on the classification label and script description information;
[0018] Add script files to the script library according to their categories.
[0019] In one embodiment, after generating a monitoring task based on the monitoring time and the target script and sending the monitoring task to the server corresponding to the target service for service performance monitoring, the method further includes:
[0020] Receive the execution result fed back by the server after executing the target script;
[0021] The execution results are displayed on the preset monitoring result display interface.
[0022] In one embodiment, after receiving the execution result fed back by the server after executing the target script, the method further includes:
[0023] Store the execution results according to the target service corresponding to the monitoring task.
[0024] In one embodiment, the target service includes at least one of NGINX (engine x, a high-performance web and reverse proxy service), an application layer, a gateway, a cache, a microservice, a message queue, and a database.
[0025] In one embodiment, monitoring time includes monitoring start and end time;
[0026] Sending monitoring tasks to the server corresponding to the target service to monitor service performance includes:
[0027] The monitoring task is sent to the server corresponding to the target service, so that the server executes the target script in the monitoring task according to the monitoring start and end time to monitor the service performance.
[0028] A service performance monitoring device, comprising:
[0029] Configuration operation response module, used to respond to service performance monitoring configuration operations, determine the target service to be monitored and the monitoring time for the target service;
[0030] The script push module is used to search for the initial script corresponding to the target service from the script library and push the initial script to the script configuration interface;
[0031] A script determination module is used to respond to a script selection operation and determine a target script, where the target script is an initial script, an updated script edited and uploaded based on the initial script, or a custom script uploaded locally;
[0032] The performance monitoring module is used to generate monitoring tasks based on the monitoring time and target script, and send the monitoring tasks to the server corresponding to the target service for service performance monitoring.
[0033] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are performed:
[0034] Respond to service performance monitoring configuration operations, determine the target service to be monitored and the monitoring time for the target service;
[0035] Find the initial script corresponding to the target service from the script library and push the initial script to the script configuration interface;
[0036] In response to the script selection operation, a target script is determined, where the target script is the initial script, an updated script edited and uploaded based on the initial script, or a custom script uploaded from a local computer.
[0037] Generate monitoring tasks based on the monitoring time and target script, and send the monitoring tasks to the server corresponding to the target service for service performance monitoring.
[0038] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0039] Respond to service performance monitoring configuration operations, determine the target service to be monitored and the monitoring time for the target service;
[0040] Find the initial script corresponding to the target service from the script library and push the initial script to the script configuration interface;
[0041] In response to the script selection operation, a target script is determined, where the target script is the initial script, an updated script edited and uploaded based on the initial script, or a custom script uploaded from a local computer.
[0042] Generate monitoring tasks based on the monitoring time and target script, and send the monitoring tasks to the server corresponding to the target service for service performance monitoring.
[0043] The above-mentioned service performance monitoring method, device, computer equipment and storage medium determine the target service to be monitored and the monitoring time of the target service by responding to the service performance monitoring configuration operation, search the initial script corresponding to the target service from the script library, and push the initial script to the script configuration interface. Pushing the initial script through the script configuration interface can facilitate users to select scripts or edit the scripts on the original basis, simplifying the process of obtaining the target script, responding to the script selection operation, determining the target script, generating a monitoring task based on the monitoring time and the target script, and sending the monitoring task to the server corresponding to the target service for service performance monitoring. It can realize the selection of different scripts according to different services, and automatically monitor service performance without logging into each server, thereby improving monitoring efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 This is an application environment diagram of a service performance monitoring method in one embodiment;
[0045] Figure 2 1 is a flow chart of a service performance monitoring method according to an embodiment;
[0046] Figure 3 is a flow chart of a service performance monitoring method according to another embodiment;
[0047] Figure 4 1 is a flow chart of a service performance monitoring method according to another embodiment;
[0048] Figure 5 A flowchart of a service performance monitoring method according to another embodiment;
[0049] Figure 6 A schematic diagram of the distribution of various services in a service performance monitoring method in another embodiment;
[0050] Figure 7 is a structural block diagram of a service performance monitoring device in one embodiment;
[0051] Figure 8 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0053] The service performance monitoring method provided in this application can be applied to Figure 1In the application environment shown. The monitoring platform 102 communicates with the server 104 through the network. The monitoring platform 102 responds to the service performance monitoring configuration operation, determines the target service to be monitored and the monitoring time for the target service; searches for the initial script corresponding to the target service from the script library, and pushes the initial script to the script configuration interface; responds to the script selection operation, determines the target script, which is the initial script or an updated script edited and uploaded based on the initial script or a custom script uploaded locally; generates a monitoring task based on the monitoring time and the target script, and sends the monitoring task to the server 104 corresponding to the target service for service performance monitoring, and receives the monitoring results fed back by the server 104. The monitoring platform 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented as an independent server or a server cluster consisting of multiple servers.
[0054] In one embodiment, Figure 2 As shown, a service performance monitoring method is provided, which is applied to Figure 1 The monitoring platform in the example is used to illustrate the following steps:
[0055] Step 202: In response to the service performance monitoring configuration operation, determine the target service to be monitored and the monitoring time for the target service.
[0056] Service performance monitoring configuration refers to the process of configuring monitoring parameters when a user needs to monitor a service on a server. This includes selecting the service to be monitored, selecting the start and end times for monitoring, and possibly uploading a monitoring script. The monitoring platform responds to the user's service performance monitoring configuration operation and determines the target service to be monitored and the monitoring time based on the user's input data.
[0057] In one embodiment, the target service to be monitored and the monitoring time for the target service can be configured through a pre-set monitoring parameter configuration interface. Specifically, based on the monitoring parameter configuration interface, users can first select the server to be monitored and then select a service to be monitored within that server. Services to be monitored may include NGINX, application layer, gateway, cache, microservice, message queue, database, etc. Because different services have different monitoring priorities and monitoring logic, different services require different monitoring scripts.
[0058] In another embodiment, the same service of different servers can also be monitored, and the selection of multiple target services can be achieved by adding a monitoring task in the monitoring parameter configuration interface. For the same service of different servers, the same script can be used to monitor it.
[0059] After selecting the service to be monitored, the user can also set the monitoring time, which can be the monitoring duration or the monitoring start and end time.
[0060] Step 204: Search the script library for an initial script corresponding to the target service, and push the initial script to the script configuration interface.
[0061] The script library is a database that stores scripts. Different types of scripts in the script library are suitable for monitoring different services. For each service, the script library may contain one or more corresponding scripts. These scripts can be of different versions or correspond to different monitoring metrics.
[0062] In one embodiment, each script in the script library carries script description information of the script, which is used to record the functions that can be implemented by the script and detailed monitoring indicators, so that users can accurately select appropriate scripts for monitoring.
[0063] In one embodiment, each script in the script library also carries a classification tag of the script, and the classification tag is used to characterize the monitoring applicable service corresponding to the script. The monitoring platform searches for the classification tag corresponding to the target service according to the target service to be monitored, and then traverses the script library to filter out the initial script corresponding to the target service. It should be noted that the number of initial scripts corresponding to the target service can be one, two or more. After finding the initial script, the monitoring platform pushes the initial script to the script configuration interface. The script configuration interface refers to an interface used to assist users in script selection or script editing.
[0064] Step 206 , in response to the script selection operation, a target script is determined, where the target script is the initial script, an updated script edited and uploaded based on the initial script, or a custom script uploaded from a local computer.
[0065] The script selection operation can be an operation in which the user directly selects one of the initial scripts displayed in the script configuration interface as the target script, or it can be an operation in which the user selects one of the scripts that is highly similar to the desired monitoring content, edits the script to obtain an updated script, and uploads it as the target script, or it can be a custom script that the user has pre-edited and stored locally.
[0066] In one embodiment, after the user selects the initial script displayed in the script configuration interface, he can click the OK button in the interface to send a script confirmation message carrying the script identifier to the background of the monitoring platform, so that the monitoring platform can determine the selected target script through the script identifier. The script can also be called from the script library by clicking the edit button in the interface, and the script is displayed in editable mode. The user can directly edit the script, and upload the updated script after editing and click the confirm button in the interface to indicate that the selection of the script has been completed. After the background of the monitoring platform receives the script confirmation information, it uses the uploaded script as the target script. The script configuration interface can also provide a script selection window, through which the user can access local files and upload pre-written scripts in local files to the monitoring platform to achieve the selection of the target script.
[0067] Step 208: Generate a monitoring task based on the monitoring time and the target script, and send the monitoring task to the server corresponding to the target service to perform service performance monitoring.
[0068] A monitoring task is task data sent to a server for service performance monitoring. A monitoring task includes a monitoring script and a monitoring time, so that the server runs the monitoring script within the specified monitoring time to achieve accurate monitoring of service performance.
[0069] By sending monitoring tasks to the server corresponding to the target service, the monitoring platform can monitor service performance based on the interaction between the monitoring platform and the server. There is no need to log in to the server to monitor service performance, which simplifies the monitoring process.
[0070] The above-mentioned service performance monitoring method determines the target service to be monitored and the monitoring time of the target service by responding to the service performance monitoring configuration operation, searches for the initial script corresponding to the target service from the script library, and pushes the initial script to the script configuration interface. Pushing the initial script through the script configuration interface can facilitate users to select scripts or edit the scripts on the original basis, simplifying the process of obtaining the target script, responding to the script selection operation, determining the target script, generating a monitoring task based on the monitoring time and the target script, and sending the monitoring task to the server corresponding to the target service for service performance monitoring. It can realize the selection of different scripts according to different services, and automatically monitor the service performance without logging into each server, thereby improving monitoring efficiency.
[0071] In one embodiment, Figure 3 As shown, in response to the script selection operation, determining the target script includes steps 302 to 308.
[0072] Step 302, responding to the script selection operation, obtaining submission data corresponding to the script selection operation;
[0073] Step 304: Parse the submitted data to determine the script data type of the submitted data;
[0074] Step 306: If the script data type is a script file, an updated script edited and uploaded based on the initial script or a customized script uploaded locally is used as the target script;
[0075] Step 308: If the script data type is a script identifier, the initial script corresponding to the script identifier is determined as the target script.
[0076] The monitoring platform responds to the user's script selection operation and obtains the data submitted at the same time. By parsing the data type of the submitted data, it determines whether it contains a script file or an initial script identifier. If it is a script file, the uploaded script is used as the target script. If it is a script identifier, the initial script corresponding to the script identifier is used as the target script. The uploaded script may be an updated script that the user has edited and uploaded based on the initial script, or it may be a customized script uploaded locally.
[0077] In one embodiment, it is possible to first detect whether a script file has been uploaded. If so, the uploaded script file is used as the target script. If not, the script identifier carried by the submitted data is extracted, and the target script is determined based on the script identifier. In another embodiment, it is also possible to first detect whether the submitted data carries a script identifier. If so, the initial script corresponding to the script identifier can be directly determined as the target script. If not, it is possible to detect whether a script file has been uploaded. If there is neither a script identifier nor a script file, the user is redirected to the script configuration interface to prompt the user to reselect the script.
[0078] By providing a variety of script configuration methods, it can meet the needs of rapid script configuration in different scenarios. In addition, by providing a method for editing the initial script to obtain an updated script, it is convenient for users to directly and quickly obtain the required monitoring script. On the one hand, it helps to achieve effective and accurate monitoring of the target service. On the other hand, it simplifies the script writing content and shortens the time required for script writing.
[0079] In one embodiment, Figure 4 As shown, if the script data type is a script file, after the updated script edited and uploaded based on the initial script or the customized script uploaded locally is used as the target script, steps 402 to 406 are also included.
[0080] Step 402: extract the classification label and script description information corresponding to the script file.
[0081] Step 404: Determine the category corresponding to the script file based on the classification label and the script description information.
[0082] Step 406: Add the script file to the script library according to the category.
[0083] A classification tag is a label used to identify the monitoring service to which a script corresponds. The script description information describes the script's functional capabilities and detailed monitoring metrics. Based on the classification tag and script description information, the script file's corresponding category, and therefore the service, is determined. Scripts in the script library are stored according to their corresponding services. For example, scripts belonging to the same service category are placed in pre-allocated storage space. By storing scripts by category, scripts can be quickly found, improving the monitoring platform's responsiveness.
[0084] By storing the script files uploaded by users in the script library, the script library files can be expanded, which makes it easier to directly find applicable scripts in subsequent service performance monitoring, shortening the time required for script writing.
[0085] In one embodiment, Figure 5 As shown, after generating a monitoring task according to the monitoring time and the target script and sending the monitoring task to the server corresponding to the target service for service performance monitoring, the process further includes steps 502 to 504.
[0086] Step 502: Receive the execution result fed back by the server after executing the target script.
[0087] Step 504: Display the execution result on a preset monitoring result display interface.
[0088] After receiving a monitoring task, the server executes the monitoring script according to the monitoring time. This script executes to obtain monitoring results for the target service on the server. After obtaining the monitoring results after executing the target script, the server feeds the results back to the monitoring platform based on the identifier of the monitoring task's sending end, i.e., the monitoring platform. This allows the monitoring platform to receive the execution results obtained and fed back by the server after executing the target script. The content of the execution results corresponds to the various indicators defined in the script. The monitoring platform displays the received execution results, which can be either the raw data fed back by the server or data that has been sorted and categorized by the monitoring platform.
[0089] The execution results can be displayed on the preset monitoring result display interface. Specifically, the execution results can be displayed when the user triggers the operation through the interface to enter the preset monitoring result display interface, or the execution results can be displayed by actively pushing the monitoring result display interface to the current interface when the execution results are obtained.
[0090] In one embodiment, after receiving the execution result fed back by the server after executing the target script, the method further includes: storing the execution result according to the target service corresponding to the monitoring task.
[0091] By storing the execution results according to the type of target service, it is possible to determine the performance changes of each service based on the historical monitoring results of each service, thereby enabling monitoring of the historical performance changes of the service.
[0092] In one embodiment, the target service includes at least one of NGINX, application layer, gateway, cache, microservice, message queue, and database.
[0093] NGINX, application layer, gateway, cache, microservices, message queue, and database are used to implement different functions and can be deployed on different servers. Figure 6 As shown, NGINX monitoring includes monitoring of load balancing or static resources, application layer monitoring includes monitoring of Tomcat or Jetty, cache monitoring includes monitoring of Redis (Remote Dictionary Server), database monitoring includes monitoring of MySQL (relational database management system), Oracle, and SQL Server (Structured Query Language server), and message queue monitoring includes monitoring of RocketMQ, ActiveMQ, RabbitMQ, and Kafka. In an embodiment, the monitoring platform provides scripts for commonly used services, such as MySQL, Oracle, Kafka, microservices, application services, and Redis, making it easy to quickly obtain applicable scripts.
[0094] Different services require different performance metrics due to their distinct performance monitoring focus. For example, MySQL monitoring requires not only CPU and memory, but also SQL execution efficiency (show FULLPROCESSLIST;), cache hit rate (key_reads / key_read_requests), and other metrics during the monitoring period. Application services (implemented in Java) require monitoring not only CPU and memory, but also JVM (Java Virtual Machine) usage, such as GC (Global Catalog) usage and stack traces of high-cost processes.
[0095] In one embodiment, the monitoring time includes the monitoring start and end time; sending the monitoring task to the server corresponding to the target service for service performance monitoring includes: sending the monitoring task to the server corresponding to the target service, so that the server executes the target script in the monitoring task according to the monitoring start and end time to perform service performance monitoring.
[0096] The monitoring platform provides a monitoring time selection function, which allows you to select the monitoring time period to monitor during the monitoring period and not monitor during the non-monitoring period to avoid consuming server resources.
[0097] It should be understood that, although the steps in the above-mentioned flowcharts are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned flowcharts may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0098] In one embodiment, Figure 7 As shown, a service performance monitoring device is provided, including: a configuration operation response module 702, a script push module 704, a script determination module 706 and a performance monitoring module 708, wherein:
[0099] The configuration operation response module 702 is used to respond to the service performance monitoring configuration operation, determine the target service to be monitored and the monitoring time of the target service.
[0100] The script push module 704 is used to search the script library for an initial script corresponding to the target service and push the initial script to the script configuration interface.
[0101] The script determination module 706 is configured to respond to the script selection operation and determine a target script, where the target script is the initial script, an updated script edited and uploaded based on the initial script, or a custom script uploaded locally.
[0102] The performance monitoring module 708 is used to generate a monitoring task according to the monitoring time and the target script, and send the monitoring task to the server corresponding to the target service to perform service performance monitoring.
[0103] In one embodiment, the script determination module is also used to respond to the script selection operation and obtain the submitted data corresponding to the script selection operation; parse the submitted data to determine the script data type of the submitted data; if the script data type is a script file, the updated script edited and uploaded based on the initial script or the custom script uploaded locally is used as the target script; if the script data type is a script identifier, the initial script corresponding to the script identifier is determined as the target script.
[0104] In one embodiment, the script determination module is further used to extract the classification label and script description information corresponding to the script file; determine the category corresponding to the script file based on the classification label and script description information; and add the script file to the script library based on the category.
[0105] In one embodiment, the service performance monitoring device further includes a result display module, which is used to receive the execution result fed back by the server after executing the target script; and display the execution result on a preset monitoring result display interface.
[0106] In one embodiment, the service performance monitoring device further includes a result storage module, which is used to store the execution results according to the target service corresponding to the monitoring task.
[0107] In one embodiment, the target service includes at least one of NGINX, application layer, gateway, cache, microservice, message queue, and database.
[0108] In one embodiment, the monitoring time includes the monitoring start and end time; the performance monitoring module is also used to send the monitoring task to the server corresponding to the target service, so that the server executes the target script in the monitoring task according to the monitoring start and end time to perform service performance monitoring.
[0109] The above-mentioned service performance monitoring device determines the target service to be monitored and the monitoring time of the target service by responding to the service performance monitoring configuration operation, searches for the initial script corresponding to the target service from the script library, and pushes the initial script to the script configuration interface. Pushing the initial script through the script configuration interface can facilitate users to select scripts or edit the scripts on the original basis, simplifying the process of obtaining the target script, responding to the script selection operation, determining the target script, generating a monitoring task based on the monitoring time and the target script, and sending the monitoring task to the server corresponding to the target service for service performance monitoring. It can realize the selection of different scripts according to different services, and automatically monitors service performance without logging into each server, thereby improving monitoring efficiency.
[0110] For the specific definition of the service performance monitoring device, please refer to the definition of the service performance monitoring method above and will not be repeated here. Each module in the above-mentioned service performance monitoring device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each of the above modules.
[0111] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a service performance monitoring method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse.
[0112] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0113] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0114] In response to the service performance monitoring configuration operation, determine the target service to be monitored and the monitoring time for the target service; find the initial script corresponding to the target service from the script library, and push the initial script to the script configuration interface; in response to the script selection operation, determine the target script, which is the initial script or the updated script edited and uploaded based on the initial script or the custom script uploaded locally; generate a monitoring task based on the monitoring time and the target script, and send the monitoring task to the server corresponding to the target service for service performance monitoring.
[0115] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0116] In response to the script selection operation, the submitted data corresponding to the script selection operation is obtained; the submitted data is parsed to determine the script data type of the submitted data; if the script data type is a script file, the updated script edited and uploaded based on the initial script or the custom script uploaded from the local is used as the target script; if the script data type is a script identifier, the initial script corresponding to the script identifier is determined as the target script.
[0117] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0118] Extract the classification label and script description information corresponding to the script file; determine the category corresponding to the script file based on the classification label and script description information; and add the script file to the script library based on the category.
[0119] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0120] Receive the execution result fed back by the server after executing the target script; display the execution result on the preset monitoring result display interface.
[0121] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0122] Store the execution results according to the target service corresponding to the monitoring task.
[0123] In one embodiment, the target service includes at least one of NGINX, application layer, gateway, cache, microservice, message queue, and database.
[0124] In one embodiment, the monitoring time includes the monitoring start and end time; when the processor executes the computer program, it also implements the following steps to send the monitoring task to the server corresponding to the target service, so that the server executes the target script in the monitoring task according to the monitoring start and end time to monitor the service performance.
[0125] The above-mentioned computer device for implementing the service performance monitoring method determines the target service to be monitored and the monitoring time of the target service by responding to the service performance monitoring configuration operation, searches for the initial script corresponding to the target service from the script library, and pushes the initial script to the script configuration interface. Pushing the initial script through the script configuration interface can facilitate users to select scripts or edit the scripts on the original basis, simplifying the process of obtaining the target script, responding to the script selection operation, determining the target script, generating a monitoring task based on the monitoring time and the target script, and sending the monitoring task to the server corresponding to the target service for service performance monitoring, which can realize the selection of different scripts according to different services, and automatically monitor service performance without logging into each server, thereby improving monitoring efficiency.
[0126] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0127] In response to the service performance monitoring configuration operation, determine the target service to be monitored and the monitoring time for the target service; find the initial script corresponding to the target service from the script library, and push the initial script to the script configuration interface; in response to the script selection operation, determine the target script, which is the initial script or the updated script edited and uploaded based on the initial script or the custom script uploaded locally; generate a monitoring task based on the monitoring time and the target script, and send the monitoring task to the server corresponding to the target service for service performance monitoring.
[0128] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0129] In response to the script selection operation, the submitted data corresponding to the script selection operation is obtained; the submitted data is parsed to determine the script data type of the submitted data; if the script data type is a script file, the updated script edited and uploaded based on the initial script or the custom script uploaded from the local is used as the target script; if the script data type is a script identifier, the initial script corresponding to the script identifier is determined as the target script.
[0130] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0131] Extract the classification label and script description information corresponding to the script file; determine the category corresponding to the script file based on the classification label and script description information; and add the script file to the script library based on the category.
[0132] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0133] Receive the execution result fed back by the server after executing the target script; display the execution result on the preset monitoring result display interface.
[0134] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0135] Store the execution results according to the target service corresponding to the monitoring task.
[0136] In one embodiment, the target service includes at least one of NGINX, application layer, gateway, cache, microservice, message queue, and database.
[0137] In one embodiment, the monitoring time includes the monitoring start and end time; when the computer program is executed by the processor, the following steps are also implemented to send the monitoring task to the server corresponding to the target service, so that the server executes the target script in the monitoring task according to the monitoring start and end time to monitor the service performance.
[0138] The computer-readable storage medium for implementing the service performance monitoring method above determines the target service to be monitored and the monitoring time for the target service by responding to the service performance monitoring configuration operation, searches for the initial script corresponding to the target service from the script library, and pushes the initial script to the script configuration interface. Pushing the initial script through the script configuration interface can facilitate users to select scripts or edit the scripts on the original basis, simplifying the process of obtaining the target script, responding to the script selection operation, determining the target script, generating a monitoring task based on the monitoring time and the target script, and sending the monitoring task to the server corresponding to the target service for service performance monitoring, which can realize the selection of different scripts according to different services, and automatically monitor the service performance without logging into each server, thereby improving monitoring efficiency.
[0139] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, which can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0140] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0141] The above embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A service performance monitoring method, characterized in that: The method comprises: In response to a service performance monitoring configuration operation, determine a target service to be monitored and a monitoring time for the target service; Searching for an initial script corresponding to the target service from a script library, and pushing the initial script to a script configuration interface; In response to a script selection operation, submission data corresponding to the script selection operation is obtained; the submission data is parsed to determine a script data type of the submission data; if the script data type is a script file, an updated script edited and uploaded based on the initial script or a custom script uploaded from a local computer is used as a target script; if the script data type is a script identifier, the initial script corresponding to the script identifier is determined as the target script, and the target script is the initial script or an updated script edited and uploaded based on the initial script or a custom script uploaded from a local computer; A monitoring task is generated according to the monitoring time and the target script, and the monitoring task is sent to the server corresponding to the target service for service performance monitoring.
2. The method according to claim 1, characterized in that If the script data type is a script file, after using the updated script edited and uploaded based on the initial script or the customized script uploaded locally as the target script, the method further includes: Extracting the classification label and script description information corresponding to the script file; Determining the category corresponding to the script file according to the classification label and the script description information; According to the category, the script file is added to the script library.
3. The method according to claim 1, wherein After generating a monitoring task according to the monitoring time and the target script, and sending the monitoring task to a server corresponding to the target service for service performance monitoring, the method further includes: Receiving an execution result fed back by the server after executing the target script; The execution results are displayed on a preset monitoring result display interface.
4. The method according to claim 3, characterized in that After receiving the execution result fed back by the server after executing the target script, the method further includes: The execution result is stored according to the target service corresponding to the monitoring task.
5. The method according to claim 1, wherein The target service includes at least one of NGINX, application layer, gateway, cache, microservice, message queue, and database.
6. The method according to claim 1, characterized in that The monitoring time includes the monitoring start and end time; The sending of the monitoring task to the server corresponding to the target service for service performance monitoring includes: The monitoring task is sent to the server corresponding to the target service, so that the server executes the target script in the monitoring task according to the monitoring start and end time to monitor the service performance.
7. A service performance monitoring device, characterized in that: The device comprises: A configuration operation response module is used to respond to a service performance monitoring configuration operation, determine a target service to be monitored and a monitoring time for the target service; A script push module is used to search for an initial script corresponding to the target service from a script library and push the initial script to a script configuration interface; A script determination module is configured to respond to a script selection operation and obtain submission data corresponding to the script selection operation; parse the submission data to determine a script data type of the submission data; if the script data type is a script file, use an updated script edited and uploaded based on the initial script or a custom script uploaded from a local computer as a target script; if the script data type is a script identifier, use the initial script corresponding to the script identifier as the target script, and the target script is the initial script or an updated script edited and uploaded based on the initial script or a custom script uploaded from a local computer; The performance monitoring module is used to generate a monitoring task according to the monitoring time and the target script, and send the monitoring task to the server corresponding to the target service to perform service performance monitoring.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Monitoring task execution method, device and system, storage medium and electronic device
CN111045893A