Software application environment monitoring method, device, equipment, medium and program product

Through the monitoring device, the indicator data of the production environment and the test environment are automatically obtained and compared, and the visual report is generated, which solves the problem of low manual comparison efficiency, and realizes efficient environmental comparison and alarm reminders, reducing costs and error rates.

CN119201671APending Publication Date: 2024-12-27BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410991745.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the prior art, manual comparison of indicator data of production environment and test environment is time-consuming, costly and prone to errors, resulting in low environmental comparison efficiency.

Method used

By monitoring devices communicate with multiple devices, collect data scripts, obtain metric data of production environment and test environment, generate visual environment comparison reports, including numbering information and MD5 values, and trigger alarm reminders based on metric data types to improve environmental comparisons, thereby improving environmental comparisons efficiency.

Benefits of technology

It reduces the error rate of index data acquisition and comparison, saves time and labor costs, and improves the comparison efficiency of index data in production and testing environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201671A_ABST
    Figure CN119201671A_ABST
Patent Text Reader

Abstract

The invention relates to a software application environment monitoring method and device, computer equipment, a storage medium and a computer program product. The method can be used in the financial field or other fields. The method comprises the following steps: selecting at least one first device as a first target device, and deploying a data collection script; calling a data collection script corresponding to the first target equipment to obtain first index data; obtaining first identification information of the first target device, and determining at least one second device corresponding to the first target device according to the first identification information, and taking the second device as a second target device; sending a first data acquisition instruction to a second target device to obtain second index data; and generating a visual first environment comparison report according to the first index data and the second index data. By adopting the method, the comparison efficiency of the index data in the production environment and the test environment can be improved, and the labor cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer equipment, storage medium and computer program product for monitoring a software application environment. Background Art

[0002] During the software development phase, if a function of the software passes the test in the test environment, it will be deployed to the production environment. However, if there is an inconsistency between the production environment and the test environment, the application may run differently in the production environment and the test environment, leading to production problems.

[0003] The existing comparison of parameters in the two environments is mainly done manually by comparing the indicator data in the production environment and the test environment. The parameters in the production environment are obtained by the production operation and maintenance personnel, and the parameters in the test environment are obtained by the testers, and then compared.

[0004] However, this manual method of comparing indicator data in the production environment and the test environment is time-consuming, labor-intensive, and prone to errors. Summary of the invention

[0005] Based on this, it is necessary to provide a software application environment monitoring method, device, computer equipment, computer-readable storage medium and computer program product that can improve the efficiency of environmental comparison in response to the above technical problems.

[0006] In a first aspect, the present application provides a method for monitoring a software application environment. The method is applied to a monitoring device, the monitoring device communicates with a plurality of first devices and a plurality of second devices respectively, the first devices are configured for a production environment of the software, and the second devices are configured for a test environment of the software, and the method comprises:

[0007] In response to a device selection operation in the web interface, at least one first device is selected as a first target device, and a data collection script is deployed on the first target device;

[0008] In response to the data collection operation in the web interface, first indicator data of the first target device is acquired by calling a data collection script corresponding to the first target device;

[0009] Acquire first identification information of the first target device, and determine at least one second device corresponding to the first target device according to the first identification information, and use the second device as the second target device;

[0010] Sending a first data collection instruction to the second target device to obtain second indicator data of the second target device;

[0011] A visual first environment comparison report is generated according to the first indicator data and the second indicator data; the first environment comparison report includes numbering information and an MD5 value.

[0012] In one embodiment, the first indicator data and the second indicator data each include one or more types of indicator data; generating a visualized first environment comparison report according to the first indicator data and the second indicator data includes:

[0013] Generate a visual first environment comparison report through a comparison tool according to the first indicator data, the second indicator data and the indicator data type;

[0014] The indicator data types include a first system indicator type, a second system indicator type, a user-defined indicator type, and a business indicator type.

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

[0016] In the first environment comparison report, if the first indicator data is different from the second indicator data, a corresponding alarm reminder is triggered according to the indicator data type.

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

[0018] In the case where it is detected that a preset number of software in the second device have cumulatively passed the function test, the corresponding second device is used as a third target device, and third identification information of the third target device is obtained;

[0019] According to the third identification information, third indicator data of the third target device and fourth indicator data of the first device corresponding to the third target device are acquired; the third indicator data and the fourth indicator data both include one or more types of indicator data;

[0020] A visualized second environment comparison report is generated according to the third indicator data and the fourth indicator data.

