CN111625418A - Process monitoring method and device - Google Patents

Process monitoring method and device Download PDF

Info

Publication number
CN111625418A
CN111625418A CN202010398355.6A CN202010398355A CN111625418A CN 111625418 A CN111625418 A CN 111625418A CN 202010398355 A CN202010398355 A CN 202010398355A CN 111625418 A CN111625418 A CN 111625418A
Authority
CN
China
Prior art keywords
container
information
attribute
monitoring
determining
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
CN202010398355.6A
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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN202010398355.6A priority Critical patent/CN111625418A/en
Publication of CN111625418A publication Critical patent/CN111625418A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the field of financial technology (Fintech), and discloses a process monitoring method and a device, which are used for determining container information of each container running on a container node; the container information comprises a container identifier and a container group attribute where the container is located; for at least one container, determining a progress record of the container according to the container information; establishing a mapping relation between at least one piece of process information in the process record and the container group attribute of the container; the process records are obtained by a monitoring agent deployed on the container node. According to the scheme, the monitoring agent is deployed on the container node to obtain the progress record of the pod in the container node, so that the resource for deploying the monitoring agent is greatly saved; by establishing the mapping relation between the process information in the process record and the pod, when the monitoring agent reports the process information, the corresponding pod can be clearly matched, and the reporting accuracy of the process information in the pod is ensured on the premise of reducing the number of the monitoring agents.

Description

