System page monitoring method and device, computer equipment and storage medium

Through the method of automatically logging in and monitoring system pages, the problem of insufficient monitoring efficiency and comprehensiveness of traditional system pages is solved, performance monitoring of APIs and static resources is realized, and monitoring efficiency and accuracy are improved.

CN119201648AInactive Publication Date: 2024-12-27SHANGHAI SHUHE INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411342013.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional system page monitoring methods are inefficient and insufficient monitoring comprehensiveness, and performance monitoring indicators need to be viewed in sequence through APIs, resulting in low efficiency and comprehensiveness.

Method used

Provide a system page monitoring method, automatically log in to the system to be monitored through the probe system, access each menu page, monitor network requests and generate performance monitoring indicators, including response status, response time and file size, using Prometheus and Grafana platforms for Timed scraping and visual display.

Benefits of technology

It improves monitoring efficiency and comprehensiveness, can promptly detect system page problems, enhances monitoring accuracy and convenience, and realizes performance monitoring of APIs and static resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201648A_ABST
    Figure CN119201648A_ABST
Patent Text Reader

Abstract

The invention relates to a system page monitoring method and device, computer equipment and a storage medium. The method is applied to a probe system, and comprises the following steps: automatically logging in a to-be-monitored system in response to completion of initialization operation on a drive of a browser and a development tool of the browser; responding to the login state of the to-be-monitored system as successful login, automatically accessing each menu page of the to-be-monitored system in sequence, monitoring each network request under the corresponding menu page when accessing the corresponding menu page, and generating a performance monitoring index of the corresponding menu page according to each monitored network request; and performing statistics on each performance monitoring index to obtain a performance monitoring index result of the to-be-monitored system. By adopting the method, the monitoring efficiency and the monitoring comprehensiveness can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of Internet technology, various software application systems have played an increasingly important role. Users can access the UI (User Interface) of the software application system to conduct daily life learning such as live classes, shopping, and payment. Therefore, monitoring the software application system page is particularly important.

[0003] However, the traditional system page monitoring method requires the use of a probe system to view and monitor performance monitoring indicators in sequence according to the Application Programming Interface (API), which has problems such as low efficiency or low monitoring comprehensiveness. Summary of the invention

[0004] Based on this, it is necessary to provide a system page monitoring method, device, computer equipment and storage medium that can improve monitoring efficiency and comprehensiveness in response to the above technical problems.

[0005] In a first aspect, a system page monitoring method is provided, the method being applied to a probe system, the method comprising:

[0006] In response to completing the initialization operation of the browser driver and the browser development tool, automatically logging into the system to be monitored;

[0007] In response to the login status of the system to be monitored being a successful login, each menu page of the system to be monitored is automatically accessed in sequence, and when accessing the corresponding menu page, each network request under the corresponding menu page is monitored and a performance monitoring indicator of the corresponding menu page is generated according to each monitored network request;

[0008] Statistics are collected on each performance monitoring indicator to obtain the performance monitoring indicator results of the system to be monitored.

[0009] In one embodiment, the method further includes: in response to expiration of the system page monitoring time, performing initialization operations on the browser driver and the browser development tool.

[0010] In one of the embodiments, the method includes: in response to the login status being a login failure, feeding back the login status, clearing the system page monitoring time and re-accumulating the system page monitoring time; when statistics are collected on each performance monitoring indicator to obtain the performance monitoring indicator results of the system to be monitored, clearing the system page monitoring time and re-accumulating the system page monitoring time.

[0011] In one embodiment, automatic logging into the system to be monitored includes: obtaining the page address and login mode of the system to be monitored; the login mode includes a login mode without identity authentication or a login mode with identity authentication; in response to the login mode being a login mode with identity authentication, obtaining the identity authentication information of the system to be monitored, inputting the page address into the browser, and performing identity authentication of the system to be monitored based on the identity authentication information to obtain the identity authentication result; wherein the identity authentication result includes authentication passed or authentication failed; in response to the verification result being authentication passed, logging into the system to be monitored based on the identity authentication information, and updating the login status; in response to the verification result being authentication failed, feeding back the verification result, and updating the login status; in response to the login mode being a login mode without identity authentication, directly logging into the system to be monitored after inputting the page address into the browser, and updating the login status.