[0021] In one embodiment, acquiring, according to the third identification information, third indicator data of the third target device and fourth indicator data of the first device corresponding to the third target device includes:

[0022] Acquire third indicator data in the second device according to the third identification information;

[0023] According to the third identification information, determining that there is a fourth target device in the first device corresponding to a preset number of second devices that have passed the software function test;

[0024] A second data collection instruction is sent to the fourth target device to obtain fourth indicator data in the fourth target device.

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

[0026] In the case of receiving a device monitoring instruction, determining a fifth target device according to the fifth identification information in the device monitoring instruction, and configuring a device monitoring script for the fifth target device; the device monitoring script is used to monitor changes in indicator data in the fifth target device;

[0027] When an indicator data monitoring instruction is received, the indicator data corresponding to the sixth target device and the seventh identification information in the sixth target device are determined according to the sixth identification information and the seventh identification information in the indicator data monitoring instruction, and an indicator monitoring script is set for the indicator data corresponding to the seventh identification information; the indicator monitoring script is used to monitor whether the indicator data corresponding to the seventh identification information triggers an alarm.

[0028] In a second aspect, the present application further provides a software application environment monitoring device. The device is applied to a monitoring device, the monitoring device communicates with a plurality of first devices and a plurality of second devices respectively, the first devices are configured for a production environment of the software, and the second devices are configured for a test environment of the software, and the device comprises:

[0029] A first target device selection module, configured to select at least one first device as a first target device in response to a device selection operation in the web interface, and deploy a data collection script on the first target device;

[0030] A first indicator data acquisition module, configured to, in response to a data collection operation in a web interface, call a data collection script corresponding to the first target device to acquire first indicator data of the first target device;

[0031] A second target device determining module, configured to obtain first identification information of the first target device, and determine, based on the first identification information, that the first target device corresponds to at least one second device and uses the second target device as the second target device;

[0032] A second indicator data acquisition module, used for sending a first data acquisition instruction to the second target device to acquire second indicator data of the second target device;

[0033] The first comparison report generating module is used to generate a visualized first environment comparison report according to the first indicator data and the second indicator data; the first environment comparison report includes numbering information and MD5 value.

[0034] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0035] In response to a device selection operation in the web interface, at least one first device is selected as a first target device, and a data collection script is deployed on the first target device;

[0036] In response to the data collection operation in the web interface, first indicator data of the first target device is acquired by calling a data collection script corresponding to the first target device;

[0037] Acquire first identification information of the first target device, and determine at least one second device corresponding to the first target device according to the first identification information, and use the second device as the second target device;

[0038] Sending a first data collection instruction to the second target device to obtain second indicator data of the second target device;

[0039] A visual first environment comparison report is generated according to the first indicator data and the second indicator data; the first environment comparison report includes numbering information and an MD5 value.

[0040] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0041] In response to a device selection operation in the web interface, at least one first device is selected as a first target device, and a data collection script is deployed on the first target device;

[0042] In response to the data collection operation in the web interface, first indicator data of the first target device is acquired by calling a data collection script corresponding to the first target device;

[0043] Acquire first identification information of the first target device, and determine at least one second device corresponding to the first target device according to the first identification information, and use the second device as the second target device;

[0044] Sending a first data collection instruction to the second target device to obtain second indicator data of the second target device;

[0045] A visual first environment comparison report is generated according to the first indicator data and the second indicator data; the first environment comparison report includes numbering information and an MD5 value.

[0046] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0047] In response to a device selection operation in the web interface, at least one first device is selected as a first target device, and a data collection script is deployed on the first target device;

[0048] In response to the data collection operation in the web interface, first indicator data of the first target device is acquired by calling a data collection script corresponding to the first target device;

[0049] Acquire first identification information of the first target device, and determine at least one second device corresponding to the first target device according to the first identification information, and use the second device as the second target device;

[0050] Sending a first data collection instruction to the second target device to obtain second indicator data of the second target device;

[0051] A visual first environment comparison report is generated according to the first indicator data and the second indicator data; the first environment comparison report includes numbering information and an MD5 value.

[0052] The above-mentioned software application environment monitoring method, device, computer equipment, storage medium and computer program product, in response to the device selection operation in the web interface, select at least one first device as the first target device, and deploy a data collection script on the first target device; in response to the data collection operation in the web interface, obtain the first indicator data of the first target device by calling the data collection script corresponding to the first target device; obtain the first identification information of the first target device, and determine at least one second device corresponding to the first target device according to the first identification information, and use it as the second target device; send a first data collection instruction to the second target device to obtain the second indicator data of the second target device; generate a visual first environment comparison report according to the first indicator data and the second indicator data. Compared with the traditional technology of manually comparing the indicator data in the production environment and the test environment, the method collects and compares data through the monitoring device, which can reduce the error rate of indicator data acquisition and comparison, save the time of indicator data acquisition and comparison, thereby improving the comparison efficiency of indicator data in the production environment and the test environment, and saving labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A flowchart of a method for monitoring a software application environment in one embodiment;