Process monitoring method and device
Technical Field
The embodiment of the invention relates to the field of financial technology (Fintech), in particular to a process monitoring method and device.
Background
With the development of computer technology, more and more technologies (such as big data, cloud computing or block chaining) are applied in the financial field, and the traditional financial industry is gradually shifting to the financial technology, and big data technology is no exception. But higher requirements are also put on the data monitoring technology due to the requirements of safety and real-time performance in the financial and payment industries.
Taking Zabbix as an example, Zabbix is an enterprise-level open source solution providing distributed system monitoring and network monitoring functions based on a WEB interface, and can monitor the process survival situation on a host and ensure the stable operation of a business process; and also provides a visual presentation of the data. As shown in fig. 1, a schematic diagram of a working mechanism of Zabbix provided for the prior art is provided, where Zabbix-Agent is deployed on a monitored host, and is responsible for collecting local data and sending the local data to Zabbix-server or Zabbix-proxy; the Zabbix-Web-GUI provides a configuration monitoring content entry and issues the configuration to the Zabbix-Agent. In the process monitoring process, the Zabbix-Agent reports the process on the current host to the Zabbix-server, and the Zabbix-server stores the data into the database after receiving the data, so that the Zabbix-We-GUI can be drawn and displayed at the front end.
In a container cluster management system (kubernets, K8s), there are multiple container groups pod in each container node, multiple containers in each pod, and multiple processes loaded in each container, where all processes in a pod are visible in a container node, each pod being a separate instance.
The process in the K8s system is monitored by using Zabbix, and a common deployment mode is that one Zabbix-Agent is installed in each Pod, so that the process information in the Pod is reported by the Zabbix-Agent. However, this deployment method may cause a plurality of Zabbix-Agent processes to exist in the same container node, resulting in serious resource waste.
In summary, the prior art fails to provide a method for effectively monitoring process information in a pod in a container node.
Disclosure of Invention
The invention provides a process monitoring method and a process monitoring device, which are used for solving the problem of heavy monitoring burden caused by excessive monitoring agent number in the prior art.
In a first aspect, an embodiment of the present invention provides a process monitoring method, where the method includes: determining container information of each container running on a container node; the container information comprises a container identifier and a container group attribute where the container is located; for at least one container, determining a progress record of the container according to the container information; establishing a mapping relation between at least one piece of process information in the process record and the container group attribute of the container; the process record is obtained by a monitoring agent deployed on the container node.
Based on the scheme, by deploying the monitoring agents on the container nodes, the monitoring agents are used for acquiring the process records in the container group pod in the container nodes, and compared with a mode of deploying the monitoring agents on each pod, the method saves the resources for deploying the monitoring agents to a great extent; because the monitoring agent is not arranged on each pod, further, a mapping relation is established between the process information in the process record and the pods, so that when the monitoring agent reports the process information, the pods corresponding to the process information can be matched clearly, and the reporting accuracy of the process information in the pods is ensured on the premise of reducing the number of the monitoring agents.
In one possible implementation method, the container information further includes a container attribute; before determining the process record of the container according to the container information, the method further includes: and determining the container with the container attribute as the service attribute from the containers.
Based on the scheme, the container types contained in each pod include a service attribute container and an initialized attribute container, wherein not all types of containers need to be collected with process information, for example, the initialized attribute container does not need to be collected, so that in the process of determining the process information in the pod, the service attribute container is used as an effective container by filtering the initialized attribute container, and the operation of collecting the process information is performed on the effective container.
In one possible implementation, the container group attribute includes a container group identifier; the determining the process record of the container according to the container information includes: determining a process file corresponding to the container identifier according to the container identifier of the container and the container group identifier of the container; and acquiring a process record corresponding to the container identifier from the process file.
Based on the scheme, the process file corresponding to the container identifier can be determined through the container group identifier and the container identifier of the container, so that the process record corresponding to the container identifier can be acquired from the process file.
In one possible implementation, the container group attribute further includes a container group name; after the mapping relationship between the at least one piece of process information in the process record and the attribute of the container group is established, the method further comprises the following steps: and reporting the container group name and the process information with the mapping relation to a monitoring platform through the monitoring agent.
Based on the scheme, because the container group attribute comprises the container group name, the process information and the container group name are mapped, so that when the monitoring agent reports the process information of the pod in the container node to the monitoring platform, the monitoring platform can accurately acquire the process information of the pod.
In a possible implementation method, the mapping relationship includes a container group identifier, a container group name, and process information; and reporting the mapping relation to the monitoring platform periodically.
Based on the scheme, the monitoring agent reports the progress information of the pod to the monitoring platform in a periodic mode, so that the effect of benign monitoring of a monitored system can be achieved, and bad consequences that the progress is abnormal and is not found and processed in time are prevented.
In a possible implementation method, the determining container information of each container running on a container node includes: and acquiring container information of each container operated on the container node by operating a preset instruction.
Based on the scheme, the container information of each container running on the container node can be acquired by running the preset instruction.
In a second aspect, an embodiment of the present invention provides a process monitoring apparatus, where the apparatus includes: the determining unit is used for determining the container information of each container running on the container node; the container information comprises a container identifier and a container group attribute where the container is located; the processing unit is used for determining a progress record of the container according to the container information aiming at least one container; establishing a mapping relation between at least one piece of process information in the process record and the container group attribute of the container; the process record is obtained by a monitoring agent deployed on the container node.
Based on the scheme, by deploying the monitoring agents on the container nodes, the monitoring agents are used for acquiring the process records in the container group pod in the container nodes, and compared with a mode of deploying the monitoring agents on each pod, the method saves the resources for deploying the monitoring agents to a great extent; because the monitoring agent is not arranged on each pod, further, a mapping relation is established between the process information in the process record and the pods, so that when the monitoring agent reports the process information, the pods corresponding to the process information can be matched clearly, and the reporting accuracy of the process information in the pods is ensured on the premise of reducing the number of the monitoring agents.
In one possible implementation method, the container information further includes a container attribute; the processing unit is further configured to determine, from the containers, a container whose container attribute is a service attribute.
Based on the scheme, by deploying the monitoring agent on the container node, the monitoring agent is used for acquiring the process records of pod types in the container node, and compared with a mode of deploying the monitoring agent on each pod, the method saves the resources for deploying the monitoring agent to a great extent; further, by establishing a mapping relationship between the process information in the process record and the pod, when the monitoring agent reports the process information, the pod corresponding to the process information can be clearly matched, so that after the process information is determined to be abnormal, the corresponding pod can be quickly positioned, and then corresponding measures are taken for maintenance.
In one possible implementation, the container group attribute includes a container group identifier; the determining unit is specifically configured to determine, according to the container identifier of the container and the container group identifier of the container, a process file corresponding to the container identifier; and acquiring a process record corresponding to the container identifier from the process file.
Based on the scheme, the process file corresponding to the container identifier can be determined through the container group identifier and the container identifier of the container, so that the process record corresponding to the container identifier can be acquired from the process file.
In one possible implementation, the container group attribute further includes a container group name; the processing unit is further configured to report the container group name and the process information having the mapping relationship to a monitoring platform through the monitoring agent.
Based on the scheme, because the container group attribute comprises the container group name, the process information and the container group name are mapped, so that when the monitoring agent reports the process information of the pod in the container node to the monitoring platform, the monitoring platform can accurately acquire the process information of the pod.
In a possible implementation method, the mapping relationship includes a container group identifier, a container group name, and process information; the processing unit is specifically configured to report the mapping relationship to the monitoring platform periodically.
Based on the scheme, because the container group attribute comprises the container group name, the process information and the container group name are mapped, so that when the monitoring agent reports the process information of the pod in the container node to the monitoring platform, the monitoring platform can accurately acquire the process information of the pod.
In a possible implementation method, the determining unit is specifically configured to obtain container information of each container operated on the container node by operating a preset instruction.
Based on the scheme, the container information of each container running on the container node can be acquired by running the preset instruction.
In a third aspect, an embodiment of the present invention provides a computing device, including:
a memory for storing a computer program;
a processor for calling a computer program stored in said memory and executing the method according to any of the first aspect according to the obtained program.
In a fourth aspect, the present invention provides a computer-readable storage medium, which stores a computer program, where the computer program is used to make a computer execute the method according to any one of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a mechanism of Zabbix in the prior art;
fig. 2 is a schematic diagram of a possible architecture for monitoring processes in a distributed system according to an embodiment of the present invention;
fig. 3 is a process monitoring method according to an embodiment of the present invention;
FIG. 4 is a schematic information diagram of a container according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of information for another container provided by an embodiment of the present invention;
fig. 6 is a schematic diagram of a directory structure of a cgroups.procs file in a container node according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a process ID list according to an embodiment of the present invention;
fig. 8 is a process monitoring method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 2, an architectural diagram of a possible monitoring of a process in a distributed system according to an embodiment of the present invention is shown, taking a container cluster management system K8s and Zabbix as examples, where two container nodes numbered as No. 1 and No. 2 respectively constitute a container cluster management system K8s. The number 1 container node and the number 2 container node respectively include 10 container groups pod, and each pod has a plurality of containers running therein. As an example, in the embodiment of the present invention, it is described that the pod No. 1 in the container node No. 1 includes two containers, where the two containers are a container of an initialization attribute and a container of a service attribute, and are respectively denoted as a container No. 1 and a container No. 2. Compared with the technical scheme that one Zabbix-Agent is deployed on each pod in the prior art, the embodiment of the invention can greatly save the deployment resource of the Zabbix-agents.
It should be noted that, in the embodiment of the present invention, the number of container nodes included in the container cluster management system K8s is not limited, the number of pods included in each of two container nodes is not limited in the embodiment of the present invention, and the number of containers included in the pod No. 1 in the container node No. 1 is not limited in the embodiment of the present invention.
Based on the schematic architecture diagram shown in fig. 2, an embodiment of the present invention provides a method for process monitoring, as shown in fig. 3, where the method includes:
step 301, determining container information of each container running on a container node; the container information comprises a container identifier and a container group attribute where the container is located;
step 302, aiming at least one container, determining a process record of the container according to the container information; establishing a mapping relation between at least one piece of process information in the process record and the container group attribute of the container; the process record is obtained by a monitoring agent deployed on the container node.
Based on the scheme, by deploying the monitoring agents on the container nodes, the monitoring agents are used for acquiring the process records in the container group pod in the container nodes, and compared with a mode of deploying the monitoring agents on each pod, the method saves the resources for deploying the monitoring agents to a great extent; because the monitoring agent is not arranged on each pod, further, the mapping relation is established between the process information in the process record and the pods, so that when the monitoring agent reports the process information, the pods corresponding to the process information can be clearly matched, and the reporting accuracy of the process information in the pods is ensured on the premise of reducing the number of the monitoring agents.
In step 301, container information of each container operated by the container node is obtained by operating a preset instruction.
For example, socket obtains information of all containers in container node No. 1. Specifically, the container identifications (ids) of all containers in container node No. 1, and the names (podnames) of the pods corresponding to the containers are obtained by executing the following commands. Wherein the container identifier (Id) is unique to the cluster, and the name (PodName) of the container group pod can be set manually. The preset commands are as follows:
curl-s--unix-socket/data/docker/docker.sock http:/containers/json
in theory, by inputting the above command, ids of all containers in container node No. 1 and PodName corresponding to the containers can be obtained, but as an example, in the embodiment of the present invention, two containers included in pod No. 1 in container node No. 1 are described as an example. That is, by inputting the above command, the returned data is as shown in fig. 4 and 5.
Referring to fig. 4, an information schematic diagram of a container according to an embodiment of the present invention is shown, where io. kubernets. pod. name is PodName, and denotes that pod number 1 is named wcs-agent-w 8w5 q; io. kubernets. pod.uid is the unique ID of the cluster corresponding to pod, which means that the unique ID of the cluster corresponding to pod number 1 is 19a92407-3430-4c1a-a6bf-2d46840bab 45; id denotes a container identification (Id), the cluster is unique, and the Id indicating one of the containers included in pod No. 1 is c01726b1e5d8d5717c7e955868e6cc3ad730d0f7b789d05e4f9c8688f049c266, which is referred to as container No. 1 for convenience of description.
Fig. 5 is a schematic information diagram of another container according to an embodiment of the present invention, and reference may be made to fig. 4 for the description of fig. 5. Fig. 5 differs from fig. 4 in that Id is different. As shown in fig. 5, as can be seen from the Id information, the Id of another container included in pod No. 1 is d66ed9e3a77b1a545e69cc5c2f33c55847d2912edaed9155471685646f14fa78, which is denoted as container No. 2 for convenience of description.
Optionally, the container information further includes a container attribute; before determining the process record of the container according to the container information, the method further includes: and determining the container with the container attribute as the service attribute from the containers.
With reference to fig. 4 and 5, in which, the mirror Image label in fig. 4 is "Image": λ k8s. gcr. io/pause:3.1", it is described that the container No. 1 is a container with an initialized attribute, and since the container with the initialized attribute is not used for recording service data, it is not necessary to collect process information of the container with the attribute; in fig. 5, since the mirror Image label is "Image": to "remove, com/wcs-agent @ sha256:711b59648666820ceb04985b6e32265ee89e88669ab9152787b6fbf99c996787", it is described that No. 2 container may be determined as a container of service attributes, and process information needs to be collected.
In the scheme, the container types contained in each pod include a service attribute container and an initialized attribute container, wherein not all types of containers need to be collected with process information, for example, the initialized attribute container does not need to be collected, so that in the process of determining the process information in the pod, the initialized attribute container is filtered, the service attribute container is used as an effective container, and the operation of collecting the process information is performed on the effective container.
In the above step 302, for at least one container, a process record of the container is determined according to the container information.
Optionally, the container group attribute includes a container group identifier; the determining the process record of the container according to the container information includes: determining a process file corresponding to the container identifier according to the container identifier of the container and the container group identifier of the container; and acquiring a process record corresponding to the container identifier from the process file.
For example, as shown in fig. 4 and 5, io. kubernets. pod. uid is a container group identifier, which identifies the unique ID of pod No. 1 in the container node No. 1 in the K8s cluster. Since the container No. 1 corresponding to fig. 4 is a container of the initialized attribute, and the container No. 2 corresponding to fig. 5 is a container of the service attribute, the container No. 2 corresponding to fig. 5 belongs to a research object of the embodiment of the present invention, that is, information of a process running thereon needs to be acquired.
The process list corresponding to each pod is located in a CGroups in progress file. Fig. 6 may be referred to for a directory structure of cgroups. As shown in fig. 6, a schematic diagram of a directory structure of a cgroups. Wherein, pod- { uid } is the value of io. kubernets. pod. uid in fig. 5, and container- { cid } is the value corresponding to Id in fig. 5.
The path of the cgroup procs file of the final pod is obtained according to the previously obtained PodName, PodUid and conteinerids, and is expressed as follows:
PodName=wcs-opagent-w8w5q
PodUid=19a92407-3430-4c1a-a6bf-2d46840bab45
ContainerId=d66ed9e3a77b1a545e69cc5c2f33c55847d2912edaed9155471685646f14fa78
the pod process file directory obtained finally is as follows: data/cgroup/system/kube-points/burst/19 a92407-3430-4c1a-a6bf-2d46840bab45/d66ed9e3a77b1a545e69cc5c2f33c55847d2912edaed9155471685646f14fa 78/cgroup.
Reading the cgroup.procs file according to the file directory, and obtaining a process ID list of the container No. 2 in the pod No. 1.
Fig. 7 is a schematic diagram of a process ID list according to an embodiment of the present invention, where the ID list shown in fig. 7 has 7 rows, each row represents a process ID, for example, row 1 represents that a process with an ID of "1235" runs in container No. 2 in pod No. 1.
Next, process detailed information is acquired through the process ID list. When the system starts a process, a folder named by a process ID is created under the/proc, and the detailed information of the process is recorded under the folder. For example, according to the process with the ID "1235" shown in fig. 7, the corresponding folder is found according to the "1235" go/proc, and the data therein, which is the detailed information of the process named "1235", is read.
In the step 302, a mapping relationship is established between at least one piece of process information in the process record and the container group attribute of the container; the process record is obtained by a monitoring agent deployed on the container node.
For example, for 7 process IDs illustrated in fig. 7, by reading corresponding detailed process information in/proc, a mapping relationship between at least one piece of process information in each process ID and the pod No. 1 of the container No. 1 node may be established.
Optionally, the container group attribute further includes a container group name; after the mapping relationship between the at least one piece of process information in the process record and the attribute of the container group is established, the method further comprises the following steps: and reporting the container group name and the process information with the mapping relation to a monitoring platform through the monitoring agent.
As in the previous example, the name of the pod 1 of the container node 1 is wcs-Agent-w 8w5q, when the Zabbix-Agent deployed on the container node 1 acquires the process information of the pod with the name of wcs-Agent-w 8w5q, the Zabbix-Agent reports the pod process information of the name to the monitoring platform Zabbix, specifically, the Zabbix-Agent sends the process information of the collected pod to the Zabbix-server, and the Zabbix-server stores the data into the database after receiving the process information, so that the Zabbix-We-GUI can be drawn and displayed at the front end.
According to the scheme, the process information corresponding to the name of a certain container group is reported to the monitoring platform, so that the monitoring platform can clearly show the process information in each container group after receiving data, and can quickly give an alarm to prompt operation and maintenance personnel to respond to the specific container group when determining that the process information is abnormal.
Optionally, the mapping relationship includes a container group identifier, a container group name, and process information; and reporting the mapping relation to the monitoring platform periodically.
By setting a timer, the timer triggers the Zabbix-Agent to acquire the process information of all the pod in the No. 1 container node, and the acquired process information of the pod is reported to the monitoring platform Zabbix. The data uploaded by the Zabbix-Agent to the monitoring platform are container group identification (Id) of each name of container group pod and process information of the pod.
Based on the same concept, an embodiment of the present invention further provides a process monitoring apparatus, as shown in fig. 8, the apparatus includes:
a determining unit 801, configured to determine container information of each container running on a container node; the container information comprises a container identifier and a container group attribute where the container is located;
a processing unit 802, configured to determine, for at least one container, a process record of the container according to the container information; establishing a mapping relation between at least one piece of process information in the process record and the container group attribute of the container; the process record is obtained by a monitoring agent deployed on the container node.
Further, for the apparatus, the container information further includes a container attribute; the processing unit 802 is further configured to determine, from the containers, a container with a container attribute as the service attribute.
Further, for the apparatus, the container group attribute comprises a container group identification; the determining unit 801 is specifically configured to determine, according to the container identifier of the container and the container group identifier of the container, a process file corresponding to the container identifier; and acquiring a process record corresponding to the container identifier from the process file.
Further, for the apparatus, the container group attribute further includes a container group name; the processing unit 802 is further configured to report the container group name and the process information having the mapping relationship to the monitoring platform through the monitoring agent.
Further, for the apparatus, the mapping relationship includes a container group identifier, a container group name, and process information; the processing unit 802 is specifically configured to report the mapping relationship to the monitoring platform periodically.
Further, for the apparatus, the determining unit 801 is specifically configured to obtain the container information of each container running on the container node by running a preset instruction.
Embodiments of the present invention provide a computing device, which may be specifically a desktop computer, a portable computer, a smart phone, a tablet computer, a Personal Digital Assistant (PDA), and the like. The computing device may include a Central Processing Unit (CPU), memory, input/output devices, etc., the input devices may include a keyboard, mouse, touch screen, etc., and the output devices may include a Display device, such as a Liquid Crystal Display (LCD), a Cathode Ray Tube (CRT), etc.
Memory, which may include Read Only Memory (ROM) and Random Access Memory (RAM), provides the processor with program instructions and data stored in the memory. In an embodiment of the present invention, the memory may be used to store program instructions of the process monitoring method;
and the processor is used for calling the program instructions stored in the memory and executing the process monitoring method according to the obtained program.
The embodiment of the invention provides a computer-readable storage medium, which stores computer-executable instructions, wherein the computer-executable instructions are used for enabling a computer to execute a process monitoring method.
It should be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A process monitoring method, comprising:
determining container information of each container running on a container node; the container information comprises a container identifier and a container group attribute where the container is located;
for at least one container, determining a progress record of the container according to the container information; establishing a mapping relation between at least one piece of process information in the process record and the container group attribute of the container; the process record is obtained by a monitoring agent deployed on the container node.
2. The method of claim 1, wherein the container information further comprises a container attribute;
before determining the process record of the container according to the container information, the method further includes:
and determining the container with the container attribute as the service attribute from the containers.
3. The method of claim 1, wherein the container group attribute comprises a container group identification;
the determining the process record of the container according to the container information includes:
determining a process file corresponding to the container identifier according to the container identifier of the container and the container group identifier of the container;
and acquiring a process record corresponding to the container identifier from the process file.
4. The method of claim 3, wherein the container group attribute further comprises a container group name;
after the mapping relationship between the at least one piece of process information in the process record and the attribute of the container group is established, the method further comprises the following steps:
and reporting the container group name and the process information with the mapping relation to a monitoring platform through the monitoring agent.
5. The method of claim 4, wherein the mapping relationship comprises a container group identification, a container group name, and process information;
and reporting the mapping relation to the monitoring platform periodically.
6. The method of any one of claims 1 to 5,
the determining container information of each container running on a container node includes:
and acquiring container information of each container operated on the container node by operating a preset instruction.
7. A process monitoring apparatus, comprising:
the determining unit is used for determining the container information of each container running on the container node; the container information comprises a container identifier and a container group attribute where the container is located;
the processing unit is used for determining a progress record of the container according to the container information aiming at least one container; establishing a mapping relation between at least one piece of process information in the process record and the container group attribute of the container; the process record is obtained by a monitoring agent deployed on the container node.
8. The apparatus of claim 7, wherein the container information further comprises a container attribute;
the processing unit is further configured to determine, from the containers, a container whose container attribute is a service attribute.
9. A computer device, comprising:
a memory for storing a computer program;
a processor for calling a computer program stored in said memory, for executing the method according to any one of claims 1-6 in accordance with the obtained program.
10. A computer-readable storage medium, characterized in that the storage medium stores a program which, when run on a computer, causes the computer to carry out the method according to any one of claims 1 to 6.
CN202010398355.6A 2020-05-12 2020-05-12 Process monitoring method and device Pending CN111625418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010398355.6A CN111625418A (en) 2020-05-12 2020-05-12 Process monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010398355.6A CN111625418A (en) 2020-05-12 2020-05-12 Process monitoring method and device