[0012] In one of the embodiments, the performance monitoring indicators include response status, response time and file size; the performance monitoring indicator results include the type quantity value of the response status, the maximum response time, the average response time, the maximum file size and the average file size.

[0013] In one of the embodiments, each menu page of the system to be monitored is automatically accessed in sequence, and when the corresponding menu page is accessed, each network request under the corresponding menu page is monitored and a performance monitoring indicator of the corresponding menu page is generated according to each monitored network request, including: serially accessing the current menu page of the system to be monitored; monitoring each target network request; wherein the target network request is a network request under the current menu page; in response to the existence of a target network request whose response time is greater than a response time threshold or there is no new target network request under the current menu page, generating a performance monitoring indicator of the current menu page according to each monitored target network request, updating the current menu page, and returning to the step of serially accessing the current menu page of the system to be monitored for iterative processing until all menu pages are accessed.

[0014] In one embodiment, each menu page of the system to be monitored is automatically accessed in sequence, and each network request under the corresponding menu page is monitored when the corresponding menu page is accessed, and the performance monitoring index of the corresponding menu page is generated according to each monitored network request, including:

[0015] All menu pages of the system to be monitored are traversed and accessed in parallel and in slices. The corresponding network requests under each menu page are monitored when each menu page is accessed. The performance monitoring indicators of the corresponding menu pages are generated according to the corresponding network requests under the monitored menu pages.

[0016] In one of the embodiments, the method further includes: based on the Prometheus monitoring platform, periodically scraping each performance monitoring indicator and storing each performance monitoring indicator.

[0017] In one of the embodiments, the method further includes: based on the Grafana visualization platform, obtaining each performance monitoring indicator stored in the Prometheus monitoring platform, and displaying each performance monitoring indicator.

[0018] In a second aspect, a system page monitoring device is provided. The device is applied to a probe system and includes a system login module, an indicator generation module and an indicator statistics module.

[0019] Among them, the system login module is used to automatically log in to the system to be monitored in response to the completion of the initialization operation of the browser driver and the browser development tool; the indicator generation module is used to automatically access each menu page of the system to be monitored in turn in response to the login status of the system to be monitored being a successful login, and monitor the corresponding network requests under the corresponding menu page when accessing the corresponding menu page and generate the performance monitoring indicator of the corresponding menu page according to the monitored network requests; the indicator statistics module is used to count the performance monitoring indicators to obtain the performance monitoring indicator results of the system to be monitored.

[0020] In a third aspect, a computer device is provided. The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps of any method in the above method embodiments are implemented.

[0021] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any method in the above method embodiments are implemented.

[0022] The above-mentioned system page monitoring method, device, computer equipment and storage medium are applied to the probe system, and in response to completing the initialization operation of the browser driver and the browser development tool, automatically log in to the system to be monitored; then, in response to the login status of the system to be monitored being successful, each menu page of the system to be monitored is automatically accessed in turn, and when accessing the corresponding menu page, each network request under the corresponding menu page is monitored and the performance monitoring indicator of the corresponding menu page is generated according to each monitored network request; then, each performance monitoring indicator is counted to obtain the performance monitoring indicator result of the system to be monitored, thereby realizing that not only the performance monitoring indicators of the Application Programming Interface (API) can be monitored, but also the performance monitoring indicators of static resources can be monitored, thereby improving the monitoring efficiency and comprehensiveness, and facilitating timely discovery of problems with system pages, thereby improving the accuracy of system page monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 An application environment diagram of a system page monitoring method in an embodiment;