[0054] Figure 2A structural diagram of monitoring device communication in one embodiment;

[0055] Figure 3 A flowchart of a method for monitoring a software application environment in another embodiment;

[0056] Figure 4 is a structural block diagram of a software application environment monitoring device in one embodiment;

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

[0058] 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.

[0059] In one embodiment, Figure 1 As shown, a method for monitoring a software application environment is provided, the method is applied to a monitoring device, the monitoring device communicates with a plurality of first devices and a plurality of second devices respectively, the first devices are configured for a production environment for the software, and the second devices are configured for a test environment for the software, comprising the following steps:

[0060] Step 102 , in response to a device selection operation in a web interface, at least one first device is selected as a first target device, and a data collection script is deployed on the first target device.

[0061] The monitoring device may be a terminal or a server. The first device and the second device may be a server or a cluster of multiple servers. The terminal may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices, and portable wearable devices.

[0062] The monitoring device communicates with the plurality of first devices and the plurality of second devices respectively. Figure 2 , shows a structural diagram of monitoring device communication, including a monitoring device 202, multiple first devices 204, and multiple second devices 206.

[0063] The first device is configured for the production environment of the software. The second device can be configured for the software test environment. The production environment is the environment in which the software runs the formal functions for customers. The test environment is the environment in which the software needs to be tested before the software is officially released, such as functional testing and performance testing.

[0064] For the same target software, if there are one or more first devices configured with a production environment of the target software, then there are correspondingly one or more second devices configured with a test environment of the target software.

[0065] The device selection operation can be used to select a device for which data needs to be collected, so as to deploy a data collection script on the device. In specific practice, Prometheus can be used to deploy the data collection script in the first target device.

[0066] Prometheus: An open source monitoring alarm system and timeseries database (TSDB) developed by SoundCloud. It is a monitoring collection and data storage framework.

[0067] Exemplarily, in a web interface of the monitoring device, a device selection operation is performed, and in response to the device selection operation, at least one first device is selected as a first target device, so as to deploy a data collection script on the target device.

[0068] Step 104 , in response to the data collection operation in the web interface, the first indicator data of the first target device is acquired by calling the data collection script corresponding to the first target device.

[0069] The data collection operation may be used to call a data collection script of the first target device to obtain the indicator data in the first target device. The first indicator data is the indicator data collected on the first target device. The indicator data may include but is not limited to CPU usage, number of system users, system permissions, configuration parameters of middleware, and business data.

[0070] In specific practice, the first indicator data in the production environment can be used as a standard value and stored in the standard database. Subsequently, each collected indicator data can be defaulted and compared with the standard database if it exists.

[0071] Exemplarily, in a web interface of the monitoring device, a data collection operation is performed, and in response to the data collection operation, a data collection script corresponding to the first target device is called to obtain first indicator data of the first target device.

[0072] Step 106: Acquire first identification information of the first target device, and determine at least one second device corresponding to the first target device according to the first identification information, and use the second device as the second target device.

[0073] The first identification information is used to indicate the first target device. The second target device has second identification information, and the second identification information corresponds to the first identification information.

[0074] In specific practice, the first device is configured for the production environment of the software. The second device can be configured for the software test environment. Therefore, in order to ensure that the environment in which the target software is located is as close as possible, when the target software requires a certain number of first devices to ensure that the production environment can operate normally, the number of second devices required for the corresponding test environment is equal to the number of first devices required for the production environment.

[0075] Exemplarily, first identification information of a first target device is acquired to determine a second target identifier corresponding to the first target identifier according to the first identification information, thereby determining the second target device.

[0076] Step 108: Send a first data collection instruction to the second target device to obtain second indicator data of the second target device.

[0077] The first data collection instruction includes the second identification information and the identification information of the indicator data to be collected. The second identification information is used to indicate the second target device. The identification information of the indicator data to be collected corresponds to the identification information of the first indicator data. The second indicator data is the indicator data collected on the second target device.

[0078] Exemplarily, after the second target device is determined, sending a first data collection instruction to the second target device is triggered to obtain second indicator data of the second target device.

[0079] Step 110: Generate a visualized first environment comparison report based on the first indicator data and the second indicator data; the first environment comparison report includes numbering information and an MD5 value.

[0080] MD5 (Message-Digest Algorithm 5) is also known as a hash algorithm. It is used to ensure that information is transmitted completely and consistently. The function of MD5 is to "compress" large amounts of information into a confidential format before signing a private key with a digital signature software.

[0081] The first environment comparison report includes number information and MD5 value. The number information is identification information of the first environment comparison report, and the number information can be generated based on the time when the report is generated. The MD5 value is obtained using the MD5 algorithm for subsequent tracing.

[0082] The first environment comparison report may be used to display inconsistent data between the first indicator data and the second indicator data.

[0083] Exemplarily, a visualized first environment comparison report is generated based on the first indicator data and the second indicator data.

[0084] In the above-mentioned software application environment monitoring method, in response to the device selection operation in the web interface, at least one first device is selected as the first target device, and a data collection script is deployed on the first target device; in response to the data collection operation in the web interface, the first indicator data of the first target device is obtained by calling the data collection script corresponding to the first target device; the first identification information of the first target device is obtained, and according to the first identification information, at least one second device corresponding to the first target device is determined and used as the second target device; the first data collection instruction is sent to the second target device to obtain the second indicator data of the second target device; according to the first indicator data and the second indicator data, a visual first environment comparison report is generated. Compared with the traditional technology of manually comparing the indicator data in the production environment and the test environment, the method of collecting and comparing data by monitoring the device can reduce the error rate of indicator data acquisition and comparison, save the time of indicator data acquisition and comparison, thereby improving the comparison efficiency of indicator data in the production environment and the test environment, and saving labor costs.

[0085] In one embodiment, the first indicator data and the second indicator data each include one or more types of indicator data; step 110 includes:

[0086] Step 1102, generating a visual first environment comparison report by using a comparison tool according to the first indicator data, the second indicator data and the indicator data type;

[0087] The indicator data types include a first system indicator type, a second system indicator type, a user-defined indicator type, and a business indicator type.

[0088] The first indicator data and the second indicator data may each include one or more types of indicator data. The indicator data types may include a first system indicator type, a second system indicator type, a custom indicator type, and a business indicator type. The first system indicator type may include system dynamic parameters such as CPU usage. The second system indicator data may include data such as the number of users, permissions of a certain important directory, etc. The custom indicator data may include configuration parameters, etc. The business indicator data may include configuration data of business services, etc.

[0089] The comparison tool may be Beyond Compare, which is a text file comparison tool. Specifically, in the visualized first environment comparison report, different types of indicator data may be presented in different forms. For example, if the CPU usage in the test environment is not much different from that in the production environment, the difference in their values ​​may not be displayed.

[0090] In the above embodiment, a visual first environment comparison report is generated through a comparison tool based on the first indicator data, the second indicator data and the indicator data type, thereby realizing a visual display of different types of indicator data in the environment comparison report. By using the comparison tool, the speed of data comparison is accelerated, and the time for indicator data comparison is saved, thereby improving the comparison efficiency of indicator data in the production environment and the test environment, and saving labor costs.

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

[0092] In the first environment comparison report, if the first indicator data is different from the second indicator data, a corresponding alarm reminder is triggered according to the indicator data type.

[0093] Among them, the indicator data type may include a first system indicator type, a second system indicator type, a user-defined indicator type, and a business indicator type.

[0094] In one example, if the number of users included in the first indicator data in the production environment is 3, and the number of users included in the indicator data in the test environment is 4, a second-level warning may be triggered, and the second-level warning may be used to indicate that there is a difference in the second system indicator data. If the first indicator data in the production environment includes a CPU usage rate of 50%, and the second indicator data in the test environment includes a CPU usage rate of 51%, the first-level alarm will not be triggered because the difference is not large. The first-level alarm may be used to indicate that there is a large difference in the first system indicator data.

[0095] In the above embodiment, in the visual first environment comparison report, if the first indicator data is different from the second indicator data, an alarm reminder is triggered according to the indicator data type, so that after the indicator data comparison, the test environment can be debugged in time through the alarm reminder to make the test environment consistent with the production environment.

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

[0097] In the case where it is detected that a preset number of software in the second device have cumulatively passed the function test, the corresponding second device is used as a third target device, and third identification information of the third target device is obtained;

[0098] According to the third identification information, third indicator data of the third target device and fourth indicator data of the first device corresponding to the third target device are acquired; the third indicator data and the fourth indicator data both include one or more types of indicator data;

