CN118012698A - Application data acquisition method, application monitoring method, electronic equipment and medium - Google Patents

Application data acquisition method, application monitoring method, electronic equipment and medium Download PDF

Info

Publication number
CN118012698A
CN118012698A CN202311842357.XA CN202311842357A CN118012698A CN 118012698 A CN118012698 A CN 118012698A CN 202311842357 A CN202311842357 A CN 202311842357A CN 118012698 A CN118012698 A CN 118012698A
Authority
CN
China
Prior art keywords
application
data
container
mirror image
probe
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.)
Pending
Application number
CN202311842357.XA
Other languages
Chinese (zh)
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.)
Xinao Xinzhi Technology Co ltd
Original Assignee
Xinao Xinzhi 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 Xinao Xinzhi Technology Co ltd filed Critical Xinao Xinzhi Technology Co ltd
Priority to CN202311842357.XA priority Critical patent/CN118012698A/en
Publication of CN118012698A publication Critical patent/CN118012698A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The specification relates to a data acquisition method, an application monitoring method, electronic equipment and a medium of an application. The container management platform is configured with an application container mirror image and a probe container mirror image, the application container mirror image is used for running mirror images of a plurality of application programs, and each application container mirror image is respectively configured with a static monitoring probe; probe container mirroring is used to run the mirror of the dynamic monitoring probe. The data acquisition method comprises the following steps: the probe container mirror image receives an application control instruction aiming at a specified application program so that the dynamic monitoring probe collects and transmits first type data of the specified application container mirror image; specifying an application container image is determined in the application container image based on the application identification in the application control instruction; the static monitoring probe collects and transmits second type data of the application container mirror image according to a preset collection mode. By the mode, the method can automatically collect the related data of a plurality of application programs of the service system, and the related data can be collected more comprehensively through the two probes.

Description