[0024] Figure 2 A schematic diagram of a first process flow of a system page monitoring method in one embodiment;

[0025] Figure 3 A second flow chart of a system page monitoring method in one embodiment;

[0026] Figure 4 A schematic diagram of a process of automatically logging into a system to be monitored in one embodiment;

[0027] Figure 5 A flow chart of automatically accessing each menu page of the system to be monitored in sequence in one embodiment, monitoring each network request under the corresponding menu page when accessing the corresponding menu page, and generating the performance monitoring index of the corresponding menu page according to each monitored network request;

[0028] Figure 6 A third flow chart of a system page monitoring method in one embodiment;

[0029] Figure 7 A structural block diagram of a system page monitoring device in one embodiment;

[0030] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0032] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.

[0033] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0034] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.

[0035] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.

[0036] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" etc. specify the presence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof.

[0037] The system page monitoring method provided in this application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through a network. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0038] In a specific example, the server 104 may be, but is not limited to, configured with a probe system. The above is only a specific example and can be flexibly configured according to user needs in actual applications and is not limited here.

[0039] In one embodiment, Figure 2 As shown, a system page monitoring method is provided, which is applied to Figure 1 The probe system in the server 104 is used as an example to illustrate, including the following steps 201 to 203.

[0040] Step 201, in response to completing the initialization operation of the browser driver and the browser development tool, automatically log in to the system to be monitored.

[0041] The system to be monitored is a software application system waiting for page monitoring. Specifically, the server 104 can automatically log in to the system to be monitored when recognizing that the initialization operation of the browser driver and the browser development tool is completed.

[0042] In one embodiment, if Figure 3 As shown, the method further includes step 200.

[0043] Step 200 , in response to expiration of the system page monitoring time, initialization operations are performed on the browser driver and the browser development tool.

[0044] Specifically, the system page monitoring personnel can set the system page monitoring time in advance on the server 104, so as to start the periodic or non-periodic system page monitoring operation when the system page monitoring time expires. The server 104 can perform initialization operations on the browser driver and the browser development tool when recognizing that the system page monitoring time has expired, thereby improving the convenience of the system page timing monitoring.

[0045] In this embodiment, in response to the expiration of the system page monitoring time, an initialization operation is performed on the browser driver and the browser development tool, thereby improving the convenience of the system page timing monitoring.

[0046] In one embodiment, if Figure 4 As shown, automatically logging into the system to be monitored includes steps 401 to 405.

[0047] Step 401, obtaining the page address and login mode of the system to be monitored.

[0048] The page address (URL) of the system to be monitored includes domain information, parameter information and path information. The login mode includes a login mode without identity authentication or a login mode with identity authentication. The server 104 can obtain the page address and login mode of the system to be monitored.

[0049] Step 402, in response to the login mode being an identity authentication login mode, obtaining identity authentication information of the system to be monitored, inputting the page address into the browser, and performing identity authentication of the system to be monitored according to the identity authentication information to obtain an identity authentication result.

[0050] The identity authentication result includes authentication passed or authentication failed. The identity authentication information may be, but is not limited to, an identity authentication token. Specifically, when the server 104 identifies that the login mode is an identity authentication required login mode, it obtains the identity authentication information of the system to be monitored, inputs the page address into the browser, and performs identity authentication of the system to be monitored based on the identity authentication information to obtain the identity authentication result.

[0051] Step 403, in response to the verification result being verification passed, log in to the system to be monitored according to the identity authentication information, and update the login status.

[0052] Specifically, when the server 104 identifies that the verification result is passed, it logs into the system to be monitored according to the identity verification information and updates the login status.

[0053] Step 404, in response to the verification result being a verification failure, the verification result is fed back and the login status is updated.

[0054] Specifically, when the server 104 identifies that the verification result is a verification failure, it feeds back the verification result and updates the login status.

[0055] Step 405, in response to the login mode being a login mode without identity authentication, the page address is input into the browser to directly log in to the system to be monitored, and the login status is updated.

[0056] Specifically, when the server 104 identifies that the login mode is a login mode without identity authentication, it directly logs into the system to be monitored after inputting the page address into the browser, and updates the login status, thereby improving the convenience and security of system page monitoring.

[0057] In this embodiment, the page address and login mode of the system to be monitored are obtained; then, in response to the login mode being a login mode requiring identity authentication, the identity authentication information of the system to be monitored is obtained, the page address is input into the browser, and the identity authentication of the system to be monitored is performed according to the identity authentication information to obtain the identity authentication result; then, in response to the verification result being a successful verification, the system to be monitored is logged in according to the identity authentication information, and the login status is updated; and, in response to the verification result being a failed verification, the verification result is fed back, and the login status is updated; at the same time, in response to the login mode being a login mode not requiring identity authentication, the page address is input into the browser to directly log in to the system to be monitored, and the login status is updated, thereby improving the convenience and security of system page monitoring.

[0058] Step 202, in response to the login status of the system to be monitored being successful, automatically access each menu page of the system to be monitored in sequence, and monitor each network request under the corresponding menu page when accessing the corresponding menu page and generate performance monitoring indicators of the corresponding menu page according to each monitored network request.

[0059] Specifically, when the server 104 recognizes that the login status of the system to be monitored is successful, it automatically accesses each menu page of the system to be monitored in turn, and monitors each network request under the corresponding menu page when accessing the corresponding menu page and generates performance monitoring indicators of the corresponding menu page according to each monitored network request, thereby realizing that not only the performance monitoring indicators of the Application Programming Interface (API) can be monitored, but also the performance monitoring indicators of static resources can be monitored, thereby improving the monitoring efficiency and comprehensiveness.

[0060] In one embodiment, the method comprises:

[0061] In response to the login status being login failure, feeding back the login status, clearing the system page monitoring time and re-accumulating the system page monitoring time;

[0062] When statistics are collected on each performance monitoring indicator and the performance monitoring indicator result of the system to be monitored is obtained, the system page monitoring time is cleared and the system page monitoring time is accumulated again.

[0063] Specifically, when server 104 identifies that the login status is a login failure, it can feedback the login status, clear the system page monitoring time and re-accumulate the system page monitoring time; at the same time, when statistics are collected on each performance monitoring indicator to obtain the performance monitoring indicator results of the system to be monitored, the system page monitoring time is cleared and the system page monitoring time is re-accumulated, so as to restart the timing of the system page monitoring time, restart a new round of system page monitoring, and timely understand the login status during the system page monitoring process.

[0064] In this embodiment, in response to the login status being login failure, the login status is fed back, the system page monitoring time is cleared and the system page monitoring time is re-accumulated; at the same time, when statistics are taken on each performance monitoring indicator to obtain the performance monitoring indicator results of the system to be monitored, the system page monitoring time is cleared and the system page monitoring time is re-accumulated, so as to restart the timing of the system page monitoring time, restart a new round of system page monitoring, and timely understand the login status during the system page monitoring process.

[0065] In one of the embodiments, the performance monitoring indicators include response status, response time and file size; the performance monitoring indicator results include the type quantity value of the response status, the maximum response time, the average response time, the maximum file size and the average file size.

[0066] In one embodiment, if Figure 5 As shown, each menu page of the system to be monitored is automatically accessed in sequence, and each network request under the corresponding menu page is monitored when the corresponding menu page is accessed, and the performance monitoring index of the corresponding menu page is generated according to each monitored network request, including steps 501 to 503.

[0067] Step 501: serially access the current menu page of the system to be monitored.

[0068] Step 502: monitor each target network request.

[0069] Step 503, in response to the existence of a target network request whose response time is greater than the response time threshold or there is no new target network request under the current menu page, generate performance monitoring indicators of the current menu page according to the monitored target network requests, update the current menu page, and return to the step of serially accessing the current menu page of the system to be monitored for iterative processing until all menu pages are accessed.

[0070] Among them, the current menu page is the menu page of the system to be monitored that needs to be accessed at the current moment. The target network request is the network request under the current menu page. Specifically, the server 104 serially accesses the current menu page of the system to be monitored; then, each target network request is measured; then, in response to the existence of a target network request whose response time is greater than the response time threshold or there is no new target network request under the current menu page, the performance monitoring indicator of the current menu page is generated according to each monitored target network request, the current menu page is updated, and the step of serially accessing the current menu page of the system to be monitored is returned to iterative processing until all menu pages are accessed, thereby improving the convenience and efficiency of automatically accessing each menu page of the system to be monitored in sequence and generating performance monitoring indicators for the current menu page.

[0071] In this embodiment, the current menu page of the system to be monitored is accessed serially; then, each target network request is measured; then, in response to the existence of a target network request whose response time is greater than a response time threshold or there is no new target network request under the current menu page, a performance monitoring indicator of the current menu page is generated according to each monitored target network request, the current menu page is updated, and the step of serially accessing the current menu page of the system to be monitored is returned to perform iterative processing until all menu pages are accessed, thereby improving the convenience and efficiency of automatically accessing each menu page of the system to be monitored in sequence and generating the performance monitoring indicator of the current menu page.

[0072] In one embodiment, each menu page of the system to be monitored is automatically accessed in sequence, and each network request under the corresponding menu page is monitored when the corresponding menu page is accessed, and the performance monitoring index of the corresponding menu page is generated according to each monitored network request, including:

[0073] All menu pages of the system to be monitored are traversed and accessed in parallel and in slices. The corresponding network requests under each menu page are monitored when each menu page is accessed. The performance monitoring indicators of the corresponding menu pages are generated according to the corresponding network requests under the monitored menu pages.

[0074] Specifically, the server 104 traverses and accesses all menu pages of the system to be monitored in parallel, thereby realizing simultaneous and parallel access to menu pages of multiple systems to be monitored; at the same time, when accessing each menu page, it monitors the corresponding network requests under each menu page, and generates performance monitoring indicators of the corresponding menu pages according to the corresponding network requests under the monitored menu pages, thereby improving the convenience and efficiency of automatically accessing each menu page of the system to be monitored in turn and generating performance monitoring indicators of the current menu page.

[0075] In this embodiment, parallel sharding traversal accesses all menu pages of the system to be monitored, thereby realizing simultaneous and parallel access to menu pages of multiple systems to be monitored; at the same time, the corresponding network requests under each menu page are monitored when accessing each menu page, and the performance monitoring indicators of the corresponding menu pages are generated according to the corresponding network requests under the monitored menu pages, thereby improving the convenience and efficiency of automatically accessing each menu page of the system to be monitored in turn and generating the performance monitoring indicators of the current menu page.

[0076] Step 203: collect statistics on each performance monitoring indicator to obtain the performance monitoring indicator results of the system to be monitored.

[0077] Specifically, each network request monitored by the server 104 generates a performance monitoring indicator for the corresponding menu page; then, the performance monitoring indicator of each menu page is collected and counted to obtain the performance monitoring indicator results of the system to be monitored, thereby achieving the ability to monitor not only the performance monitoring indicators of the Application Programming Interface (API) but also the performance monitoring indicators of static resources, thereby improving the monitoring efficiency and comprehensiveness, making it easier to promptly discover problems with the system page and improving the accuracy of system page monitoring.