[0099] A visualized second environment comparison report is generated according to the third indicator data and the fourth indicator data.

[0100] Among them, the monitoring device can monitor the number of functional tests that have been completed in the test environment. The third target device is the second device that has completed the functional test cumulatively. The third identification information is used to indicate the third target device. The third indicator data and the fourth indicator data both include one or more types of indicator data. The second environment comparison report may include numbering information and MD5 value. The numbering information is the identification information of the second environment comparison report, and the numbering information can be generated based on the time when the report is generated. The MD5 value is obtained using the MD5 algorithm for subsequent tracing.

[0101] Exemplarily, the size of the preset number can be set based on actual conditions, and the present invention is not limited here.

[0102] In the above embodiment, when it is monitored that a preset number of software have passed the functional test in the second device, the corresponding second device is used as the third target device, and the third identification information of the third target device is obtained; based on the third identification information, the third indicator data of the third target device and the fourth indicator data of the first device corresponding to the third target device are obtained; based on the third indicator data and the fourth indicator data, a visual second environment comparison report is generated, and when it is monitored that a preset number of software have passed the functional test in the second device, the indicator data in the production environment and the test environment are automatically obtained and compared through the monitoring device, thereby improving the comparison efficiency of the indicator data in the production environment and the test environment and saving labor costs.

[0103] In one embodiment, acquiring, according to the third identification information, third indicator data of the third target device and fourth indicator data of the first device corresponding to the third target device includes:

[0104] Acquire third indicator data in the second device according to the third identification information;

[0105] According to the third identification information, determining that there is a fourth target device in the first device corresponding to a preset number of second devices that have passed the software function test;

[0106] A second data collection instruction is sent to the fourth target device to obtain fourth indicator data in the fourth target device.

[0107] The third identification information is used to indicate the third target device. The fourth target device has the fourth identification information, and the fourth identification information corresponds to the third identification information. The second data collection instruction includes the fourth identification information and the identification information of the indicator data to be collected. The identification information of the indicator data to be collected corresponds to the identification information of the third indicator data. The fourth indicator data is the indicator data collected on the fourth target device.

[0108] In the above embodiment, the fourth target identifier corresponding to the third target identifier is determined based on the third identification information of the third target device, thereby determining the fourth target device, and sending a second data acquisition instruction to the fourth target device to obtain fourth indicator data in the fourth target device. When the monitoring device detects that a preset number of software have passed the functional test in the second device, the indicator data in the production environment and the test environment are automatically obtained, thereby improving the comparison efficiency of the indicator data in the production environment and the test environment and saving labor costs.

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

[0110] In the case of receiving a device monitoring instruction, determining a fifth target device according to the fifth identification information in the device monitoring instruction, and configuring a device monitoring script for the fifth target device; the device monitoring script is used to monitor changes in indicator data in the fifth target device;

[0111] When an indicator data monitoring instruction is received, the indicator data corresponding to the sixth target device and the seventh identification information in the sixth target device are determined according to the sixth identification information and the seventh identification information in the indicator data monitoring instruction, and an indicator monitoring script is set for the indicator data corresponding to the seventh identification information; the indicator monitoring script is used to monitor whether the indicator data corresponding to the seventh identification information triggers an alarm.

[0112] The device monitoring instruction includes fifth identification information, which is used to indicate the device to be monitored, and configures a device monitoring script for the device to be monitored. The device monitoring script is used to monitor changes in indicator data in the fifth target device.

[0113] The indicator data monitoring instruction includes sixth identification information and seventh identification information, the sixth identification information is used to indicate the device to be monitored, and the seventh identification information is used to indicate the indicator data to be monitored in the device. The indicator monitoring script is used to monitor whether the indicator data corresponding to the seventh identification information triggers an alarm.

[0114] The fifth target device may be the first device or the second device.

[0115] The sixth target device may be the first device or the second device.

[0116] In one example, if the CPU usage of the sixth target device needs to be monitored, an indicator monitoring script is set to the indicator data corresponding to the CPU usage of the sixth target device for monitoring. If the CPU usage of the sixth target device exceeds the set value, a corresponding warning is triggered to remind that the sixth target device needs to be regulated to restore its CPU usage to a normal state.