Application data acquisition method, application monitoring method, electronic equipment and medium
Technical Field
The present disclosure relates to the field of automation technologies, and in particular, to an application data collection method, an application monitoring method, an electronic device, and a medium.
Background
In the related art, fault problems are usually positioned by relying on index data before and after faults after the faults occur. However, this method can only analyze the problem after the fault occurs, and cannot pre-analyze the fault condition of the service system in advance.
If the service system is analyzed in advance, the service system needs to be continuously monitored and relevant data thereof needs to be collected. When monitoring the application of multiple service systems at the same time, it is generally only possible to configure a data transmission channel for each service system and access the corresponding database. The data acquisition mode is complex and can not comprehensively acquire the relevant data of the application.
Disclosure of Invention
The present specification aims to solve at least one of the technical problems in the related art to some extent. For this purpose, an object of the present specification is to propose a data acquisition method for application.
A second object of the present specification is to propose an application monitoring method.
A third object of the present specification is to propose a data acquisition device for use.
A fourth object of the present specification is to propose an application monitoring device.
A fifth object of the present specification is to propose an electronic device.
A sixth object of the present specification is to propose a computer readable storage medium.
In order to achieve the above objective, an embodiment of a first aspect of the present disclosure provides a data collection method for an application, where a container management platform is configured with an application container image and a probe container image, where the application container image is used for running images of a plurality of application programs, and each application container image is configured with a static monitoring probe; the probe container mirror image is used for running the mirror image of the dynamic monitoring probe; the method comprises the following steps: the probe container mirror image receives an application control instruction aiming at a specified application program so that the dynamic monitoring probe acquires and transmits first type data of the specified application container mirror image; wherein the specified application container image is determined in the application container image based on an application identification in the application control instruction; the designated application is one of the plurality of applications; and the static monitoring probe collects and transmits the second type data of the application container mirror image according to a preset collection mode.
In some embodiments of the present description, the application control instructions include a constraint set for the specified application container image; the probe container image receives an application control instruction for a specified application program, so that the dynamic monitoring probe collects and transmits first type data of the specified application container image, and the method comprises the following steps: under the condition that the probe container mirror image receives the application control instruction, analyzing the application control instruction to obtain the limiting condition; the probe container mirror image sends the limiting condition to the container management platform so that the container management platform distributes operation resources for the appointed application container mirror image; and in the process that the specified application container mirror image is operated based on the operation resource, the dynamic monitoring probe collects and transmits the first type data of the specified application container mirror image.
In some embodiments of the present disclosure, the preset acquisition mode includes a preset acquisition frequency; the static monitoring probe collects and transmits second type data of the application container mirror image according to a preset collection mode, and the static monitoring probe comprises the following components: and in the running period of the application container mirror image, the static monitoring probe collects and transmits second type data of the application container mirror image based on the preset collection frequency.
In some embodiments of the present description, the first type of data includes basic information, log information, and/or running state data of the specified application container image; the running state data are obtained by running the specified application container mirror image based on the limiting condition in the application control instruction; the second type of data includes operational index data of the application container image.
In some embodiments of the present description, the operation index data includes resource index data, operation performance index data, health related data of the application container image.
To achieve the above object, an embodiment of a second aspect of the present specification proposes an application monitoring method, the method including: under the condition that first type data and second type data of a target application container image are received, carrying out format specification processing on the first type data and the second type data based on a preset format; wherein the first type of data is acquired by a dynamic monitoring probe in a container management platform; the second type of data is acquired through a static monitoring probe configured in the target application container image; and monitoring the abnormal operation of the target application container mirror image based on the first type data processed by the format specification and the second type data processed by the format specification.
In some embodiments of the present disclosure, the monitoring of the operational anomaly of the target application container image based on the first type of data processed by the format specification and the second type of data processed by the format specification includes: extracting keywords from the first type data processed by the format specification and the second type data processed by the format specification respectively; matching the extracted keywords with a preset abnormal rule table, and determining the abnormal operation condition of the target application container mirror image.
In order to achieve the above object, an embodiment of a third aspect of the present disclosure provides an application data collection device, where a container management platform is configured with an application container image and a probe container image, where the application container image is used for running images of a plurality of application programs, and each application container image is configured with a static monitoring probe; the probe container mirror image is used for running the mirror image of the dynamic monitoring probe; the device comprises: the first acquisition module is used for enabling the probe container mirror image to receive an application control instruction aiming at a specified application program so as to enable the dynamic monitoring probe to acquire and send first type data of the specified application container mirror image; wherein the specified application container image is determined in the application container image based on an application identification in the application control instruction; the designated application is one of the plurality of applications; and the second acquisition module is used for enabling the static monitoring probe to acquire and send second type data of the application container mirror image according to a preset acquisition mode.
To achieve the above object, an embodiment of a fourth aspect of the present specification proposes an application monitoring device, the device comprising: the receiving module is used for carrying out format specification processing on the first type data and the second type data based on a preset format under the condition that the first type data and the second type data of the target application container mirror image are received; wherein the first type of data is acquired by a dynamic monitoring probe in a container management platform; the second type of data is acquired through a static monitoring probe configured in the target application container image; and the monitoring module is used for monitoring the abnormal operation of the target application container mirror image based on the first type data processed by the format specification and the second type data processed by the format specification.
To achieve the above object, an embodiment of a fifth aspect of the present specification proposes an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the data acquisition method of the application according to any one of the first aspects and/or the application monitoring method according to any one of the second aspects when the computer program is executed.
To achieve the above object, an embodiment of a sixth aspect of the present specification proposes a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the data acquisition method of the application according to any one of the first aspects and/or the application monitoring method according to any one of the second aspects.
Through the embodiment, a plurality of application programs of the business system are managed on the container management platform in a mode of running application container mirror images. The container management platform is also configured with probe container images corresponding to the dynamic monitoring probes. And under the condition that the probe container mirror image receives an application control instruction aiming at the appointed application program, acquiring first type data of the appointed application container mirror image corresponding to the appointed application program. In addition, static monitoring probes are respectively configured in the application container images. And acquiring second type data of the application container mirror image based on a preset acquisition mode by the static monitoring probe. By the mode, the data related to a plurality of application programs of the service system can be automatically collected, and the related data can be collected more comprehensively through the two probes.
Additional aspects and advantages of the present description will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the present description.
Drawings
Fig. 1 is a schematic diagram of an application monitoring system according to an embodiment of the present disclosure.
Fig. 2 is a flowchart of a data collection method according to an embodiment of the present disclosure.
Fig. 3 is a flowchart of an application monitoring method according to an embodiment of the present disclosure.
Fig. 4 is a block diagram of a data acquisition device according to an embodiment of the present disclosure.
Fig. 5 is a block diagram of an application monitoring device according to an embodiment of the present disclosure.
Fig. 6 is a block diagram of an electronic device according to one embodiment of the present description.
Detailed Description
Embodiments of the present specification are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of illustrating the present description and are not to be construed as limiting the present description.
On-line service systems often experience some faults that are difficult to predict during operation. In the related art, a large amount of index data before and after a fault is usually relied on after the fault occurs to locate the fault problem and determine how to perform fault recovery after the fault.
However, this method can only analyze the fault after the fault of the service system occurs, and cannot predict the fault condition of the service system in advance.
If the service system is required to be subjected to fault prediction, the service system is required to be monitored in real time and related data of the service system are acquired. When monitoring the application of multiple service systems at the same time, it is generally only possible to configure one data transmission pipeline for each service system and access the corresponding database. And then the relevant data of the service system are collected into the corresponding database. In the data acquisition mode, special cleaning is required for various acquired data. Moreover, the method is relatively complicated, and real-time comprehensive data of all applications cannot be obtained in time.
The embodiment of the specification provides a scene example of an application-based data acquisition method and an application monitoring method. The applied data acquisition method and the applied monitoring method are applied to the applied monitoring system shown in fig. 1. Referring to fig. 1, the application monitoring system includes an application monitoring terminal 110 and a container management platform 120. The applied data collection method is applied to the container management platform 120, and the applied monitoring method is applied to the applied monitoring terminal 110.
The container management platform 120 may manage several applications in the form of containers, and the container management platform 120 may be an open source platform for container orchestration capable of supporting automated deployment, extension, and management of containerized applications. The container management platform 120 is configured with application container images corresponding to a plurality of application programs respectively. Application container mirroring can be understood as a container instance created for an image file of an application program. One application may correspond to one container instance or multiple container instances, i.e., one application may correspond to one application container image or multiple application container images. The container management platform 120 is further configured with a probe container image corresponding to the monitoring probe. The probe container image and the application container image corresponding to the application program to be monitored belong to the same cluster. The container images in the same cluster can communicate through a pre-configured port.
The application monitoring terminal 110 is communicatively coupled to the container management platform 120. The application monitoring terminal 110 may generate an application control instruction and send the application control instruction to the probe container image in the container management platform 120, so that the dynamic monitoring probe collects the first type of data of the designated application container image pointed by the application control instruction. Wherein the specified application container image is determined among the plurality of application container images based on the application identification of the application control instructions. The probe container image corresponding to the dynamic monitoring probe will send the first type data to the application monitoring terminal 110 after the first type data is collected. The first type of data specifies basic information, log information, and/or run state data of the application container image. The running state data is obtained by designating that the application container mirror image runs based on the limiting condition in the application control instruction. The first type of data includes data that does not require real-time monitoring of the specified target application container image.
Each application container image is configured with a static monitoring probe. The static monitoring probes are injected at the time of compiling the application container image build. The acquisition mode is preset before the static monitoring probe is injected into the application container image. The static monitoring probe can collect and send second type data of the application container mirror image based on a preset collection mode. The second type of data includes operational index data that requires real-time monitoring of the application container image.
In the case that the application monitoring terminal 110 receives the first type of data collected by the dynamic monitoring probe for the target application container image and the second type of data collected by the static monitoring probe for the target application container image, format normalization processing can be performed on the first type of data and the second type of data based on a preset format. And simultaneously, monitoring the abnormal operation of the target application container mirror image based on the first type data processed by the format specification and the second type data processed by the format specification.
Fig. 2 is a flowchart of a data collection method according to an embodiment of the present disclosure. The container management platform is configured with an application container image and a probe container image, the application container image is used for running images of a plurality of application programs, and each application container image is respectively configured with a static monitoring probe. Probe container mirroring is used to run the mirror of the dynamic monitoring probe. Referring to fig. 2, the data acquisition method applied includes:
S210, the probe container image receives an application control instruction for the specified application program, so that the dynamic monitoring probe collects and transmits the first type data of the specified application container image.
Wherein the specified application container image is determined in the application container image based on the application identification in the application control instruction. The application is designated as one of several applications.
S220, the static monitoring probe collects and transmits second type data of the application container mirror image according to a preset collection mode.
In embodiments of the present description, a container management platform may manage several applications in the form of a container, which may be an open source platform for container orchestration, capable of supporting automated deployment, extension, and management of containerized applications. Illustratively, the container management platform may employ a Kubernetes management platform. The Kubernetes management platform is an open source for managing containerized applications on multiple hosts in a cloud platform. The goal of the Kubernetes management platform is to make deployment of containerized applications simple and efficient, which provides a mechanism for application deployment, planning, updating, and maintenance. The containers in the container management platform may provide an isolated operating environment so that applications may run in a separate space, independent of hosts or other containers.
The dynamic monitoring probe may be a dynamic probe agent program pre-written by a technician. The dynamic monitoring probe can be used for instruction conversion between the application monitoring terminal and the container management platform, and the first type data of the specified application container mirror image is acquired in the container management platform based on the requirement of the application control instruction, and meanwhile the first type data is sent to the application monitoring terminal.
The container management platform is provided with a plurality of application container images corresponding to the application programs, the application container images are used for running the images of the application programs, and each application container image is respectively provided with a static monitoring probe. Application container mirroring can be understood as a container instance created for an image file of an application program. One application may correspond to one container instance or multiple container instances, i.e., one application may correspond to one application container image or multiple application container images. And the application management platform is also provided with a probe container mirror image corresponding to the dynamic monitoring probe. The probe container image and the application container image corresponding to the application program to be monitored belong to the same cluster. The container images in the same cluster can communicate through a pre-configured port.
In the embodiment of the present disclosure, before class loading of the application container image, the static monitoring probes in the application container image are directly bound to corresponding processes in the application container image in a static manner, so that the static monitoring probes collect second type data of the application program in a manner of monitoring the processes of the application container image.
The data acquisition mode of the static monitoring probe follows the life cycle of the application container mirror image, and the whole process from the start of the application container mirror image operation to the end of the application container mirror image operation is based on the preset acquisition mode to acquire the data of the application container mirror image. And the dynamic monitoring probe is used for collecting the first type data of the appointed application container image under the condition that the corresponding probe container image receives the application control instruction. The probe container mirror image is used for collecting data based on the application control instruction, determining a specified application container mirror image in the application container mirror image through the application identifier in the application control instruction, and then collecting first type data of the specified application container mirror image. The dynamic monitoring probe does not need to collect data in real time for the specified application container image, so that the performance consumption in data collection can be reduced.
Through the embodiment, a plurality of application programs of the business system are managed on the container management platform in a mode of running application container mirror images. The container management platform is also configured with probe container images corresponding to the dynamic monitoring probes. And under the condition that the probe container mirror image receives an application control instruction aiming at the appointed application program, acquiring first type data of the appointed application container mirror image corresponding to the appointed application program. In addition, static monitoring probes are respectively configured in the application container images. And acquiring second type data of the application container mirror image based on a preset acquisition mode by the static monitoring probe. By the mode, the data related to a plurality of application programs of the service system can be automatically collected, and the related data can be collected more comprehensively through the two probes.
In some embodiments of the present description, the application control instructions include constraints set for a specified application container image. The probe container image receives an application control instruction for a specified application program to enable the dynamic monitoring probe to collect and send first type data of the specified application container image, comprising: and under the condition that the probe container mirror image receives the application control instruction, analyzing the application control instruction to obtain the limiting condition. The probe container image sends a constraint condition to the container management platform to cause the container management platform to allocate operating resources for the specified application container image. During the process of the specified application container image running based on the running resource, the dynamic monitoring probe collects and transmits the first type data of the specified application container image.
In the embodiment of the present disclosure, the dynamic monitoring probe is mainly used for performing data acquisition on the specified target application container image according to the application control instruction sent by the application monitoring terminal. The application control instructions may include application identification and constraints. The application identification includes an application identification and a container identification. The probe container image can determine a specified application program in a plurality of application programs through the application program identification, and determine the specified application container image in a plurality of application container images corresponding to the specified application program through the container identification.
Specifically, under the condition that an application control instruction is received, the probe container mirror image is analyzed corresponding to the control instruction to obtain an application identifier and a limiting condition, and the application identifier and the limiting condition are sent to the container management platform. And after determining the specified application container image based on the application identifier, the container management platform allocates the running resource for the specified application container image based on the limiting condition so as to enable the specified application container image to run based on the running resource. In the process of operating the specified application container image based on the operating resource, the probe container image can acquire first type data of the specified application container image through a data interface of the container management platform.
By way of example, the user may perform fault simulation on the specified application container image in this manner, and set a limit condition for fault simulation at the application monitoring terminal, for example, make the specified application container image run under a condition that the CPU occupancy rate is 80%. And then, generating application control instructions such as limiting conditions, application identifiers and the like and sending the application control instructions to the probe container mirror image so that the designated application container mirror image runs under the condition of 80% CPU occupancy rate. At the same time, the probe container image captures a first type of data generated by the specified application container image based on the constraint operation.
Through the dynamic monitoring probe, fault simulation can be carried out on a plurality of application programs in advance, and weaknesses of the application programs are found in advance and corrected in time, so that the fault condition of a service system in the real online running process can be reduced.
In some embodiments of the present disclosure, the preset acquisition mode includes a preset acquisition frequency. The static monitoring probe collects and transmits second type data of the application container mirror image according to a preset collection mode, and the static monitoring probe comprises: during the operational cycle of the application container image, the static monitoring probe collects and transmits a second type of data of the application container image based on a preset collection frequency.
In the embodiments of the present description, static monitoring probes are inserted into some processes of an application program when an application container image is built for the application program, and are suitable for performing performance analysis, code coverage analysis, and the like corresponding to the container image. Since the static monitoring probes are inserted at compile time, there is no capability to flexibly enable or disable at application container mirror runtime. Therefore, before the application of the container image is started, the static monitoring probe needs to be configured with a collection mode, such as a preset collection frequency. After the application container image is started, the static monitoring probe collects the second type of data of the application container image based on a preset collection frequency. The static monitoring probe operates continuously during the run time of the application of the container image.
In some embodiments of the present description, the first type of data includes basic information, log information, and/or run state data specifying an application container image. The running state data is obtained by designating that the application container mirror image runs based on the limiting condition in the application control instruction. The second type of data includes run index data of the application container image.
In the embodiments of the present description, since dynamic monitoring probes are more suitable for monitoring and troubleshooting in a test environment, static monitoring probes are more suitable for the development, testing and analysis stages in order to collect the necessary operational information of the application container image at build time. Thus, the first type of data collected by the dynamic monitoring probe is typically some data that does not require repeated collection, such as basic information, log information, and/or operational status data specifying the application container image. The basic information may include, among other things, a container address specifying the application container image, a container identification, hardware resource information, etc. The run state data specifies that the application container image is to be run based on constraints in the application control instructions. The data collected by the dynamic monitoring probe is discrete and the manner in which the dynamic monitoring probe is collected may be dynamically ended. And the second type of data collected by the static monitoring probe may include operational index data generated throughout the operational cycle using the vessel image. The data collected by the static monitoring probe is continuous.
In some embodiments of the present description, the operation index data includes resource index data, operation performance index data, health related data of the application container image.
In embodiments of the present description, the operation index data may include resource index data of an application container image, for example: memory data of the CPU, occupancy rate data of the network, performance data of the disk and the like. The operation index data may also include operation performance index data of the application container image, such as: throughput data, throughput rate data, etc. The operation index data may also include health related data of the application container image, such as: hardware health status data, safety and compliance indicator data, and the like.
Corresponding to the above embodiment, fig. 3 is a flowchart of an application monitoring method according to the embodiment of the present disclosure. Referring to fig. 3, the application monitoring method includes:
and S310, under the condition that the first type data and the second type data of the target application container image are received, carrying out format specification processing on the first type data and the second type data based on a preset format.
Wherein the first type of data is collected by a dynamic monitoring probe in the container management platform. The second type of data is collected by a static monitoring probe configured in the target application container image.
S320, performing operation abnormality monitoring on the target application container mirror image based on the first type data processed by the format specification and the second type data processed by the format specification.
In the embodiment of the present disclosure, the application monitoring terminal may further store and analyze data collected by the two probes, and predict in time whether the target application container image will fail or be in problem.
Specifically, the application monitoring terminal can perform de-duplication and deletion processing on the data under the condition that the application monitoring terminal receives the first type data and the second type data of the target application container image. And then, carrying out format specification processing on the first type data and the second type data according to a preset format, for example, integrating and storing the first type data and the second type data according to a preset storage format.
And then, carrying out total judgment on the first type data processed by the format specification and the second type data processed by the format specification, and providing a possible problem clue for the mirror image of the target application container, so that the problem correction can be carried out on the application program corresponding to the mirror image of the target application container in time, and the fault condition in actual online running is reduced.
Through the embodiment, the data related to a plurality of application programs of the automatic acquisition service system can be realized by utilizing two data acquisition modes, namely the dynamic monitoring probe and the static monitoring probe, in the container management platform, and the related data can be acquired more comprehensively through the two probes. After the application monitoring terminal receives the data acquired by the two probes, the data are subjected to format specification processing and then are comprehensively judged, so that the problems of the application program are found in time.
In some embodiments of the present description, performing operational anomaly monitoring on a target application container image based on a first type of data processed by a format specification and a second type of data processed by the format specification includes: and extracting keywords from the first type data processed by the format specification and the second type data processed by the format specification respectively. Matching the extracted keywords with a preset abnormal rule table, and determining the abnormal operation condition of the mirror image of the target application container.
In the embodiment of the present specification, an abnormal rule table may be preset based on service system history operation experience or industry experience. And judging the abnormal condition by presetting an abnormal rule table. Specifically, keyword extraction is performed on the first type data processed by the format specification and the second type data processed by the format specification, the extracted keywords are matched with a preset abnormal rule table, so that abnormal analysis is performed on the target application container mirror image based on index specification data matched in the preset abnormal rule table, and the abnormal operation condition of the target application container mirror image is determined. The keyword extraction is performed on the first type of data processed by the format specification and the second type of data processed by the format specification to obtain a container identifier, an application program identifier and an interface response time t1 of the target application container mirror image. And comparing the response time length of the keyword interface in a preset abnormal rule table, and if the response time length t1 of the interface is greater than the time index t2 in the preset abnormal rule table, determining that the application program corresponding to the container identifier and the application program identifier is abnormal.
Corresponding to the above embodiment, the embodiment of the present disclosure further provides an applied data acquisition device. The container management platform is configured with an application container image and a probe container image, the application container image is used for running images of a plurality of application programs, and each application container image is respectively configured with a static monitoring probe. Probe container mirroring is used to run the mirror of the dynamic monitoring probe. Referring to fig. 4, the applied data acquisition device includes:
the first acquisition module 410 is configured to enable the probe container image to receive an application control instruction for a specified application program, so that the dynamic monitoring probe acquires and transmits first type data of the specified application container image.
Wherein the specified application container image is determined in the application container image based on the application identification in the application control instruction. The application is designated as one of several applications.
And the second acquisition module 420 is configured to enable the static monitoring probe to acquire and send second type data of the application container image according to a preset acquisition mode.
Through the embodiment, a plurality of application programs of the business system are managed on the container management platform in a mode of running application container mirror images. The container management platform is also configured with probe container images corresponding to the dynamic monitoring probes. And under the condition that the probe container mirror image receives an application control instruction aiming at the appointed application program, acquiring first type data of the appointed application container mirror image corresponding to the appointed application program. In addition, static monitoring probes are respectively configured in the application container images. And acquiring second type data of the application container mirror image based on a preset acquisition mode by the static monitoring probe. By the mode, the data related to a plurality of application programs of the service system can be automatically collected, and the related data can be collected more comprehensively through the two probes.
For specific limitations of the data acquisition device of the application, reference may be made to the above limitation of the data acquisition method of the application, and no further description is given here. The modules in the data acquisition device of the above application may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Corresponding to the above embodiment, the embodiment of the present disclosure further provides an application monitoring device. Referring to fig. 5, the application monitoring device includes:
And the receiving module 510 is configured to perform format specification processing on the first type data and the second type data based on a preset format when the first type data and the second type data of the target application container image are received.
Wherein the first type of data is collected by a dynamic monitoring probe in the container management platform. The second type of data is collected by a static monitoring probe configured in the target application container image.
And the monitoring module 520 is configured to monitor the target application container image for abnormal operation based on the first type of data processed by the format specification and the second type of data processed by the format specification.
Through the embodiment, the data related to a plurality of application programs of the automatic acquisition service system can be realized by utilizing two data acquisition modes, namely the dynamic monitoring probe and the static monitoring probe, in the container management platform, and the related data can be acquired more comprehensively through the two probes. After the application monitoring terminal receives the data acquired by the two probes, the data are subjected to format specification processing and then are comprehensively judged, so that the problems of the application program are found in time.
For specific limitations of the application monitoring device, reference may be made to the above limitations of the application monitoring method, and no further description is given here. The various modules in the application monitoring device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Fig. 6 is a block diagram of an electronic device according to one embodiment of the present description.
As shown in fig. 6, the electronic device 600 includes a memory 604, a processor 602, and a computer program 606 stored on the memory 604 and executable on the processor 602, wherein the processor 602 implements the data collection method of the application of any of the above embodiments and/or the application monitoring method of any of the above embodiments when executing the computer program 606.
According to the electronic device of the embodiment of the present disclosure, when the processor 602 executes the computer program 606, it is able to automatically collect a plurality of application related data of the service system, and the related data can be collected more comprehensively through two probes.
Corresponding to the above embodiments, embodiments of the present specification also propose a computer readable storage medium. A computer program is stored thereon, which when executed by a processor, implements the data acquisition method of the application of any of the above embodiments and/or the application monitoring method of any of the above embodiments.
According to the computer readable storage medium of the embodiments of the present disclosure, when the computer program is executed by the processor, it is possible to automatically collect a plurality of application related data of the service system, and more comprehensively collect the related data through two probes.
It should be noted that the logic and/or steps represented in the flowcharts or otherwise described herein, for example, may be considered as a ordered listing of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It should be understood that portions of this specification may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present specification. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present specification, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings are merely for convenience in describing the present specification and simplifying the description, and do not indicate or imply that the device or element being referred to must have a specific orientation, be configured and operated in a specific orientation, and therefore should not be construed as limiting the present specification.
Furthermore, the terms "first," "second," and the like, as used in the embodiments of the present specification, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or as implicitly indicating the number of technical features indicated in the embodiments. Thus, the definition of a term "first," "second," or the like in an embodiment of this specification can expressly or implicitly indicate that at least one such feature is included in the embodiment. In the description of the present specification, the word "plurality" means at least two or more, for example, two, three, four, etc., unless explicitly defined otherwise in the embodiments.
In this specification, unless clearly indicated or limited otherwise in the examples, the terms "mounted," "connected," and "fixed" as used in the examples are to be construed broadly, and for example, the connection may be a fixed connection, a removable connection, or an integral unit, and it is to be appreciated that the connection may also be a mechanical connection, an electrical connection, or the like; of course, it may be directly connected, or indirectly connected through an intermediate medium, or may be in communication with each other, or in interaction with each other. The specific meaning of the terms in this specification can be understood by those skilled in the art according to specific embodiments.
In this specification, unless expressly stated or limited otherwise, a first feature "up" or "down" a second feature may be the first and second features in direct contact, or the first and second features in indirect contact via an intervening medium. Moreover, a first feature being "above," "over" and "on" a second feature may be a first feature being directly above or obliquely above the second feature, or simply indicating that the first feature is level higher than the second feature. The first feature being "under", "below" and "beneath" the second feature may be the first feature being directly under or obliquely below the second feature, or simply indicating that the first feature is less level than the second feature.
Although embodiments of the present disclosure have been shown and described above, it should be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.

Claims (10)

1. The application data acquisition method is characterized in that an application container mirror image and a probe container mirror image are configured on a container management platform, the application container mirror image is used for running mirror images of a plurality of application programs, and each application container mirror image is respectively configured with a static monitoring probe; the probe container mirror image is used for running the mirror image of the dynamic monitoring probe; the method comprises the following steps:
The probe container mirror image receives an application control instruction aiming at a specified application program so that the dynamic monitoring probe acquires and transmits first type data of the specified application container mirror image; wherein the specified application container image is determined in the application container image based on an application identification in the application control instruction; the designated application is one of the plurality of applications;
And the static monitoring probe collects and transmits the second type data of the application container mirror image according to a preset collection mode.
2. The method of claim 1, wherein the application control instructions include a constraint set for the specified application container image; the probe container image receives an application control instruction for a specified application program, so that the dynamic monitoring probe collects and transmits first type data of the specified application container image, and the method comprises the following steps:
Under the condition that the probe container mirror image receives the application control instruction, analyzing the application control instruction to obtain the limiting condition;
The probe container mirror image sends the limiting condition to the container management platform so that the container management platform distributes operation resources for the appointed application container mirror image;
And in the process that the specified application container mirror image is operated based on the operation resource, the dynamic monitoring probe collects and transmits the first type data of the specified application container mirror image.
3. The method of claim 1, wherein the predetermined acquisition mode comprises a predetermined acquisition frequency; the static monitoring probe collects and transmits second type data of the application container mirror image according to a preset collection mode, and the static monitoring probe comprises the following components:
And in the running period of the application container mirror image, the static monitoring probe collects and transmits second type data of the application container mirror image based on the preset collection frequency.
4. A method according to any one of claims 1 to 3, wherein the first type of data comprises basic information, log information and/or running state data of the specified application container image; the running state data are obtained by running the specified application container mirror image based on the limiting condition in the application control instruction; the second type of data includes operational index data of the application container image.
5. The method of claim 4, wherein the performance metric data comprises resource metric data, performance metric data, health related data of the application container image.
6. An application monitoring method, the method comprising:
Under the condition that first type data and second type data of a target application container image are received, carrying out format specification processing on the first type data and the second type data based on a preset format; wherein the first type of data is acquired by a dynamic monitoring probe in a container management platform; the second type of data is acquired through a static monitoring probe configured in the target application container image;
and monitoring the abnormal operation of the target application container mirror image based on the first type data processed by the format specification and the second type data processed by the format specification.
7. The method of claim 6, wherein the performing operational anomaly monitoring on the target application container image based on the format specification processed first type of data and the format specification processed second type of data comprises:
Extracting keywords from the first type data processed by the format specification and the second type data processed by the format specification respectively;
matching the extracted keywords with a preset abnormal rule table, and determining the abnormal operation condition of the target application container mirror image.
8. The data acquisition device for the application is characterized in that an application container mirror image and a probe container mirror image are configured on a container management platform, the application container mirror image is used for running mirror images of a plurality of application programs, and each application container mirror image is respectively configured with a static monitoring probe; the probe container mirror image is used for running the mirror image of the dynamic monitoring probe; the device comprises:
The first acquisition module is used for enabling the probe container mirror image to receive an application control instruction aiming at a specified application program so as to enable the dynamic monitoring probe to acquire and send first type data of the specified application container mirror image; wherein the specified application container image is determined in the application container image based on an application identification in the application control instruction; the designated application is one of the plurality of applications;
And the second acquisition module is used for enabling the static monitoring probe to acquire and send second type data of the application container mirror image according to a preset acquisition mode.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the data acquisition method according to any one of claims 1-5 and/or the application monitoring method according to any one of claims 6-7 when the computer program is executed.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, implements a data acquisition method according to any one of claims 1-5 and/or an application monitoring method according to any one of claims 6-7.
CN202311842357.XA 2023-12-28 2023-12-28 Application data acquisition method, application monitoring method, electronic equipment and medium Pending CN118012698A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311842357.XA CN118012698A (en) 2023-12-28 2023-12-28 Application data acquisition method, application monitoring method, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311842357.XA CN118012698A (en) 2023-12-28 2023-12-28 Application data acquisition method, application monitoring method, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN118012698A true CN118012698A (en) 2024-05-10

