Container monitoring method and system

A technology of containers and monitoring items, applied in the Internet field, can solve the problems of low efficiency of database synchronization, inability to monitor the running status of containers in real time, and cumbersome manual addition, etc., and achieve the effect of improving synchronization efficiency.

Active Publication Date: 2015-09-30
北京鸿享技术服务有限公司
View PDF6 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the existing technology, if a new container is started inside the Docker host, it is necessary to manually add the monitoring item corresponding to the new container in the zabbix database. This manual adding method is very cumbersome, especially for a Docker host that runs many containers at the same time In other words, the inefficiency of zabbix database synchronization makes the zabbix server unable to monitor the running status of each container in real time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Container monitoring method and system
  • Container monitoring method and system
  • Container monitoring method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0023] figure 1 A flowchart of a method for monitoring a container according to an embodiment of the present invention is shown. Such as figure 1 As shown, the method includes the following steps:

[0024] Step S101, detecting the container list in the host machine, and obtaining the container identification and container monitoring information of the containers recorded in the container list.

[0025] For a host with multiple c...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a container monitoring method and system, wherein the method comprises the following steps of detecting a container list in a host machine, and obtaining the container monitoring information and the container identification of containers, in a survival state, recorded in the container list; providing the container monitoring information and the container identification of the containers recorded by the container list for a database for comparison; if the container identification which is not recorded in the database is recorded in the container list, generating monitoring items according to the container identification and the container monitoring information, and adding the monitoring items into the database. Through the method and the system, a server end database can automatically find change conditions of containers in the host machine. Compared with a complicated mode of manually adding and deleting monitoring items in the prior art, the method has the advantages that the synchronization efficiency is greatly improved, and a server can more favorably monitor the operation state of each container.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a method and system for monitoring containers. Background technique [0002] The LXC (Linux Container) container is a kernel virtualization technology that can provide lightweight virtualization to isolate processes and resources without providing instruction interpretation mechanisms and other complexities of full virtualization. It is equivalent to the namespace (NameSpace) in C++. Containers effectively divide the resources managed by a single operating system into isolated groups to better balance conflicting resource usage needs among the isolated groups. [0003] Docker is an advanced LXC-based container engine open sourced by the PaaS provider dotCloud. The source code is hosted on Github, based on the go language and open source under the Apache2.0 protocol. To put it simply, Docker is a "container" (Linux containers, LXCs) run by a program written in the GO langua...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G05B19/042
CPCG05B19/042
Inventor 赵鹏
Owner 北京鸿享技术服务有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products