[0117] In the above embodiment, when a device monitoring instruction is received, the fifth target device is determined according to the fifth identification information in the device monitoring instruction, and a device monitoring script is configured for the fifth target device; when an indicator data monitoring instruction is received, the sixth target device and the indicator data corresponding to the seventh identification information in the sixth target device are determined according to the sixth identification information and the seventh identification information in the indicator data monitoring instruction, and an indicator monitoring script is set for the indicator data corresponding to the seventh identification information, thereby realizing real-time monitoring of the device or the indicator data that needs to be monitored in the device through the monitoring device, and timely regulation of the indicator data in the device.

[0118] In order to better understand the complete process of software application environment monitoring in the embodiment of the present invention, a complete example is used to illustrate. Figure 3 , shows a flow chart of a software application environment monitoring method in another embodiment, comprising the following steps:

[0119] Step 302 , in response to a device selection operation in a web interface, at least one first device is selected as a first target device, and a data collection script is deployed on the first target device.

[0120] Step 304 , in response to the data collection operation in the web interface, the first indicator data of the first target device is acquired by calling a data collection script corresponding to the first target device.

[0121] Step 306: Acquire first identification information of the first target device, and determine at least one second device corresponding to the first target device according to the first identification information, and use the second device as the second target device.

[0122] Step 308: Send a first data collection instruction to the second target device to obtain second indicator data of the second target device.

[0123] Step 310: Generate a visualized first environment comparison report through a comparison tool according to the first indicator data, the second indicator data and the indicator data type.

[0124] Step 312: In the first environment comparison report, if the first indicator data is different from the second indicator data, a corresponding alarm reminder is triggered according to the indicator data type.

[0125] Step 314: when it is detected that a preset number of software in the second device have passed the function test, the corresponding second device is used as a third target device, and third identification information of the third target device is obtained.

[0126] Step 316, based on the third identification information, obtain the third indicator data in the second device; based on the third identification information, determine that there is a fourth target device in the first device corresponding to the second device that has passed a preset number of software function tests; send a second data collection instruction to the fourth target device to obtain the fourth indicator data in the fourth target device.

[0127] Step 318: Generate a visualized second environment comparison report based on the third indicator data and the fourth indicator data.

[0128] In this embodiment, in response to a device selection operation in a web interface, at least one first device is selected as a first target device, and a data collection script is deployed on the first target device; in response to a data collection operation in the web interface, first indicator data of the first target device is acquired by calling a data collection script corresponding to the first target device; first identification information of the first target device is acquired, and at least one second device corresponding to the first target device is determined according to the first identification information and used as a second target device; a first data collection instruction is sent to the second target device to acquire second indicator data of the second target device; and a visual first environment comparison report is generated according to the first indicator data and the second indicator data. Compared with the traditional technology of manually comparing indicator data in a production environment and a test environment, the method of collecting and comparing data by monitoring equipment can reduce the error rate of indicator data acquisition and comparison, save time for indicator data acquisition and comparison, thereby improving the comparison efficiency of indicator data in a production environment and a test environment, and saving labor costs.

[0129] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0130] Based on the same inventive concept, the embodiment of the present application also provides a software application environment monitoring device for implementing the software application environment monitoring method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more software application environment monitoring device embodiments provided below can refer to the limitations of the software application environment monitoring method above, and will not be repeated here.

[0131] In one embodiment, Figure 4 As shown, a software application environment monitoring device is provided, the device is applied to a monitoring device, the monitoring device communicates with a plurality of first devices and a plurality of second devices respectively, the first devices are configured for a production environment of the software, and the second devices are configured for a test environment of the software, including: a first target device selection module 402, a first indicator data acquisition module 404, a second target device determination module 406, a second indicator data acquisition module 408 and a first comparison report generation module 410, wherein:

[0132] A first target device selection module 402 is used to select at least one first device as a first target device in response to a device selection operation in the web interface, and deploy a data collection script on the first target device;

[0133] A first indicator data acquisition module 404 is used to call a data collection script corresponding to the first target device in response to a data collection operation in the web interface to acquire first indicator data of the first target device;

[0134] A second target device determining module 406, configured to obtain first identification information of the first target device, and determine, based on the first identification information, that the first target device corresponds to at least one second device and uses the second target device as the second target device;

[0135] A second indicator data acquisition module 408, configured to send a first data acquisition instruction to the second target device to acquire second indicator data of the second target device;

[0136] The first comparison report generating module 410 is used to generate a visualized first environment comparison report according to the first indicator data and the second indicator data; the first environment comparison report includes numbering information and an MD5 value.

[0137] In some embodiments, the first indicator data and the second indicator data each include one or more types of indicator data; the first comparison report generating module 410 includes:

[0138] The first comparison report generating unit is used to generate a visual first environment comparison report through a comparison tool according to the first indicator data, the second indicator data and the indicator data type; the indicator data type includes a first system indicator type, a second system indicator type, a custom indicator type and a business indicator type.

[0139] In some embodiments, the apparatus further comprises:

[0140] The first alarm reminder module is used to trigger a corresponding alarm reminder according to the type of the indicator data if the first indicator data and the second indicator data are different in the first environment comparison report.

[0141] In some embodiments, the apparatus further comprises:

[0142] A third identification information acquisition module is used to, when it is detected that a preset number of software in the second device have passed the function test, use the corresponding second device as a third target device and acquire the third identification information of the third target device;

[0143] an indicator data acquisition module, configured to acquire, according to the third identification information, third indicator data of the third target device and fourth indicator data of the first device corresponding to the third target device; the third indicator data and the fourth indicator data both include one or more types of indicator data;

[0144] The second comparison report generating module is used to generate a visualized second environment comparison report according to the third indicator data and the fourth indicator data.

[0145] In some embodiments, the indicator data acquisition module includes:

[0146] A third indicator data acquisition unit, configured to acquire third indicator data in the second device according to the third identification information;

[0147] A fourth target device determining unit, configured to determine, according to the third identification information, a fourth target device in the first device corresponding to a second device having a preset number of software function tests passed;

[0148] The fourth indicator data acquisition unit is used to send a second data collection instruction to the fourth target device to acquire the fourth indicator data in the fourth target device.

[0149] In some embodiments, the apparatus further comprises:

[0150] A device monitoring script configuration module, configured to, upon receiving a device monitoring instruction, determine a fifth target device according to fifth identification information in the device monitoring instruction, and configure a device monitoring script for the fifth target device; the device monitoring script is used to monitor changes in indicator data in the fifth target device;

[0151] An indicator monitoring script configuration module is used to determine the sixth target device and the indicator data corresponding to the seventh identification information in the sixth target device according to the sixth identification information and the seventh identification information in the indicator data monitoring instruction when an indicator data monitoring instruction is received, and set an indicator monitoring script for the indicator data corresponding to the seventh identification information; the indicator monitoring script is used to monitor whether the indicator data corresponding to the seventh identification information triggers an alarm.

[0152] Each module in the above software application environment monitoring device can be implemented in whole or in part by software, hardware and their combination. Each module 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 each module above.

[0153] 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 5 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. 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 input / output interface of the computer device is used to exchange information between the processor and an external device. 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 implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for monitoring a software application environment is implemented.

[0154] The display unit of the computer device is used to form a visually visible picture, and can be a display screen, a projection device, or a virtual reality imaging device. The display screen 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 covered on the display screen, or a key, trackball, or touchpad provided on the computer device housing, or an external keyboard, touchpad, or mouse, etc.

[0155] Those skilled in the art will understand that Figure 5 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.

[0156] 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:

[0157] In response to a device selection operation in the web interface, at least one first device is selected as a first target device, and a data collection script is deployed on the first target device;

[0158] In response to the data collection operation in the web interface, first indicator data of the first target device is acquired by calling a data collection script corresponding to the first target device;

[0159] Acquire first identification information of the first target device, and determine at least one second device corresponding to the first target device according to the first identification information, and use the second device as the second target device;

[0160] Sending a first data collection instruction to the second target device to obtain second indicator data of the second target device;

[0161] A visual first environment comparison report is generated according to the first indicator data and the second indicator data; the first environment comparison report includes numbering information and an MD5 value.

[0162] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0163] In response to a device selection operation in the web interface, at least one first device is selected as a first target device, and a data collection script is deployed on the first target device;

[0164] In response to the data collection operation in the web interface, first indicator data of the first target device is acquired by calling a data collection script corresponding to the first target device;

[0165] Acquire first identification information of the first target device, and determine at least one second device corresponding to the first target device according to the first identification information, and use the second device as the second target device;

[0166] Sending a first data collection instruction to the second target device to obtain second indicator data of the second target device;

[0167] A visual first environment comparison report is generated according to the first indicator data and the second indicator data; the first environment comparison report includes numbering information and an MD5 value.

[0168] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0169] In response to a device selection operation in the web interface, at least one first device is selected as a first target device, and a data collection script is deployed on the first target device;

[0170] In response to the data collection operation in the web interface, first indicator data of the first target device is acquired by calling a data collection script corresponding to the first target device;

[0171] Acquire first identification information of the first target device, and determine at least one second device corresponding to the first target device according to the first identification information, and use the second device as the second target device;