[0078] Based on this, the above-mentioned system page monitoring method is applied to the probe system, and in response to completing the initialization operation of the browser driver and the browser development tool, it automatically logs in to the system to be monitored; then, in response to the login status of the system to be monitored being a successful login, each menu page of the system to be monitored is automatically accessed in turn, and when accessing the corresponding menu page, each network request under the corresponding menu page is monitored and the performance monitoring indicator of the corresponding menu page is generated according to each monitored network request; then, each performance monitoring indicator is counted to obtain the performance monitoring indicator result of the system to be monitored, thereby realizing that not only the performance monitoring indicators of the Application Programming Interface (API) can be monitored, but also the performance monitoring indicators of static resources can be monitored, thereby improving the monitoring efficiency and comprehensiveness, and it is also convenient to timely discover problems with system pages, thereby improving the accuracy of system page monitoring.

[0079] In one embodiment, the method further comprises:

[0080] Determine whether there are any abnormal indicators based on the performance monitoring indicator results of the system to be monitored;

[0081] If there are any abnormal indicators, the performance monitoring indicator warning information is output according to the performance monitoring indicators of the system to be monitored.

[0082] In this embodiment, it is determined whether there is an indicator abnormality based on the performance monitoring indicator results of the system to be monitored; then, if there is an indicator abnormality, performance monitoring indicator warning information is output based on the performance monitoring indicator of the system to be monitored, which improves the convenience of system page monitoring, makes it easier for staff to understand the performance monitoring indicator warning information in a timely manner, and debug the system page based on the performance monitoring indicator warning information.

[0083] In one embodiment, if Figure 6 As shown, the method further includes step 601.

[0084] Step 601, based on the Prometheus monitoring platform, periodically scrape various performance monitoring indicators and store them.

[0085] Specifically, based on the Prometheus monitoring platform, the server 104 periodically scrapes various performance monitoring indicators and stores them, so as to facilitate historical analysis and trend prediction of various performance monitoring indicators.

[0086] In this embodiment, based on the Prometheus monitoring platform, each performance monitoring indicator is regularly scraped and stored, so as to facilitate historical analysis and trend prediction of each performance monitoring indicator.

[0087] In one embodiment, if Figure 6 As shown, the method further includes step 602.

[0088] Step 602: Based on the Grafana visualization platform, various performance monitoring indicators stored in the Prometheus monitoring platform are obtained and displayed.

[0089] Specifically, the server 104 obtains various performance monitoring indicators stored in the Prometheus monitoring platform based on the Grafana visualization platform, and displays the various performance monitoring indicators, so that the user can intuitively understand the working status of the system to be monitored.

[0090] In this embodiment, based on the Grafana visualization platform, various performance monitoring indicators stored in the Prometheus monitoring platform are obtained and displayed, so that users can intuitively understand the working status of the system to be monitored.

[0091] It should be understood that although Figure 2-6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-6 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0092] Second, as Figure 7 As shown, a system page monitoring device is provided, which is applied to a probe system and includes a system login module 710 , an indicator generation module 720 and an indicator statistics module 730 .

[0093] Among them, the system login module 710 is used to automatically log in to the system to be monitored in response to the completion of the initialization operation of the browser driver and the browser development tool; the indicator generation module 720 is used to automatically access each menu page of the system to be monitored in turn in response to the login status of the system to be monitored being a successful login, and monitor the corresponding network requests under the corresponding menu page when accessing the corresponding menu page and generate the performance monitoring indicator of the corresponding menu page according to the monitored network requests; the indicator statistics module 730 is used to count the performance monitoring indicators to obtain the performance monitoring indicator results of the system to be monitored.

[0094] In one of the embodiments, the device further includes an initialization module.

[0095] The initialization module is used to perform initialization operations on the browser driver and the browser development tool in response to the expiration of the system page monitoring time.

[0096] In one of the embodiments, the apparatus includes a monitoring time re-accumulation module.

[0097] Among them, the monitoring time re-accumulation module is used to respond to the login status being login failure, feedback the login status, clear the system page monitoring time and re-accumulate the system page monitoring time; the monitoring time re-accumulation module is used to clear the system page monitoring time and re-accumulate the system page monitoring time when statistics are performed on each performance monitoring indicator and the performance monitoring indicator results of the system to be monitored are obtained.