Publications (1)

Publication Number Publication Date
CN111625418A true CN111625418A (en) 2020-09-04

Family

ID=72260971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010398355.6A Pending CN111625418A (en) 2020-05-12 2020-05-12 Process monitoring method and device

Country Status (1)

Country Link
CN (1) CN111625418A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631727A (en) * 2020-12-26 2021-04-09 中国农业银行股份有限公司 Method and device for monitoring pod
CN112905407A (en) * 2020-12-28 2021-06-04 山东众阳健康科技集团有限公司 Block chain performance detection method and system based on precompiled contract
CN115328742A (en) * 2022-10-10 2022-11-11 杭州朗和科技有限公司 Container information monitoring method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107528751A (en) * 2017-09-30 2017-12-29 南京卓盛云信息科技有限公司 A kind of system and its management method of dynamic distribution Zabbix monitoring datas
CN109697153A (en) * 2018-12-28 2019-04-30 浙江省公众信息产业有限公司 Monitoring method, monitoring system and computer readable storage medium
CN109743192A (en) * 2018-12-04 2019-05-10 新华三云计算技术有限公司 A kind of container cluster configuration management method and device
CN110262899A (en) * 2019-06-20 2019-09-20 无锡华云数据技术服务有限公司 Monitor component elastic telescopic method, apparatus and controlled terminal based on Kubernetes cluster

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107528751A (en) * 2017-09-30 2017-12-29 南京卓盛云信息科技有限公司 A kind of system and its management method of dynamic distribution Zabbix monitoring datas
CN109743192A (en) * 2018-12-04 2019-05-10 新华三云计算技术有限公司 A kind of container cluster configuration management method and device
CN109697153A (en) * 2018-12-28 2019-04-30 浙江省公众信息产业有限公司 Monitoring method, monitoring system and computer readable storage medium
CN110262899A (en) * 2019-06-20 2019-09-20 无锡华云数据技术服务有限公司 Monitor component elastic telescopic method, apparatus and controlled terminal based on Kubernetes cluster

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
PEROFU: "kubernetes+docker 监控之简介", 《HTTPS://MY.OSCHINA.NET/FUFANGCHUN/BLOG/714530》 *
冰河: "CGroup之——资源隔离(管理CPU资源、控制内存资源、控制可用CPU核心)", 《HTTPS://BLOG.CSDN.NET/L1028386804/ARTICLE/DETAILS/89388408?》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631727A (en) * 2020-12-26 2021-04-09 中国农业银行股份有限公司 Method and device for monitoring pod
CN112631727B (en) * 2020-12-26 2024-02-23 中国农业银行股份有限公司 Monitoring method and device for pod group pod
CN112905407A (en) * 2020-12-28 2021-06-04 山东众阳健康科技集团有限公司 Block chain performance detection method and system based on precompiled contract
CN115328742A (en) * 2022-10-10 2022-11-11 杭州朗和科技有限公司 Container information monitoring method and device, storage medium and electronic equipment
CN115328742B (en) * 2022-10-10 2023-02-17 杭州朗和科技有限公司 Container information monitoring method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US10152382B2 (en) Method and system for monitoring virtual machine cluster
CN111625418A (en) Process monitoring method and device
CN111352800A (en) Big data cluster monitoring method and related equipment
CN105243004A (en) Failure resource detection method and apparatus
CN111400189A (en) Code coverage rate monitoring method and device, electronic equipment and storage medium
CN110275992A (en) Emergency processing method, device, server and computer readable storage medium
CN114048090A (en) K8S-based container cloud platform monitoring method and device and storage medium
CN112100239A (en) Portrait generation method and apparatus for vehicle detection device, server and readable storage medium
CN114490272A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN115480987A (en) Link data display method and device and computer equipment
CN109885431B (en) Method and apparatus for backing up data
CN112346872A (en) Cloud computing capacity expansion method and device based on service call link
CN116205624A (en) Equipment operation management method based on digital twin and related products
CN112583660B (en) Main domain and standby domain test comparison method, device and system of recommendation platform
CN113110970A (en) Method, device, equipment and medium for monitoring components in server working mode
CN114371962A (en) Data acquisition method and device, electronic equipment and storage medium
CN113849356A (en) Equipment testing method and device, electronic equipment and storage medium
CN113268478A (en) Big data analysis method and device, electronic equipment and storage medium
CN111124841A (en) Abnormal page alarming method and device and computer system
CN109766238A (en) Operation platform method for monitoring performance, device and relevant device based on session number
CN115174667B (en) Big data pushing method, system and electronic equipment
CN110601875B (en) Information output method, information output apparatus, management device, and computer-readable storage medium
CN116205461A (en) Service system peak guarantee method, device, equipment, medium and program product
CN115834353A (en) Fault self-healing method, device, equipment, storage medium and computer program product
CN115460453A (en) Method, device and equipment for recording business process and displaying business process

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200904