CN113064797B - Front-end monitoring method and device, electronic equipment and storage medium - Google Patents

Front-end monitoring method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113064797B
CN113064797B CN202110438232.5A CN202110438232A CN113064797B CN 113064797 B CN113064797 B CN 113064797B CN 202110438232 A CN202110438232 A CN 202110438232A CN 113064797 B CN113064797 B CN 113064797B
Authority
CN
China
Prior art keywords
monitoring
monitored object
end system
path
monitored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110438232.5A
Other languages
Chinese (zh)
Other versions
CN113064797A (en
Inventor
黎敏娴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An International Smart City Technology Co Ltd
Original Assignee
Ping An International Smart City Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202110438232.5A priority Critical patent/CN113064797B/en
Publication of CN113064797A publication Critical patent/CN113064797A/en
Application granted granted Critical
Publication of CN113064797B publication Critical patent/CN113064797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system

Abstract

The invention relates to the technical field of monitoring, and discloses a front-end monitoring method, which comprises the following steps: acquiring a monitoring system and at least one front-end system to be monitored, and identifying a monitored object in the front-end system; registering an access path of the front-end system in the monitoring system, and configuring a monitoring object path of the monitoring system in the monitoring object according to the access path; configuring a monitoring object program of the monitoring object in the monitoring system according to the configuration information of the monitoring object; and executing the monitoring of the monitored object according to the monitored object path and the monitored object program to obtain a monitoring result. In addition, the invention also relates to a block chain technology, and the monitoring result can be stored in the block chain. In addition, the invention also provides a front-end monitoring device, electronic equipment and a storage medium. The invention can realize flexible monitoring of the front-end system and improve the monitoring efficiency of the front-end system.

Description

Front-end monitoring method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of monitoring technologies, and in particular, to a front-end monitoring method and apparatus, an electronic device, and a computer-readable storage medium.
Background
The front-end monitoring generally refers to a process of monitoring performance, data and abnormality of a system in a front-end page, wherein the performance monitoring refers to performance monitoring for front-end page application and relates to user experience, user interaction time and the like, the abnormality monitoring refers to condition monitoring that the front-end page application cannot obtain an expected effect result, such as online fault, application bug and the like, the data monitoring refers to monitoring of user behavior data, such as user page click quantity, page dwell time and the like, user behavior can be obtained and the use condition of a system product in the front-end page at a user end can be tracked based on the front-end monitoring, and the optimization direction of the system product in the front-end page is indicated based on the monitoring data.
At present, a front-end monitoring system (such as an ARMS ali monitoring system) is usually required to be established in a platform corresponding to a front-end page system to be monitored, so that the monitoring of the front-end page system to be monitored can be realized, and thus the front-end monitoring system needs to be configured in different deployments according to platforms of different front-end page systems, so that the flexibility of front-end monitoring can be influenced, and the efficiency of front-end monitoring is further influenced.
Disclosure of Invention
The invention provides a front-end monitoring method and device, electronic equipment and a computer readable storage medium, and mainly aims to realize flexible monitoring of a front-end system and improve monitoring efficiency of the front-end system.
In order to achieve the above object, the present invention provides a front-end monitoring method, including:
acquiring a monitoring system and at least one front-end system to be monitored, and identifying a monitored object in the front-end system;
registering an access path of the front-end system in the monitoring system, and configuring a monitoring object path of the monitoring system in the monitoring object according to the access path;
configuring a monitoring object program of the monitoring object in the monitoring system according to the configuration information of the monitoring object;
and executing the monitoring of the monitored object according to the monitored object path and the monitored object program to obtain a monitoring result.
Optionally, the identifying a monitoring object in the front-end system includes:
responding to a monitoring request of the front-end system, and acquiring a monitoring type of the monitoring request;
inquiring a monitoring event of the front-end system according to the monitoring type;
and obtaining a monitoring object of the front-end system according to the monitoring event.
Optionally, the registering, in the monitoring system, an access path of the front-end system includes:
acquiring system information of the front-end system, and inquiring a configuration route of the front-end system according to the system information;
and loading the configuration route in a compiling environment in the monitoring system to obtain an access path of the monitoring system in the front-end system.
Optionally, before querying the configured route of the front-end system according to the system information, the method further includes:
inquiring interface information of the front-end system according to the operating environment parameters of the system information;
inquiring the URL address of the front-end system according to the configuration file parameters of the system information;
and obtaining the configuration route of the front-end system according to the interface information and the URL address.
Optionally, the configuring, according to the access path, a monitoring object path of the monitoring system in the monitoring object includes:
and establishing a monitoring node of the monitoring object, and establishing a connection path of the monitoring node in the monitoring system according to the access path to obtain the monitoring object path.
Optionally, the configuring, according to the configuration information of the monitored object, a monitored object program of the monitored object in the monitoring system includes:
and acquiring configuration parameters of the configuration information, constructing a monitoring object script and a monitoring object tool in the monitoring system according to the configuration parameters, and generating a monitoring object program of the monitoring object.
Optionally, the performing monitoring of the monitored object according to the monitored object path and the monitored object program to obtain a monitoring result includes:
loading the running data of the monitored object by using the monitored object script in the monitored object program according to the monitored object path;
and monitoring the running data by using a monitoring object tool in the monitoring object program to obtain a monitoring result.
In order to solve the above problem, the present invention further provides a front-end monitoring apparatus, including:
the object identification module is used for acquiring a monitoring system and at least one front-end system to be monitored, and identifying a monitored object in the front-end system;
the path configuration module is used for registering an access path of the front-end system in the monitoring system and configuring a monitoring object path of the monitoring system in the monitoring object according to the access path;
a program configuration module, configured to configure a monitored object program of the monitored object in the monitoring system according to the configuration information of the monitored object;
and the object monitoring module is used for executing the monitoring of the monitored object according to the monitored object path and the monitored object program to obtain a monitoring result.
In order to solve the above problem, the present invention also provides an electronic device, including:
at least one processor; and (c) a second step of,
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to implement the front-end monitoring method as described above.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the front-end monitoring method described above.
The embodiment of the invention firstly obtains a monitoring system and at least one front-end system to be monitored, identifies a monitoring object in the front-end system so as to obtain a specific target to be monitored by the front-end system and guarantee the monitoring premise of the front-end system; secondly, in the embodiment of the present invention, an access path of the front-end system is registered in the monitoring system, a monitoring object path of the monitoring system in the monitoring object is configured according to the access path, and a monitoring object program of the monitoring object is configured in the monitoring system in combination with configuration information of the monitoring object, so that the front-end system can be registered in the monitoring system, and the monitoring system does not need to be created in the front-end system, thereby enabling monitoring of the front-end system to be more flexible and improving monitoring efficiency of the front-end system. Therefore, the front-end monitoring method, the front-end monitoring device, the electronic equipment and the storage medium provided by the invention can realize flexible monitoring of the front-end system and improve the monitoring efficiency of the front-end system.
Drawings
Fig. 1 is a schematic flow chart of a front-end monitoring method according to an embodiment of the present invention;
FIG. 2 is a detailed flowchart illustrating a step of the front-end monitoring method provided in FIG. 1 according to a first embodiment of the present invention;
fig. 3 is a schematic block diagram of a front-end monitoring apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an internal structure of an electronic device implementing a front-end monitoring method according to an embodiment of the present invention;
the implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
The embodiment of the application provides a front-end monitoring method. The execution subject of the front-end monitoring method includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiments of the present application. In other words, the front-end monitoring method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Fig. 1 is a schematic flow chart of a front-end monitoring method according to an embodiment of the present invention. In the embodiment of the present invention, the front-end monitoring method includes:
s1, acquiring a monitoring system and at least one front-end system to be monitored, and identifying a monitored object in the front-end system.
In the embodiment of the present invention, the monitoring system is a software platform for monitoring a front-end page system, and the monitoring system can be obtained by downloading and compiling a source code from an open-source code library, and optionally, the code library is a Github open-source code library. The front-end system to be monitored refers to a system which can normally run in a browser, such as a customer management system, an ERP system, a mall system and the like, the monitored object refers to an object which needs to be monitored in the front-end system, and the running condition of the front-end system can be reflected based on the monitored object. Furthermore, the embodiment of the invention can simultaneously monitor a plurality of front-end systems by acquiring at least one front-end system to be monitored, thereby improving the monitoring efficiency of the front-end systems.
In one embodiment of the present invention, referring to fig. 2, the identifying the monitoring object in the front-end system includes:
s20, responding to a monitoring request of the front-end system, and acquiring a monitoring type of the monitoring request;
s21, inquiring a monitoring event of the front-end system according to the monitoring type;
and S22, obtaining a monitoring object of the front-end system according to the monitoring event.
In an optional embodiment, the monitoring request is generated based on different user requirements, for example, the requirement of the user a is performance monitoring of a monitoring front-end system, and the requirement of the user B is monitoring an abnormal event of the monitoring front-end system, where the monitoring types include performance monitoring, abnormal monitoring, and data monitoring, where the performance monitoring includes: system loading monitoring, system rendering time monitoring, system data interaction response monitoring and the like, wherein the abnormity monitoring comprises the following steps: the method comprises the steps of system page white screen monitoring, browser compatibility monitoring, system call request monitoring and the like, wherein the data monitoring refers to behavior data monitoring of a user on a front-end page. Further, in another optional embodiment of the present invention, the monitoring type of the monitoring request is obtained by identifying a field of the monitoring request.
In an optional embodiment, the querying, according to the monitoring type, a monitoring event of the front-end system includes: and acquiring a monitoring field of the monitoring type, and searching a monitoring event corresponding to the monitoring type in a compiling environment of the front-end system according to the monitoring field. The monitoring event refers to a response event compiled in the front-end system in advance, such as a data transmission event, a data calling event, a system operation event, a system interaction event, and the like.
In an optional embodiment, the generating a monitoring object of the front-end system according to the monitoring event includes: and extracting a monitoring index from the monitoring event by using an extraction instruction to obtain the monitored object. The monitoring index refers to a target which needs to be monitored specifically, such as a system form, a system page, a system call path and the like.
S2, registering an access path of the front-end system in the monitoring system, and configuring a monitoring object path of the monitoring system in the monitoring object according to the access path.
It should be understood that data interaction between multiple systems is realized through access paths between the systems, and therefore, the invention registers the access path of the front-end system in the monitoring system to realize data interaction between the monitoring system and the front-end system, which can avoid creating a monitoring system in a platform corresponding to the front-end system, and improve the monitoring flexibility of the front-end system.
In one embodiment of the present invention, the registering, in the monitoring system, an access path of the head-end system includes: acquiring system information of the front-end system, inquiring a configuration route of the front-end system according to the system information, and loading the configuration route in a compiling environment in the monitoring system to obtain an access path of the monitoring system in the front-end system.
Wherein the system information refers to configuration parameters for operating the front-end system, and includes: system configuration file parameters and operating environment parameters.
Further, in this embodiment of the present invention, before querying the configured route of the front-end system according to the system information, the method further includes: and inquiring interface information of the front-end system according to the operating environment parameters of the system information, inquiring a URL (uniform resource locator) address of the front-end system according to configuration file parameters of the system information, and obtaining a configuration route of the front-end system according to the interface information and the URL address. The interface information, the configuration file parameter, and the configuration route may be implemented by a query instruction, such as a get instruction.
In an alternative embodiment, the loading of the configuration route may be implemented by a load function, such as a load () function.
Further, in the embodiment of the present invention, the monitoring object path of the monitoring system in the monitoring object is configured according to the access path, so as to implement monitoring of all monitoring objects of the front-end system by the monitoring system, and when the monitoring system is abnormal, it can be known which specific node of the front-end system is quickly found out, so that a user can be helped to quickly solve the problem of abnormality of the front-end system.
In one embodiment of the present invention, the configuring, according to the access path, a monitoring object path of the monitoring system in the monitoring object includes: and establishing a monitoring node of the monitoring object, and establishing a connection path of the monitoring node in the monitoring system according to the access path to obtain the monitoring object path.
The monitoring node is configured to characterize a unique identifier of the monitored object, and the connection path refers to an auxiliary path under the access path, that is, the access path is used as a main path, and the connection path is used as a sub-path.
And S3, configuring a monitoring object program of the monitoring object in the monitoring system according to the configuration information of the monitoring object.
In this embodiment of the present invention, the configuration information refers to a generation logic of the monitoring object, for example, if the monitoring object is a page form, the configuration information of the page form includes: and the form generator, the form drop-down box, the form style and the like can know the operation logic of the monitored object based on the configuration information, so that a corresponding monitoring tool can be configured in the monitored object, and the real-time monitoring of the monitored object is realized.
In one embodiment of the present invention, the configuring, in the monitoring system, the monitored object program of the monitored object according to the configuration information of the monitored object includes: and acquiring configuration parameters of the configuration information, constructing a monitoring object script and a monitoring object tool in the monitoring system according to the configuration parameters, and generating a monitoring object program of the monitoring object.
The configuration parameters are acquired based on different service scenes and refer to operation parameters of an operation environment of the configuration information in the monitoring object, the monitoring object script is obtained through JavaScript language compiling, and the monitoring object tool is obtained through Java language compiling.
And S4, executing the monitoring of the monitored object according to the monitored object path and the monitored object program to obtain a monitoring result.
In an embodiment of the present invention, the performing monitoring on the monitored object according to the monitored object path and the monitored object program to obtain a monitoring result includes: and loading the running data of the monitored object by using the monitored object script in the monitored object program according to the monitored object path, and monitoring the running data by using the monitored object tool in the monitored object program to obtain a monitoring result.
Wherein the operational data comprises: and performance data and behavior data, wherein whether the monitored object is abnormal or not can be judged by monitoring the operation data, so that a user can be helped to quickly solve the problem that the abnormal monitored object exists.
Further, in order to ensure privacy and security of the monitoring result, the monitoring result may also be stored in a blockchain node.
Further, in another optional implementation of the present invention, the monitoring of the abnormality of the object comprises: form engine exceptions, page white screen exceptions, and browser exceptions, wherein the form engine exceptions include: the form engine path exception, the height exception, the loading time is too long, and the like, the page white screen exception comprises a code logic exception, and the browser exception comprises a compatibility exception.
The embodiment of the invention firstly obtains a monitoring system and at least one front-end system to be monitored, identifies a monitoring object in the front-end system so as to obtain a specific target to be monitored by the front-end system and guarantee the monitoring premise of the front-end system; secondly, in the embodiment of the present invention, an access path of the front end system is registered in the monitoring system, a monitoring object path of the monitoring system in the monitoring object is configured according to the access path, and a monitoring object program of the monitoring object is configured in the monitoring system in combination with configuration information of the monitoring object, so that the front end system can be registered in the monitoring system, and the monitoring system does not need to be created in the front end system, thereby enabling monitoring of the front end system to be more flexible, and improving monitoring efficiency of the front end system. Therefore, the front-end monitoring method provided by the invention can realize flexible monitoring of the front-end system and improve the monitoring efficiency of the front-end system.
Fig. 3 is a functional block diagram of the front end monitoring apparatus according to the present invention.
The front-end monitoring apparatus 100 of the present invention may be installed in an electronic device. According to the implemented functions, the front-end monitoring apparatus may include an object recognition module 101, a path configuration module 102, a program configuration module 103, and an object monitoring module 104. A module according to the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and can perform a fixed function, and are stored in a memory of the electronic device.
In the present embodiment, the functions of the respective modules/units are as follows:
the object identification module 101 is configured to obtain a monitoring system and at least one front-end system to be monitored, and identify a monitored object in the front-end system.
In the embodiment of the present invention, the monitoring system is a software platform for monitoring a front-end page system, and the monitoring system can be obtained by downloading and compiling a source code from an open-source code library, and optionally, the code library is a Github open-source code library. The front-end system to be monitored refers to a system which can normally run in a browser, such as a customer management system, an ERP system, a mall system and the like, the monitored object refers to an object which needs to be monitored in the front-end system, and the running condition of the front-end system can be reflected based on the monitored object. Furthermore, the embodiment of the invention can simultaneously monitor a plurality of front-end systems by acquiring at least one front-end system to be monitored, thereby improving the monitoring efficiency of the front-end systems.
In one embodiment of the present invention, the identifying the monitoring object in the front-end system is performed by the module 101 in the following manner:
step I, responding to a monitoring request of the front-end system, and acquiring a monitoring type of the monitoring request;
step II, inquiring the monitoring event of the front-end system according to the monitoring type;
and III, obtaining a monitoring object of the front-end system according to the monitoring event.
In an optional embodiment, the monitoring request is generated based on different user requirements, for example, the requirement of the user a is performance monitoring of a monitoring front-end system, the requirement of the user B is monitoring an abnormal event of the monitoring front-end system, and the monitoring types include performance monitoring, abnormal monitoring and data monitoring, where the performance monitoring includes: system loading monitoring, system rendering time monitoring, system data interaction response monitoring and the like, wherein the abnormity monitoring comprises the following steps: the method comprises the steps of system page white screen monitoring, browser compatibility monitoring, system call request monitoring and the like, wherein the data monitoring refers to behavior data monitoring of a user on a front-end page. Further, the object identification module 101 obtains the monitoring type of the monitoring request by identifying a field of the monitoring request.
In an optional embodiment, the querying for the monitoring event of the front-end system according to the monitoring type includes: and acquiring the monitoring field of the monitoring type, and searching the monitoring event corresponding to the monitoring type in the compiling environment of the front-end system according to the monitoring field. The monitoring event refers to a response event compiled in the front-end system in advance, such as a data transmission event, a data calling event, a system operation event, a system interaction event, and the like.
In an optional embodiment, the monitoring object of the front-end system is generated according to the monitoring event, and the object identification module 101 performs the following steps: and extracting a monitoring index from the monitoring event by using an extraction instruction to obtain the monitored object. The monitoring index refers to a target which needs to be monitored specifically, such as a system form, a system page, a system call path and the like.
The path configuration module 102 is configured to register an access path of the front-end system in the monitoring system, and configure a monitoring object path of the monitoring system in the monitoring object according to the access path.
It should be understood that data interaction between multiple systems is realized through an access path between the systems, and therefore, the data interaction between the monitoring system and the front-end system is realized by registering the access path of the front-end system in the monitoring system, so that a monitoring system can be prevented from being created in a platform corresponding to the front-end system, and the monitoring flexibility of the front-end system is improved.
In one embodiment of the present invention, the registering an access path of the head-end system in the monitoring system is performed by the path configuration module 102 in the following manner: acquiring system information of the front-end system, inquiring a configuration route of the front-end system according to the system information, and loading the configuration route in a compiling environment in the monitoring system to obtain an access path of the monitoring system in the front-end system.
Wherein the system information refers to configuration parameters for operating the front-end system, and includes: system configuration file parameters and operating environment parameters.
Further, in this embodiment of the present invention, before querying the configured route of the front-end system according to the system information, the method further includes: and inquiring interface information of the front-end system according to the operating environment parameters of the system information, inquiring a URL (uniform resource locator) address of the front-end system according to configuration file parameters of the system information, and obtaining a configuration route of the front-end system according to the interface information and the URL address. The interface information, the configuration file parameter, and the configuration route may be implemented by a query instruction, such as a get instruction.
In an alternative embodiment, the loading of the configuration route may be implemented by a load function, such as a load () function.
Furthermore, in the embodiment of the present invention, the monitoring object path of the monitoring system in the monitoring object is configured according to the access path, so as to implement monitoring of all monitoring objects of the front-end system by the monitoring system, and when the monitoring system is abnormal, it can be known which specific node of the front-end system is abnormal is quickly found, thereby helping a user quickly solve the abnormal problem of the front-end system.
In one embodiment of the present invention, the configuring a monitoring object path of the monitoring system in the monitoring object according to the access path is performed by the path configuring module 102 in the following manner: and establishing a monitoring node of the monitoring object, and establishing a connection path of the monitoring node in the monitoring system according to the access path to obtain the monitoring object path.
The monitoring node is configured to characterize a unique identifier of the monitored object, and the connection path refers to an auxiliary path under the access path, that is, the access path is used as a main path, and the connection path is used as a sub-path.
The program configuration module 103 is configured to configure a monitored object program of the monitored object in the monitoring system according to the configuration information of the monitored object.
In this embodiment of the present invention, the configuration information refers to a generation logic of the monitoring object, for example, if the monitoring object is a page form, the configuration information of the page form includes: and based on the configuration information, the operation logic of the monitored object can be known, so that a corresponding monitoring tool can be configured in the monitored object, and the real-time monitoring of the monitored object is realized.
In one embodiment of the present invention, the configuring the monitored object program of the monitored object in the monitoring system according to the configuration information of the monitored object, and the program configuring module 103 executes the following steps: and acquiring configuration parameters of the configuration information, constructing a monitoring object script and a monitoring object tool in the monitoring system according to the configuration parameters, and generating a monitoring object program of the monitoring object.
The configuration parameters are acquired based on different service scenes and refer to operation parameters of an operation environment of the configuration information in the monitoring object, the monitoring object script is obtained through JavaScript language compiling, and the monitoring object tool is obtained through Java language compiling.
The object monitoring module 104 is configured to execute monitoring of the monitored object according to the monitored object path and the monitored object program, so as to obtain a monitoring result.
In this embodiment of the present invention, the monitoring of the monitored object is executed according to the monitored object path and the monitored object program to obtain a monitoring result, and the object monitoring module 104 is executed in the following manner: and loading the running data of the monitored object by using the monitored object script in the monitored object program according to the monitored object path, and monitoring the running data by using the monitored object tool in the monitored object program to obtain a monitoring result.
Wherein the operational data comprises: and performance data and behavior data, wherein whether the monitored object is abnormal or not can be judged by monitoring the operation data, so that a user can be helped to quickly solve the problem that the abnormal monitored object exists.
Further, in order to ensure privacy and security of the monitoring result, the monitoring result may also be stored in a blockchain node.
Further, in another optional implementation of the present invention, the monitoring of the abnormality of the object comprises: form engine exceptions, page white screen exceptions, and browser exceptions, wherein the form engine exceptions include: the form engine path exception, the high exception, the overlong loading time and the like, the page white screen exception comprises a code logic exception, and the browser exception comprises a compatibility exception.
The embodiment of the invention firstly obtains a monitoring system and at least one front-end system to be monitored, identifies a monitoring object in the front-end system so as to obtain a specific target to be monitored by the front-end system and guarantee the monitoring premise of the front-end system; secondly, in the embodiment of the present invention, an access path of the front end system is registered in the monitoring system, a monitoring object path of the monitoring system in the monitoring object is configured according to the access path, and a monitoring object program of the monitoring object is configured in the monitoring system in combination with configuration information of the monitoring object, so that the front end system can be registered in the monitoring system, and the monitoring system does not need to be created in the front end system, thereby enabling monitoring of the front end system to be more flexible, and improving monitoring efficiency of the front end system. Therefore, the front-end monitoring device provided by the invention can realize flexible monitoring of the front-end system and improve the monitoring efficiency of the front-end system.
Fig. 4 is a schematic structural diagram of an electronic device implementing the front-end monitoring method according to the present invention.
The electronic device may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as a front-end monitoring program, stored in the memory 11 and operable on the processor 10.
In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, a combination of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (e.g., executing a front end monitor program, etc.) stored in the memory 11 and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, and the like. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as codes of a front-end monitoring program, but also to temporarily store data that has been output or will be output.
The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
The communication interface 13 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are commonly used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit, such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
Fig. 4 shows only an electronic device with components, and those skilled in the art will appreciate that the structure shown in fig. 4 is not limiting to the electronic device, and may include fewer or more components than shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions such as charge management, discharge management, and power consumption management are implemented through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The front-end monitoring program stored in the memory 11 of the electronic device is a combination of a plurality of computer programs, which when executed in the processor 10, can implement:
acquiring a monitoring system and at least one front-end system to be monitored, and identifying a monitored object in the front-end system;
registering an access path of the front-end system in the monitoring system, and configuring a monitoring object path of the monitoring system in the monitoring object according to the access path;
configuring a monitoring object program of the monitoring object in the monitoring system according to the configuration information of the monitoring object;
and executing the monitoring of the monitored object according to the monitored object path and the monitored object program to obtain a monitoring result.
Specifically, the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer program, which is not described herein again.
Further, the electronic device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a non-volatile computer-readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, a recording medium, a usb-disk, a removable hard disk, a magnetic diskette, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:
acquiring a monitoring system and at least one front-end system to be monitored, and identifying a monitored object in the front-end system;
registering an access path of the front-end system in the monitoring system, and configuring a monitoring object path of the monitoring system in the monitoring object according to the access path;
configuring a monitoring object program of the monitoring object in the monitoring system according to the configuration information of the monitoring object;
and executing the monitoring of the monitored object according to the monitored object path and the monitored object program to obtain a monitoring result.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not to denote any particular order.
Finally, it should be noted that the above embodiments are only intended to illustrate the technical solutions of the present invention and not to limit the same, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (9)

1. A front-end monitoring method, the method comprising:
acquiring a monitoring system and at least one front-end system to be monitored, and identifying a monitored object in the front-end system;
acquiring system information of the front-end system, inquiring a configuration route of the front-end system according to the system information, loading the configuration route in a compiling environment in the monitoring system to obtain an access path of the monitoring system in the front-end system, registering the access path of the front-end system in the monitoring system, and configuring a monitoring object path of the monitoring system in the monitoring object according to the access path, wherein the system information refers to configuration parameters for operating the front-end system and comprises system configuration file parameters and operating environment parameters;
configuring a monitoring object program of the monitoring object in the monitoring system according to the configuration information of the monitoring object;
and executing the monitoring of the monitored object according to the monitored object path and the monitored object program to obtain a monitoring result.
2. The front-end monitoring method of claim 1, wherein the identifying the monitored object in the front-end system comprises:
responding to a monitoring request of the front-end system, and acquiring a monitoring type of the monitoring request;
inquiring a monitoring event of the front-end system according to the monitoring type;
and obtaining a monitoring object of the front-end system according to the monitoring event.
3. The front-end monitoring method of claim 2, wherein before querying the configured route of the front-end system according to the system information, further comprising:
inquiring interface information of the front-end system according to the operating environment parameters of the system information;
inquiring the URL address of the front-end system according to the configuration file parameter of the system information;
and obtaining the configuration route of the front-end system according to the interface information and the URL address.
4. The front-end monitoring method of claim 1, wherein the configuring the monitoring object path of the monitoring system in the monitoring object according to the access path comprises:
and establishing a monitoring node of the monitoring object, and establishing a connection path of the monitoring node in the monitoring system according to the access path to obtain the monitoring object path.
5. The front-end monitoring method of claim 1, wherein configuring the monitored object program of the monitored object in the monitoring system according to the configuration information of the monitored object comprises:
and acquiring configuration parameters of the configuration information, constructing a monitoring object script and a monitoring object tool in the monitoring system according to the configuration parameters, and generating a monitoring object program of the monitoring object.
6. The front-end monitoring method according to any one of claims 1 to 5, wherein the performing the monitoring of the monitored object according to the monitored object path and the monitored object program to obtain a monitoring result includes:
loading the running data of the monitored object by using the monitored object script in the monitored object program according to the monitored object path;
and monitoring the running data by using a monitoring object tool in the monitoring object program to obtain a monitoring result.
7. A front-end monitoring device, the device comprising:
the object identification module is used for acquiring a monitoring system and at least one front-end system to be monitored, and identifying a monitored object in the front-end system;
a path configuration module, configured to obtain system information of the front-end system, query a configuration route of the front-end system according to the system information, load the configuration route in a compiling environment of the monitoring system to obtain an access path of the monitoring system in the front-end system, register the access path of the front-end system in the monitoring system, and configure a monitoring object path of the monitoring system in the monitoring object according to the access path, where the system information refers to configuration parameters for running the front-end system, and includes system configuration file parameters and running environment parameters;
a program configuration module, configured to configure a monitored object program of the monitored object in the monitoring system according to the configuration information of the monitored object;
and the object monitoring module is used for executing the monitoring of the monitored object according to the monitored object path and the monitored object program to obtain a monitoring result.
8. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the front end monitoring method as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the front-end monitoring method according to any one of claims 1 to 6.
CN202110438232.5A 2021-04-22 2021-04-22 Front-end monitoring method and device, electronic equipment and storage medium Active CN113064797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110438232.5A CN113064797B (en) 2021-04-22 2021-04-22 Front-end monitoring method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110438232.5A CN113064797B (en) 2021-04-22 2021-04-22 Front-end monitoring method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113064797A CN113064797A (en) 2021-07-02
CN113064797B true CN113064797B (en) 2023-02-03

Family

ID=76567584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110438232.5A Active CN113064797B (en) 2021-04-22 2021-04-22 Front-end monitoring method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113064797B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168159A (en) * 2014-08-19 2014-11-26 吴志辉 Intelligent household equipment system networking and remote monitoring and managing method based on Internet of Things
CN110489304A (en) * 2019-08-26 2019-11-22 北京市燃气集团有限责任公司 The monitoring method and device of resource access state between system
CN110708368A (en) * 2019-09-25 2020-01-17 北京计算机技术及应用研究所 Micro front-end system and method based on routing distribution
JP2020030628A (en) * 2018-08-23 2020-02-27 富士通株式会社 Monitoring system, monitoring method, and monitoring program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7898419B2 (en) * 2007-07-27 2011-03-01 Lucomm Technologies, Inc. Systems and methods for object localization and path identification based on RFID sensing
CN104678868B (en) * 2015-01-23 2017-11-10 贾新勇 A kind of business and equipment O&M monitoring system
CN107395687B (en) * 2017-06-28 2021-07-06 珠海格力电器股份有限公司 Equipment monitoring method, device and system and air conditioner
CN107992398B (en) * 2017-12-22 2021-04-27 宜人恒业科技发展(北京)有限公司 Monitoring method and monitoring system of service system
CN111124819B (en) * 2019-12-10 2023-09-22 中国建设银行股份有限公司 Method and device for full link monitoring
CN112383531B (en) * 2020-11-09 2022-10-18 温州大学大数据与信息技术研究院 Monitoring system and monitoring system configuration method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168159A (en) * 2014-08-19 2014-11-26 吴志辉 Intelligent household equipment system networking and remote monitoring and managing method based on Internet of Things
JP2020030628A (en) * 2018-08-23 2020-02-27 富士通株式会社 Monitoring system, monitoring method, and monitoring program
CN110489304A (en) * 2019-08-26 2019-11-22 北京市燃气集团有限责任公司 The monitoring method and device of resource access state between system
CN110708368A (en) * 2019-09-25 2020-01-17 北京计算机技术及应用研究所 Micro front-end system and method based on routing distribution

Also Published As

Publication number Publication date
CN113064797A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN112134739B (en) Link state tracking method and device, electronic equipment and computer storage medium
CN113138929A (en) Distributed interface testing method and device, electronic equipment and storage medium
CN112506779A (en) Software interface testing method and device, electronic equipment and storage medium
CN112506559A (en) Gray scale publishing method and device based on gateway, electronic equipment and storage medium
CN112650909A (en) Product display method and device, electronic equipment and storage medium
CN113468175A (en) Data compression method and device, electronic equipment and storage medium
CN112579475A (en) Code testing method, device, equipment and readable storage medium
CN111985194A (en) Data storage method and device, electronic equipment and storage medium
CN113064797B (en) Front-end monitoring method and device, electronic equipment and storage medium
CN114727100B (en) Joint debugging method and device for monitoring equipment
CN114911479A (en) Interface generation method, device, equipment and storage medium based on configuration
CN114896164A (en) Interface optimization method and device, electronic equipment and storage medium
CN115033489A (en) Code resource detection method and device, electronic equipment and storage medium
CN115220740A (en) Database environment deployment method and device, electronic equipment and storage medium
CN115145870A (en) Method and device for positioning reason of failed task, electronic equipment and storage medium
CN114185588A (en) Incremental package generation method, device, equipment and storage medium
CN112686759A (en) Account checking monitoring method, device, equipment and medium
CN113051171A (en) Interface test method, device, equipment and storage medium
CN113469649A (en) Project progress analysis method and device, electronic equipment and storage medium
CN112527443A (en) Prompt box display method and device, electronic equipment and computer readable storage medium
CN112527655A (en) Software version quality abnormity detection method and device, electronic equipment and storage medium
CN112685384A (en) Data migration method and device, electronic equipment and storage medium
CN112667244A (en) Data verification method and device, electronic equipment and computer readable storage medium
CN114185748A (en) System monitoring method and device, electronic equipment and storage medium
CN114595106B (en) Service control equipment debugging method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant