A method, device and system for monitoring application interface data
Through the combination of spring interceptor and metrics interface, the problem of cumbersome application interface monitoring configuration in the existing technology is solved, and efficient and unified monitoring of target applications is achieved.
Patent Information
- Application Number
- CN202110669273.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-16
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-06-16
AI Technical Summary
When the existing technology monitors application interfaces, the configuration is cumbersome and inconsistent, making it difficult to efficiently monitor different interfaces.
The interface of the target application is intercepted through the spring interceptor, and the target parameters in the spring bean container are obtained. After summary processing, the software is stored and monitored through the metrics interface to prometheus.
It achieves effective interception and unified configuration of various types of services of target applications, improving the efficiency and convenience of monitoring.
Smart Images

Figure CN113590409B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a method, device and system for monitoring application interface data. Background Art
[0002] In the field of application monitoring technology, multiple technical means are often used to monitor application interfaces. However, the monitoring methods for different application interfaces may be different. For example, the fourth-layer interface can be monitored by extending dubbofilter, and the seventh-layer interface can be monitored by webfilter. This implementation method requires the configuration of the two interfaces separately, and the technology is not unified and is relatively cumbersome.
[0003] How to efficiently configure the application interface to be monitored is the technical problem to be solved by this application. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method, device and system for monitoring application interface data, so as to solve the problem of complicated configuration of the application interface to be monitored.
[0005] In a first aspect, a method for monitoring application interface data is provided, comprising:
[0006] Intercepting a spring bean container of at least one interface of a target application through a spring interceptor to obtain a target parameter in the spring bean container, wherein the target parameter represents a running state of the target application;
[0007] Performing aggregation processing on the target parameters to obtain aggregated target parameters;
[0008] Providing the aggregated target parameters to the prometheus monitoring software through the metrics interface to store the aggregated target parameters in a database of the prometheus monitoring software;
[0009] The target application is monitored according to the aggregated target parameters stored in the database of the prometheus monitoring software.
[0010] In a second aspect, a monitoring device for application interface data is provided, comprising:
[0011] An interception module, which intercepts a spring bean container of at least one interface of a target application through a spring interceptor to obtain a target parameter in the spring bean container, wherein the target parameter represents a running state of the target application;
[0012] A summarizing module performs summarizing processing on the target parameters to obtain summarized target parameters;
[0013] Providing a module, providing the summarized target parameters to the prometheus monitoring software through the metrics interface, so as to store the summarized target parameters in the database of the prometheus monitoring software;
[0014] A monitoring module monitors the target application according to the aggregated target parameters stored in a database of the prometheus monitoring software.
[0015] In a third aspect, a monitoring system for application interface data is provided, including:
[0016] The monitoring device for application interface data as described in the second aspect;
[0017] at least one application module in communication with the monitoring device for the application interface data, the target application running on the application module;
[0018] A monitoring module is communicatively connected to the monitoring device of the application interface data, and the prometheus monitoring software runs on the monitoring module.
[0019] In a fourth aspect, an electronic device is provided, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the method of the first aspect when executed by the processor.
[0020] In a fifth aspect, 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 steps of the method of the first aspect are implemented.
[0021] In an embodiment of the present application, the spring bean container of at least one interface of the target application is intercepted by a spring interceptor to obtain the target parameters in the spring bean container, the target parameters representing the running state of the target application; the target parameters are aggregated to obtain the aggregated target parameters; the aggregated target parameters are provided to the prometheus monitoring software through the metrics interface to store the aggregated target parameters in the database of the prometheus monitoring software; the target application is monitored according to the aggregated target parameters stored in the database of the prometheus monitoring software. This solution intercepts the target application interface through a spring interceptor to achieve effective interception of various types of services of the target application. Providing the target parameters to the prometheus monitoring software through the metrics interface can facilitate the monitoring software to obtain the target parameters with a unified interface, and can perform efficient and unified configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0023] Figure 1a This is one of the flow charts of a method for monitoring application interface data according to an embodiment of the present invention;
[0024] Figure 1b It is one of the logical schematic diagrams of a method for monitoring application interface data according to an embodiment of the present invention;
[0025] Figure 1c This is a second logical diagram of a method for monitoring application interface data according to an embodiment of the present invention;
[0026] Figure 2a This is a second flow chart of a method for monitoring application interface data according to an embodiment of the present invention;
[0027] Figure 2b This is a third logical diagram of a method for monitoring application interface data according to an embodiment of the present invention;
[0028] Figure 3 This is a third flow chart of a method for monitoring application interface data according to an embodiment of the present invention;
[0029] Figure 4 This is a fourth flow chart of a method for monitoring application interface data according to an embodiment of the present invention;
[0030] Figure 5a This is a fifth flow chart of a method for monitoring application interface data according to an embodiment of the present invention;
[0031] Figure 5b It is one of the program example diagrams of a method for monitoring application interface data according to an embodiment of the present invention;
[0032] Figure 6a This is a sixth flow chart of a method for monitoring application interface data according to an embodiment of the present invention;
[0033] Figure 6b This is a second program example diagram of a method for monitoring application interface data according to an embodiment of the present invention;
[0034] Figure 7 It is a structural schematic diagram of a monitoring device for application interface data according to an embodiment of the present invention;
[0035] Figure 8It is a structural diagram of a monitoring system for application interface data according to an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. The figure numbers in this application are only used to distinguish the various steps in the scheme, and are not used to limit the execution order of the various steps. The specific execution order is subject to the description in the specification.
[0037] In order to solve the problems existing in the prior art, the present application embodiment provides a monitoring method for application interface data, such as Figure 1a As shown, including:
[0038] S11: intercepting a spring bean container of at least one interface of a target application through a spring interceptor to obtain target parameters in the spring bean container, where the target parameters represent a running state of the target application.
[0039] The target application may be a single type of application or multiple different types of applications. In the embodiment of the present application, it is assumed that the target application is a Java application to illustrate the present solution.
[0040] Since the characteristic of the spring interceptor is to intercept spring beans, the target application uses beans to implement both http services and RPC services. Therefore, the spring interceptor used in the embodiment of the present application can intercept all types of services and improve the effectiveness of interception.
[0041] S12: performing aggregation processing on the target parameters to obtain aggregated target parameters.
[0042] Among them, the target parameters can be aggregated according to the time of interception and the type of interception.
[0043] S13: providing the summarized target parameters to the prometheus monitoring software through the metrics interface, so as to store the summarized target parameters in a database of the prometheus monitoring software.
[0044] In practical applications, there are many types of applicable monitoring components, such as prometheus, zabbix, Open-falcon, etc. The solution provided in the embodiment of the present application uses prometheus monitoring software to realize data storage and subsequent processing. Prometheus monitoring software has powerful functions. It not only provides rich exports to monitor most mainstream middleware, but also provides metrics specifications, which can be widely used in various scenarios. As long as the corresponding interface is provided according to the specification, prometheus can realize monitoring according to demand.
[0045] In this step, the summarized target parameters can be sent to prometheus through the metrics interface, so that prometheus passively receives the above-summarized target parameters. The summarized target parameters can also be temporarily stored, and after receiving a request from prometheus, the temporarily stored summarized target parameters are sent to prometheus in response to the request, so that the summarized target parameters are stored in the database of the prometheus monitoring software.
[0046] S14: Monitoring the target application according to the summarized target parameters stored in the database of the prometheus monitoring software.
[0047] See also Figure 1b In the solution provided in the embodiment of the present application, the execution subject may be sentry, which is prometheus export. Figure 1b Sentry is marked as sentrySDK. Java applications provide standard metrics interfaces to prometheus server by referencing sentry, so that prometheus can pull data through the interface regularly and store it in the prometheus database. The data stored in the above database is further used to monitor the target application, such as the number of requests per second (Query Per Second, QPS), response time (Reaction Time, RT), error code, etc. The above QPS refers to the peak number of requests sent to the service per second, which is equivalent to the upper limit of concurrent requests allowed per interface per second. The above RT refers to the time it takes for the interface to respond to the request. There are many types of interface error codes, which can usually be used to determine the abnormal state of the interface.
[0048] The execution subject sentry in the embodiment of the present application can be a self-developed export of prometheus. As long as the corresponding interface is implemented according to the specifications specified by prometheus, it can be implemented in either java or golang language, and can be freely selected according to actual needs. For example, when the target application is a java application, it can be implemented in java. By referencing sentry in the java application, the above-mentioned monitoring indicators of this java application can be collected.
[0049] In addition, in order to facilitate the staff to set up monitoring and view monitoring results, Prometheus can also send the monitoring results to the Grafana display tool for display to the staff.
[0050] In an embodiment of the present application, the spring bean container of at least one interface of the target application is intercepted by a spring interceptor to obtain the target parameters in the spring bean container, the target parameters representing the running state of the target application; the target parameters are aggregated to obtain the aggregated target parameters; the aggregated target parameters are provided to the prometheus monitoring software through the metrics interface to store the aggregated target parameters in the database of the prometheus monitoring software; the target application is monitored according to the aggregated target parameters stored in the database of the prometheus monitoring software. This solution intercepts the target application interface through a spring interceptor to achieve effective interception of various types of services of the target application. Providing the target parameters to the prometheus monitoring software through the metrics interface can facilitate the monitoring software to obtain the target parameters with a unified interface, and can perform efficient and unified configuration.
[0051] Based on the solution provided in the above embodiment, optionally, Figure 1c As shown, the target application includes a Java application, and the target parameter includes at least one of the following:
[0052] The access index of the application interface, the memory usage parameters of the Java virtual machine, the frequency of Java garbage collection, and the number of Java threads.
[0053] In an embodiment of the present application, the access indicators of the interface collected from the Java application may specifically include interface QPS, RT, error code, etc. The Java virtual machine memory usage parameters may specifically include the jvm memory usage status, such as total memory, used memory, remaining memory, etc. The frequency of Java garbage collection may include youngGC frequency and fullGC frequency. Among them, youngGC (new generation GC) refers to the garbage collection action occurring in the new generation, and Full GC (old generation GC): refers to the GC occurring in the old generation. The above-mentioned GC specifically refers to Garbage Collection. The above-mentioned number of Java threads is related to the load and the number of tasks.
[0054] The above target parameters are intercepted and obtained through the spring interceptor, whether it is a contronller that implements the seven-layer HTTP or a provider that implements the four-layer. After interception, the data is summarized and then spit out to Prometheus through the interface. In addition, in the actual implementation process, there are two configuration methods, one can be configured independently on the method, and the other is a global configuration that can collect all methods of the entire application.
[0055] Optionally, the above parameters such as gc times, number of threads, jvm memory, etc. can be obtained through JMX. JMX (Java Management Extensions) is a framework for embedding management functions for applications, devices, systems, etc. JMX can span a series of heterogeneous operating system platforms, system architectures, and network transmission protocols, and flexibly develop seamlessly integrated system, network, and service management applications.
[0056] Based on the solution provided in the above embodiment, optionally, Figure 2a As shown, in the above step S11, the spring bean container of at least one interface of the target application is intercepted by the spring interceptor, including:
[0057] S21: intercepting the springbean container of at least one interface of the target application through the spring interceptor and the filter, wherein the spring interceptor and the filter are used in turn to intercept the request message sent by the target application, and the filter and the spring interceptor are used in turn to intercept the feedback message received by the target application.
[0058] The filter filter described in the embodiment of the present application is often used to filter web services, and the spring interceptor can filter any method. In order to optimize the interception effect, the spring interceptor and the filter filter are applied simultaneously in the embodiment of the present application.
[0059] like Figure 2b As shown, in the solution provided by the embodiment of the present application, when the request enters, it first passes through the filter logic, and then passes through the spring interceptor. When returning, it first passes through the spring interceptor logic, and then passes through the interceptor processing logic and the filter filter, so as to achieve the target parameter interception when the request enters and returns.
[0060] Based on the solution provided in the above embodiment, optionally, Figure 3 As shown, in the above step S11, the spring bean container of at least one interface of the target application is intercepted by the spring interceptor, including:
[0061] S31: intercept the spring bean container of the four-layer interface and / or the seven-layer interface of the target application through the spring interceptor.
[0062] The feature of the above-mentioned spring interceptor is to intercept spring beans. Java applications use beans to implement both http services and RPC services, so the interceptor can intercept all types of services. Through the solution provided by the embodiment of the present application, the seven-layer http controller and the four-layer provider can be intercepted according to actual needs, which improves the interception effectiveness and facilitates the unified configuration of the four-layer and seven-layer interception.
[0063] Based on the solution provided in the above embodiment, optionally, Figure 4 As shown, the above step S12, performing aggregation processing on the target parameters to obtain the aggregated target parameters, includes:
[0064] S41: Determine a processing rule matching the target parameter according to the annotation identifier preconfigured for the target parameter;
[0065] S42: performing aggregation processing on the target parameters according to the processing rules to obtain aggregated target parameters.
[0066] The annotation identifiers and their matching processing rules in this embodiment can be pre-set according to needs, and the form of the above-mentioned annotation identifiers can also be personalized according to needs. The solution provided by the embodiment of the present application is explained below with reference to examples.
[0067] First, use asm technology to scan the .class file and register the beans containing @Component and @Controller, @Service, @Repository or other custom annotations with @Component in the beanFactory. Then, spring registers the processor. Next, instantiate the processor and put it in the beanPostFactory, and then we can use it in the class. Later, when the bean is created, the corresponding processor will be automatically called for processing.
[0068] Through the solution provided by the embodiment of the present application, the corresponding processor can be called by marking the above annotation mark to perform processing according to the matching processing rules. Among them, the above annotation mark can be converted into the original complex logic in the publishing stage, which makes it much simpler for developers to use and improves ease of use.
[0069] Through the solution provided by the embodiment of the present application, when using it, developers first reference sentry by referencing the sentry jar package in the java application through pom.xml. If only one interface is monitored, only @Monitor needs to be configured on the interface to implement the configuration. If there are multiple interfaces or all methods of classes under a certain path, com.onlymate.springboot.controller.*.* can be configured in this way. Just specify the path, and all classes and methods under the path can be intercepted to realize the collection and upload of indicators.
[0070] Based on the solution provided in the above embodiment, optionally, Figure 5a As shown, before the above step S11, it also includes:
[0071] S51: Send a registration message to the prometheus monitoring software, where the registration message includes information of at least one interface of the target application, so as to instruct the prometheus monitoring software to obtain the summarized target parameters from the at least one interface of the target application.
[0072] In the solution provided in the embodiment of the present application, when the service is started, the interface needs to be registered with prometheus to ensure that prometheus knows which interface to access to obtain the data. Figure 5b This shows an example of registering an interface to Prometheus.
[0073] Based on the solution provided in the above embodiment, optionally, Figure 6aAs shown, in the above step S13, the summarized target parameters are provided to the prometheus monitoring software through the metrics interface, including:
[0074] S61: receiving a target parameter acquisition request from the prometheus monitoring software for at least one interface of the target application;
[0075] S62: In response to the target parameter acquisition request, provide the summarized target parameters to the prometheus monitoring software through the metrics interface.
[0076] In the solution provided in the embodiment of the present application, Prometheus actively obtains the target parameters by sending a target parameter acquisition request, and Sentry feeds back the aggregated target parameters to Prometheus in response to the target parameter acquisition request.
[0077] For details, see Figure 6b When Sentry executes the interception, it obtains the interface name, accumulates the number of accesses to this interface and the number of successes and failures, and then stores them in the local memory. When Prometheus pulls, it feeds back the pre-stored target parameters and other information from the local memory to Prometheus.
[0078] In order to solve the problems existing in the prior art, such as Figure 7 As shown, the embodiment of the present application further provides a monitoring device 70 for application interface data, comprising:
[0079] An interception module 71 intercepts a spring bean container of at least one interface of a target application through a spring interceptor to obtain a target parameter in the spring bean container, wherein the target parameter represents a running state of the target application;
[0080] A summarizing module 72 performs summarizing processing on the target parameters to obtain summarized target parameters;
[0081] Providing module 73, providing the summarized target parameters to prometheus monitoring software through the metrics interface, so as to store the summarized target parameters in a database of the prometheus monitoring software;
[0082] The monitoring module 74 monitors the target application according to the summarized target parameters stored in the database of the prometheus monitoring software.
[0083] Through the device provided by the embodiment of the present application, the spring bean container of at least one interface of the target application is intercepted by the spring interceptor to obtain the target parameters in the spring bean container, and the target parameters represent the running state of the target application; the target parameters are summarized to obtain the summarized target parameters; the summarized target parameters are provided to the prometheus monitoring software through the metrics interface to store the summarized target parameters in the database of the prometheus monitoring software; the target application is monitored according to the summarized target parameters stored in the database of the prometheus monitoring software. This solution intercepts the target application interface through the spring interceptor to achieve effective interception of various types of services of the target application. Providing the target parameters to the prometheus monitoring software through the metrics interface can facilitate the monitoring software to obtain the target parameters with a unified interface, and can perform efficient and unified configuration.
[0084] In order to solve the problems existing in the prior art, such as Figure 8 As shown, the embodiment of the present application also provides a monitoring system for application interface data, including:
[0085] The monitoring device 81 for application interface data as described in any of the above embodiments;
[0086] at least one application module 82 in communication with the monitoring device for the application interface data, the application module running the target application;
[0087] A monitoring module 83 is communicatively connected to the monitoring device of the application interface data, and the prometheus monitoring software runs on the monitoring module.
[0088] Through the system provided by the embodiment of the present application, the spring bean container of at least one interface of the target application is intercepted by the spring interceptor to obtain the target parameters in the spring bean container, and the target parameters represent the running state of the target application; the target parameters are summarized to obtain the summarized target parameters; the summarized target parameters are provided to the prometheus monitoring software through the metrics interface to store the summarized target parameters in the database of the prometheus monitoring software; the target application is monitored according to the summarized target parameters stored in the database of the prometheus monitoring software. This solution intercepts the target application interface through the spring interceptor to achieve effective interception of various types of services of the target application. Providing the target parameters to the prometheus monitoring software through the metrics interface can facilitate the monitoring software to obtain the target parameters with a unified interface, and can perform efficient and unified configuration.
[0089] Preferably, an embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned embodiment of the method for monitoring application interface data are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0090] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned application interface data monitoring method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0091] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0092] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0093] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0094] The present invention is described with reference to the flowchart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0095] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0096] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0097] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for monitoring application interface data, characterized in that: include: Intercepting a spring bean container of at least one interface of a target application through a spring interceptor to obtain a target parameter in the spring bean container, wherein the target parameter represents a running state of the target application; Performing aggregation processing on the target parameters to obtain aggregated target parameters; Providing the aggregated target parameters to the prometheus monitoring software through the metrics interface to store the aggregated target parameters in a database of the prometheus monitoring software; Monitoring the target application according to the summarized target parameters stored in the database of the prometheus monitoring software; The step of intercepting the spring bean container of at least one interface of the target application by the spring interceptor includes: The spring bean container of at least one interface of the target application is intercepted by a spring interceptor and a filter, wherein the spring interceptor and the filter are used in turn to intercept the request message sent by the target application, and the filter and the spring interceptor are used in turn to intercept the feedback message received by the target application.
2. The method according to claim 1, characterized in that The spring interceptor intercepts the spring bean container of at least one interface of the target application, including: The spring interceptor is used to intercept the spring bean container of the target application's four-layer interface and / or seven-layer interface.
3. The method according to claim 1, characterized in that The target application includes a Java application, and the target parameter includes at least one of the following: The access index of the application interface, the memory usage parameters of the Java virtual machine, the frequency of Java garbage collection, and the number of Java threads.
4. The method according to claim 1, characterized in that The target parameters are aggregated to obtain aggregated target parameters, including: Determine a processing rule matching the target parameter according to the annotation identifier preconfigured for the target parameter; The target parameters are aggregated according to the processing rules to obtain aggregated target parameters.
5. The method according to any one of claims 1 to 4, characterized in that: Before the spring bean container of at least one interface of the target application is intercepted by the spring interceptor, it also includes: A registration message is sent to the prometheus monitoring software, where the registration message includes information of at least one interface of the target application, and the registration message is used to instruct the prometheus monitoring software to obtain the summarized target parameters from the at least one interface of the target application.
6. The method according to claim 5, characterized in that Providing the summarized target parameters to the prometheus monitoring software through the metrics interface includes: Receiving a target parameter acquisition request from the prometheus monitoring software for at least one interface of the target application; In response to the target parameter acquisition request, the aggregated target parameters are provided to the prometheus monitoring software through the metrics interface.
7. A monitoring device for application interface data, characterized in that: include: An interception module, which intercepts a spring bean container of at least one interface of a target application through a spring interceptor to obtain a target parameter in the spring bean container, wherein the target parameter represents a running state of the target application; A summarizing module performs summarizing processing on the target parameters to obtain summarized target parameters; Providing a module, providing the summarized target parameters to the prometheus monitoring software through the metrics interface, so as to store the summarized target parameters in the database of the prometheus monitoring software; A monitoring module monitors the target application according to the aggregated target parameters stored in the database of the prometheus monitoring software; Among them, the interception module is used to intercept the spring bean container of at least one interface of the target application through the spring interceptor and the filter filter, wherein the spring interceptor and the filter filter are used in turn to intercept the request message sent by the target application, and the filter filter and the spring interceptor are used in turn to intercept the feedback message received by the target application.
8. A monitoring system for application interface data, characterized in that: include: The monitoring device for application interface data according to claim 7; at least one application module in communication with the monitoring device for the application interface data, the target application running on the application module; A monitoring module is communicatively connected to the monitoring device of the application interface data, and the prometheus monitoring software runs on the monitoring module.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the method according to any one of claims 1 to 6 when executed by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Service call recording method and device, computer equipment and storage medium
CN110290212A
Automatic monitoring method and device, terminal equipment and computer storage medium
CN111026409A