[0098] In one embodiment, the system login module 710 includes a system login unit.

[0099] Among them, the system login unit is used to obtain the page address and login mode of the system to be monitored; the login mode includes a login mode without identity authentication or a login mode with identity authentication; the system login unit is used to respond to the login mode being a login mode with identity authentication, obtain the identity authentication information of the system to be monitored, input the page address into the browser, and authenticate the system to be monitored according to the identity authentication information to obtain the identity authentication result; wherein the identity authentication result includes verification passed or verification failed; the system login unit is used to respond to the verification result being verification passed, log in to the system to be monitored according to the identity authentication information, and update the login status; the system login unit is used to respond to the verification result being verification failed, feedback the verification result, and update the login status; the system login unit is used to respond to the login mode being a login mode without identity authentication, input the page address into the browser, directly log in to the system to be monitored, and update the login status.

[0100] In one of the embodiments, the performance monitoring indicators include response status, response time and file size; the performance monitoring indicator results include the type quantity value of the response status, the maximum response time, the average response time, the maximum file size and the average file size.

[0101] In one embodiment, the indicator generation module 720 includes a first indicator generation unit.

[0102] Among them, the first indicator generation unit is used to serially access the current menu page of the system to be monitored; the first indicator generation unit is used to monitor each target network request; wherein the target network request is a network request under the current menu page; the first indicator generation unit is used to respond to the existence of a target network request whose response time is greater than a response time threshold or there is no new target network request under the current menu page, generate a performance monitoring indicator of the current menu page according to each monitored target network request, update the current menu page, and return to the step of serially accessing the current menu page of the system to be monitored for iterative processing until all menu pages are accessed.

[0103] In one embodiment, the indicator generation module 720 includes a second indicator generation unit.

[0104] Among them, the second indicator generation unit is used to traverse and access all menu pages of the system to be monitored in parallel and in slices, monitor the corresponding network requests under each menu page when accessing each menu page, and generate the performance monitoring indicator of the corresponding menu page according to the corresponding network requests under the monitored menu page.

[0105] In one of the embodiments, the device further includes an indicator scraping module.

[0106] Among them, the indicator scraping module is used to regularly scrape various performance monitoring indicators based on the Prometheus monitoring platform and store various performance monitoring indicators.

[0107] In one of the embodiments, the device further includes an indicator display module.

[0108] Among them, the indicator display module is used to obtain various performance monitoring indicators stored in the Prometheus monitoring platform based on the Grafana visualization platform, and display various performance monitoring indicators.

[0109] For the specific definition of the system page monitoring device, please refer to the definition of the system page monitoring method above, which will not be repeated here. Each module in the above-mentioned system page monitoring device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0110] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, 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, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store performance monitoring indicators of each menu page. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a system page monitoring method is implemented.

[0111] 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 those shown in the figure, or combine certain components, or have a different arrangement of components.

[0112] In a third aspect, a computer device is provided. The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps of any method in the above method embodiments are implemented.

[0113] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any method in the above method embodiments are implemented.

[0114] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program 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 non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0115] The technical features of the above embodiments may be arbitrarily combined. 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.

[0116] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A system page monitoring method, characterized in that: The method is applied to a probe system, and the method comprises: In response to completing the initialization operation of driving the browser and the development tool of the browser, automatically logging into the system to be monitored; In response to the login status of the system to be monitored being a successful login, each menu page of the system to be monitored is automatically accessed in sequence, and when accessing the corresponding menu page, each network request under the corresponding menu page is monitored and a performance monitoring indicator of the corresponding menu page is generated according to each monitored network request; Statistics are collected on each of the performance monitoring indicators to obtain performance monitoring indicator results of the system to be monitored.

2. The method according to claim 1, characterized in that The method further comprises: In response to expiration of the system page monitoring time, an initialization operation is performed on the browser driver and the browser development tool.

3. The method according to claim 2, characterized in that The method comprises: In response to the login status being login failure, feeding back the login status, clearing the system page monitoring time and re-accumulating the system page monitoring time; When the statistics of the performance monitoring indicators are collected to obtain the performance monitoring indicator results of the system to be monitored, the system page monitoring time is cleared and the system page monitoring time is accumulated again.

4. The method according to claim 1, characterized in that: The automatic logging into the system to be monitored comprises: Obtaining the page address and login mode of the system to be monitored; the login mode includes a login mode without identity authentication or a login mode with identity authentication; In response to the login mode being the identity authentication required login mode, obtaining identity authentication information of the system to be monitored, inputting the page address into the browser, and performing identity authentication of the system to be monitored according to the identity authentication information to obtain an identity authentication result; wherein the identity authentication result includes authentication passed or authentication failed; In response to the verification result being that the verification is passed, logging into the system to be monitored according to the identity authentication information, and updating the login status; In response to the verification result being the verification failure, feeding back the verification result and updating the login status; In response to the login mode being the login mode without identity authentication, the page address is input into the browser to directly log in to the system to be monitored, and the login status is updated.

5. The method according to claim 1, characterized in that The performance monitoring indicators include response status, response time and file size; the performance monitoring indicator results include the type quantity value of the response status, the maximum value of the response time, the average value of the response time, the maximum value of the file size and the average value of the file size.

6. The method according to claim 1, characterized in that The automatically accessing each menu page of the system to be monitored in sequence, monitoring each network request under the corresponding menu page when accessing the corresponding menu page, and generating the performance monitoring index of the corresponding menu page according to each monitored network request, includes: Serially access the current menu page of the system to be monitored; Monitoring each target network request; wherein the target network request is the network request under the current menu page; In response to the existence of a response time of the target network request being greater than a response time threshold or there being no new target network request under the current menu page, a performance monitoring indicator of the current menu page is generated according to each monitored target network request, the current menu page is updated, and the step of serially accessing the current menu page of the system to be monitored is returned to perform iterative processing until all the menu pages are accessed.

7. The method according to claim 1, characterized in that The automatically accessing each menu page of the system to be monitored in sequence, monitoring each network request under the corresponding menu page when accessing the corresponding menu page, and generating the performance monitoring index of the corresponding menu page according to each monitored network request, includes: Parallel sharding traverses and accesses all menu pages of the system to be monitored, monitors the network requests corresponding to each menu page when accessing each menu page, and generates performance monitoring indicators of the corresponding menu page according to the corresponding network requests under the monitored menu page.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: Based on the Prometheus monitoring platform, each of the performance monitoring indicators is scraped regularly and stored.

9. The method according to claim 8, characterized in that The method further comprises: Based on the Grafana visualization platform, the performance monitoring indicators stored in the Prometheus monitoring platform are obtained and displayed.

10. A system page monitoring device, characterized in that: The device is applied to a probe system, and comprises: A system login module, for automatically logging into the system to be monitored in response to completing the initialization operation of driving the browser and the development tool of the browser; An indicator generation module, for automatically accessing each menu page of the system to be monitored in sequence in response to the login status of the system to be monitored being successful, and monitoring each network request under the corresponding menu page when accessing the corresponding menu page, and generating a performance monitoring indicator of the corresponding menu page according to each monitored network request; The indicator statistics module is used to collect statistics on each of the performance monitoring indicators to obtain the performance monitoring indicator results of the system to be monitored.

11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

12. 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 9 are implemented.

Citation Information

Patent Citations

  • Monitoring method, device and system based on browser and storage medium

    CN109739725A

  • Enterprise-level web application system page performance detection method and device and medium

    CN110134609A

  • Web front-end performance automatic test method and system

    CN114238048A

  • Intranet front-end performance monitoring method and device, computer equipment and storage medium

    CN115033456A

  • System and method for monitoring browser event activities

    US20020165954A1