[0172] Sending a first data collection instruction to the second target device to obtain second indicator data of the second target device;

[0173] A visual first environment comparison report is generated according to the first indicator data and the second indicator data; the first environment comparison report includes numbering information and an MD5 value.

[0174] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0175] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant 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 the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. 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). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0176] The technical features of the above embodiments may 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.

[0177] The above-described 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 present application. 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 present application shall be subject to the attached claims.

Claims

1. A software application environment monitoring method, characterized in that: The method is applied to a monitoring device, the monitoring device communicates with a plurality of first devices and a plurality of second devices respectively, the first devices are configured for a production environment of software, and the second devices are configured for a test environment of software, and the method includes: In response to a device selection operation in the web interface, at least one first device is selected as a first target device, and a data collection script is deployed on the first target device; In response to the data collection operation in the web interface, first indicator data of the first target device is acquired by calling a data collection script corresponding to the first target device; Acquire first identification information of the first target device, and determine at least one second device corresponding to the first target device according to the first identification information, and use the second device as the second target device; Sending a first data collection instruction to the second target device to obtain second indicator data of the second target device; A visual first environment comparison report is generated according to the first indicator data and the second indicator data; the first environment comparison report includes numbering information and an MD5 value.

2. The method according to claim 1, characterized in that The first indicator data and the second indicator data each include one or more types of indicator data; generating a visualized first environment comparison report according to the first indicator data and the second indicator data includes: Generate a visual first environment comparison report through a comparison tool according to the first indicator data, the second indicator data and the indicator data type; The indicator data types include a first system indicator type, a second system indicator type, a user-defined indicator type, and a business indicator type.

3. The method according to claim 2, characterized in that The method further comprises: In the first environment comparison report, if the first indicator data is different from the second indicator data, a corresponding alarm reminder is triggered according to the indicator data type.

4. The method according to claim 1, characterized in that: The method further comprises: In the case where it is detected that a preset number of software in the second device have cumulatively passed the function test, the corresponding second device is used as a third target device, and third identification information of the third target device is obtained; According to the third identification information, third indicator data of the third target device and fourth indicator data of the first device corresponding to the third target device are acquired; the third indicator data and the fourth indicator data both include one or more types of indicator data; A visualized second environment comparison report is generated according to the third indicator data and the fourth indicator data.

5. The method according to claim 4, characterized in that The acquiring, according to the third identification information, third indicator data of the third target device and fourth indicator data of the first device corresponding to the third target device comprises: Acquire third indicator data in the second device according to the third identification information; According to the third identification information, determining that there is a fourth target device in the first device corresponding to a preset number of second devices that have passed the software function test; A second data collection instruction is sent to the fourth target device to obtain fourth indicator data in the fourth target device.

6. The method according to claim 1, characterized in that The method further comprises: In the case of receiving a device monitoring instruction, determining a fifth target device according to the fifth identification information in the device monitoring instruction, and configuring a device monitoring script for the fifth target device; the device monitoring script is used to monitor changes in indicator data in the fifth target device; When an indicator data monitoring instruction is received, the indicator data corresponding to the sixth target device and the seventh identification information in the sixth target device are determined according to the sixth identification information and the seventh identification information in the indicator data monitoring instruction, and an indicator monitoring script is set for the indicator data corresponding to the seventh identification information; the indicator monitoring script is used to monitor whether the indicator data corresponding to the seventh identification information triggers an alarm.

7. A software application environment monitoring device, characterized in that: The apparatus is applied to a monitoring device, the monitoring device communicates with a plurality of first devices and a plurality of second devices respectively, the first devices are configured for a production environment of software, and the second devices are configured for a test environment of software, and the apparatus comprises: A first target device selection module, configured to select at least one first device as a first target device in response to a device selection operation in the web interface, and deploy a data collection script on the first target device; A first indicator data acquisition module, configured to, in response to a data collection operation in a web interface, call a data collection script corresponding to the first target device to acquire first indicator data of the first target device; A second target device determining module, configured to obtain first identification information of the first target device, and determine, based on the first identification information, that the first target device corresponds to at least one second device and uses the second target device as the second target device; A second indicator data acquisition module, used for sending a first data acquisition instruction to the second target device to acquire second indicator data of the second target device; The first comparison report generating module is used to generate a visualized first environment comparison report according to the first indicator data and the second indicator data; the first environment comparison report includes numbering information and MD5 value.

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 software application environment monitoring method described in 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 software application environment monitoring method described in any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the software application environment monitoring method described in any one of claims 1 to 6 are implemented.