Family

ID=90949080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311842357.XA Pending CN118012698A (en) 2023-12-28 2023-12-28 Application data acquisition method, application monitoring method, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN118012698A (en)

Similar Documents

Publication Publication Date Title
CN110519365B (en) Method for changing equipment service and service changing system
CN112965871A (en) Vehicle fault prompt information acquisition method and device and storage medium
KR20190021560A (en) Failure prediction system using big data and failure prediction method
CN113946499A (en) Micro-service link tracking and performance analysis method, system, equipment and application
CN107203464B (en) Method and device for positioning service problem
CN114363151A (en) Fault detection method and device, electronic equipment and storage medium
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN110874311A (en) Database detection method and device, computer equipment and storage medium
CN110069382B (en) Software monitoring method, server, terminal device, computer device and medium
CN116054910B (en) Fault analysis and device for earth station equipment based on knowledge graph construction
CN112069144A (en) Method and device for collecting system logs by multi-control cluster
CN118012698A (en) Application data acquisition method, application monitoring method, electronic equipment and medium
EP3301564B1 (en) Computer system, method of managing transmission of software with computer system, program therefor, and recording medium
CN115147236A (en) Processing method, processing device and electronic equipment
CN109271309B (en) Method and device for automatically testing software, server, equipment and storage medium
CN115687006A (en) Cloud platform delivery assembly line monitoring method and system based on feedback mechanism
CN111932706B (en) Informationized inspection method and device, storage medium and electronic equipment
CN111506422B (en) Event analysis method and system
CN115687036A (en) Log collection method and device and log system
CN107102938B (en) Test script updating method and device
CN111045849A (en) Method, device, server and storage medium for identifying reason of checking abnormality
WO2023103627A1 (en) Network inspection method and apparatus, electronic device and storage medium
CN117439899B (en) Communication machine room inspection method and system based on big data
CN118012744A (en) Fault simulation method, control method, electronic equipment and storage medium of application
CN115454954B (en) Data processing method, system and device and electronic equipment

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