CN106371974B - The monitoring method and distribution platform of application program in Docker containers - Google Patents
The monitoring method and distribution platform of application program in Docker containers Download PDFInfo
- Publication number
- CN106371974B CN106371974B CN201610784067.8A CN201610784067A CN106371974B CN 106371974 B CN106371974 B CN 106371974B CN 201610784067 A CN201610784067 A CN 201610784067A CN 106371974 B CN106371974 B CN 106371974B
- Authority
- CN
- China
- Prior art keywords
- zabbix
- docker containers
- monitoring
- item
- distribution platform
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/865—Monitoring of software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention provides the monitoring method and distribution platform of application program in a kind of Docker containers, this method includes:Distribution platform creates the Docker containers of application program in physical machine, and starts Docker containers;Distribution platform obtains monitoring configuration information, monitored item and alarm rule information;Distribution platform is according to monitoring configuration information, the corresponding monitored object of Docker containers and monitored item are created on the director server of the Zabbix of Zabbix monitoring systems, so that the director server of the Zabbix of Zabbix monitoring systems obtains corresponding monitoring data from physical machine, and alarm displaying is carried out according to monitoring data and alarm rule information, if it is determined that the Docker containers of application program meet destruction condition, the Docker containers of application program are then destroyed in physical machine, and according to monitoring configuration information, the corresponding monitored object of Docker containers is destroyed on the director server of the Zabbix of Zabbix monitoring systems, monitored item and alarm rule information.It realizes to being monitored to the dynamic of monitored object when the deployment way of monitored object is the deployment way of elastic telescopic.
Description
Technical field
The present embodiments relate to a kind of monitoring of application program in field of computer technology more particularly to Docker containers
Method and distribution platform.
Background technology
Currently, it as the quick universal of the virtualization container technique of representative and is used, the bullet of application program with using Docker
Property flexible ability obtained unprecedented enhancing.When application program load too high, can be created according to docker mirror image dynamics
The docker containers for building application program carry out the bearing capacity of extension application, and after application program load declines, then dynamic is sold
Docker containers are ruined to reduce idle and waste of the application program to resource.
Monitoring system can under complicated dynamic retractility mechanism as the operation and maintenance tools that application program is monitored and controlled
The state and problem of operation system and application program promptly and accurately, effect will be more and more important.Meanwhile it being distributed
Under formula application environment, monitoring system needs to manage a large amount of monitored object, is equally faced with huge performance pressures.
In existing monitoring system, predominantly zabbix monitoring systems.The zabbix monitoring systems have distributed total
Server/Monitor Daemon Server pattern.Wherein, Monitor Daemon Server, for collection monitoring data and cache and send to
Director server, when monitored object it is large number of when, this pattern can simplify the maintenance of zabbix monitoring systems, reduce total service
The load of device.
The zabbix monitoring systems of the prior art provide the automatic discovery feature of part monitored object, are elasticity in monitored object
When flexible deployment way, if monitored object carries out auto-destruct, the deployment system of monitored object is not notified that zabbix is supervised
Control system makes zabbix monitoring systems continue to be monitored monitored object, makes zabbix monitoring systems that can not distinguish monitoring
Object is abnormal delay machine or normal destruction, be can not achieve when the deployment way of monitored object being made to be the deployment way of elastic telescopic
Dynamic monitoring to monitored object.
Invention content
The embodiment of the present invention provides the monitoring method and distribution platform of application program in a kind of Docker containers, solves existing
It can not achieve to the monitoring of the dynamic of monitored object when to have the deployment way of monitored object in technology be the deployment way of elastic telescopic
The technical issues of.
The embodiment of the present invention provides a kind of monitoring method of application program in Docker containers, including:
Distribution platform creates the Docker containers of application program in physical machine, and starts the Docker containers;
The distribution platform obtains monitoring configuration information, monitored item and alarm rule information;
The distribution platform is created according to monitoring configuration information on the director server of the Zabbix of Zabbix monitoring systems
The corresponding monitored object of the Docker containers and monitored item, so that the director server of the Zabbix of the Zabbix monitoring systems
Corresponding monitoring data is obtained from the physical machine, and alarm exhibition is carried out according to monitoring data and the alarm rule information
Show;
The distribution platform is then sold in the physical machine if it is determined that the Docker containers of application program meet destruction condition
The Docker containers of application program are ruined, and according to the monitoring configuration information, in total clothes of the Zabbix of Zabbix monitoring systems
The corresponding monitored object of the Docker containers, monitored item and alarm rule information are destroyed on business device.
The embodiment of the present invention provides a kind of distribution platform, including:
First creation module, the Docker containers for creating application program in physical machine, and start the Docker
Container;
Acquisition module obtains monitoring configuration information, monitored item and alarm rule information for the distribution platform;
Second creation module is used for according to monitoring configuration information, in the director server of the Zabbix of Zabbix monitoring systems
It is upper to create the corresponding monitored object of the Docker containers and monitored item, so that the Zabbix's of the Zabbix monitoring systems is total
Server obtains corresponding monitoring data from the physical machine, and is reported according to monitoring data and the alarm rule information
Alert displaying;
Module is destroyed, for if it is determined that the Docker containers of application program meet destruction condition, then in the physical machine
Destroy the Docker containers of application program, and according to the monitoring configuration information, Zabbix monitoring systems Zabbix it is total
The corresponding monitored object of the Docker containers, monitored item and alarm rule information are destroyed on server.
The embodiment of the present invention provides the monitoring method and distribution platform of application program in a kind of Docker containers, passes through publication
Platform creates the Docker containers of application program in physical machine, and starts Docker containers;Distribution platform obtains monitoring configuration
Information, monitored item and alarm rule information;Distribution platform is according to monitoring configuration information, in the Zabbix of Zabbix monitoring systems
The corresponding monitored object of Docker containers and monitored item are created on director server, so that the Zabbix's of Zabbix monitoring systems is total
Server obtains corresponding monitoring data from physical machine, and carries out alarm displaying according to monitoring data and alarm rule information,
Distribution platform then destroys application program if it is determined that the Docker containers of application program meet destruction condition in physical machine
Docker containers, and according to monitoring configuration information, Docker is destroyed on the director server of the Zabbix of Zabbix monitoring systems
The corresponding monitored object of container, monitored item and alarm rule information.Establishment due to Docker containers and Zabbix monitoring systems
The establishment of middle monitored object and monitored item is carried out by distribution platform is unified, and destruction and the Zabbix monitoring of Docker containers
The destruction of monitored object and monitored item is unified in system carries out, and realizes to portion that the deployment way of monitored object is elastic telescopic
To the dynamic creation of monitored object and destruction when management side formula, when ensure that the establishment and destruction of Docker containers, monitored object and
Monitored item is also created and is destroyed together, when carrying out auto-destruct so as to avoid monitored object in the prior art, is continued to monitoring
The phenomenon that object is monitored realizes the dynamic monitoring to monitored object.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Some bright embodiments for those of ordinary skill in the art without having to pay creative labor, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is the flow chart of the monitoring method embodiment one of application program in Docker containers of the present invention;
Fig. 2 is the flow chart of the monitoring method embodiment two of application program in Docker containers of the present invention;
Fig. 3 is the signaling process figure of the monitoring method embodiment three of application program in Docker containers of the present invention;
Fig. 4 is the structural schematic diagram of distribution platform embodiment one of the present invention;
Fig. 5 is the structural schematic diagram of distribution platform embodiment two of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation of description affiliated partner, indicate
There may be three kinds of relationships, for example, A and/or B, can indicate:Individualism A, exists simultaneously A and B, individualism B these three
Situation.In addition, character "/" herein, it is a kind of relationship of "or" to typically represent forward-backward correlation object.
Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
Fig. 1 is the flow chart of the monitoring method embodiment one of application program in Docker containers of the present invention, as shown in Figure 1,
Executive agent provided in this embodiment is the distribution platform of application program, which can be located at computer or server
Using.Then the connection control method of WIFI hot spot service provided in this embodiment includes following steps.
Step 101, distribution platform creates the Docker containers of application program in physical machine, and starts Docker containers.
Specifically, in the present embodiment, application program can dynamic retractility dispose.Held by Docker in application program
When device is deployed in physical machine, distribution platform creates the Docker containers of application program in physical machine, and starts Docker appearances
Device.
Wherein, each application program can be deployed in by multiple Docker containers in physical machine.It was loaded in application program
Gao Shi can create and start the bearing capacity that Docker containers carry out extension application.
Step 102, distribution platform obtains monitoring configuration information, monitored item and alarm rule information.
Wherein, monitoring configuration information is the configuration information of Zabbix monitoring systems, as included being supervised in Zabbix monitoring systems
Control director server, the IP address information of Monitor Daemon Server, port information etc..
Wherein, monitored item is the corresponding monitor control index of monitored object, and monitored object may include:In physical machine and physical machine
Application program in Docker containers.Monitored item corresponding to physical machine can be:CPU usage, memory usage, network make
With rate etc., which is universal monitor item.Correspond to the monitored item that all physical machines carry out, which is identical.
Monitored item corresponding to the application program in Docker containers is the specifically monitored item of the application program in the Docker containers.It should
For monitored item according to the difference of the application program in the Docker containers of monitoring, which can be different.
Wherein, alarm rule information, i.e., the information alarmed under conditions of meeting alarm rule in monitoring data.Needle
For different monitored item, alarm rule information is different.
Specifically, monitored item and alarm rule information are the configuration information of application program, in the present embodiment, can be matched monitoring
Confidence ceases and the configuration information of application program is respectively stored on configuration center device, which can be computer
Or server etc..
Step 103, distribution platform is according to monitoring configuration information, on the director server of the Zabbix of Zabbix monitoring systems
The corresponding monitored object of Docker containers and monitored item are created, so that the director server of the Zabbix of Zabbix monitoring systems is from object
Corresponding monitoring data is obtained on reason machine, and alarm displaying is carried out according to monitoring data and alarm rule information.
Specifically, in the present embodiment, distribution platform obtains Zabbix in Zabbix monitoring systems according to monitoring configuration information
Director server and Zabbix Monitor Daemon Server IP address and the information such as port, in total clothes of Zabbix
It is engaged in creating the corresponding monitored object of Docker containers and the corresponding monitored item of the monitored object on device, and alarm rule is added
Enter into monitored object.After creating monitored object and monitored item on the director server of Zabbix, the monitoring agent of Zabbix takes
Business device is communicated with the physical machine of monitoring, and monitoring data is obtained from physical machine.And monitoring data is sent to Zabbix's
Director server to be collected, be shown to monitoring data by Zabbix monitoring director servers, and is advised according to monitoring data and alarm
Then information judges whether monitoring data meets alert if, if meeting, carries out the corresponding policer operations such as alarm displaying.
In the present embodiment, after distribution platform gets monitoring configuration information, monitoring configuration information is sent to physical machine
Docker containers and Docker proxy machines, and the application program of the Docker containers in physical machine gets corresponding application
Programme setting, including monitored item and alarm rule information, Docker containers are monitored itself according to monitored item, are formed
Specifically monitored data, Docker proxy machines are monitored physical machine according to monitored item, form universal monitor data.And according to prison
Configuration information is controlled, specifically monitored data and universal monitor data are sent to the Monitor Daemon Server of Zabbix monitoring systems.
Step 104, distribution platform is then sold in physical machine if it is determined that the Docker containers of application program meet destruction condition
The Docker containers of application program are ruined, and according to monitoring configuration information, in the director server of the Zabbix of Zabbix monitoring systems
The corresponding monitored object of upper destruction Docker containers, monitored item and alarm rule information.
In the present embodiment, if the Docker containers of application program meet destruction condition, distribution platform is sold in physical machine
The Docker containers of application program are ruined, specific destroy does not limit in condition the present embodiment.Such as can be to get using journey
Sequence is supported on predetermined threshold value hereinafter, can also be that distribution platform receives destruction instruction of Docker containers etc..
In the present embodiment, after the Docker containers that distribution platform destroys application program in physical machine, together will
The corresponding monitored object of Docker containers, monitored item and the alarm rule on the director server of the Zabbix of Zabbix monitoring systems
Information is destroyed.Specifically, in the present embodiment, distribution platform according to monitoring configuration information, get to Docker containers into
The director server of Zabbix and the IP address of Monitor Daemon Server of row monitoring and port, carry out with Zabbix monitoring systems
Corresponding monitored object on the director server of Zabbix and the monitored item in the monitored object and alarm rule are believed in communication
Breath is destroyed.
The monitoring method of application program in Docker containers provided in this embodiment, is created by distribution platform in physical machine
The Docker containers of application program are built, and start Docker containers;Distribution platform obtains monitoring configuration information, monitored item and alarm
Rule Information;Distribution platform is created according to monitoring configuration information on the director server of the Zabbix of Zabbix monitoring systems
The corresponding monitored object of Docker containers and monitored item, so that the director server of the Zabbix of Zabbix monitoring systems is from physical machine
It is upper to obtain corresponding monitoring data, and alarm displaying is carried out according to monitoring data and alarm rule information;Distribution platform if it is determined that
The Docker containers of application program meet destruction condition, the Docker containers of application program are destroyed in physical machine, and according to prison
Control configuration information, destroyed on the director server of the Zabbix of Zabbix monitoring systems the corresponding monitored object of Docker containers,
Monitored item and alarm rule information.Monitored object and monitored item in establishment and Zabbix monitoring systems due to Docker containers
Create and carried out by distribution platform is unified, and Docker containers destruction and Zabbix monitoring systems in monitored object and monitoring
Destruction it is unified carry out, realize to when the deployment way of monitored object is the deployment way of elastic telescopic to monitored object
Dynamic creation and destruction, when ensure that the establishment and destruction of Docker containers, monitored object and monitored item are also created and are sold together
It ruins, when carrying out auto-destruct so as to avoid monitored object in the prior art, the phenomenon that continuing to be monitored monitored object is sent out
It is raw, realize the dynamic monitoring to monitored object.
Fig. 2 is the flow chart of the monitoring method embodiment two of application program in Docker containers of the present invention, as shown in Fig. 2,
The monitoring method of application program is compared to application program in Docker containers of the present invention in Docker containers provided in this embodiment
Monitoring method embodiment one, be a particularly preferred embodiment, then apply journey in Docker containers provided in this embodiment
The monitoring method of sequence includes the following steps.
Step 201, distribution platform creates the Docker containers of application program in physical machine, and starts Docker containers.
In the present embodiment, the realization method of step 201 and the realization method phase of the step 101 in the embodiment of the present invention one
Together, this is no longer going to repeat them.
Step 202, distribution platform obtains monitoring configuration information.
Further, in this embodiment be stored with monitoring configuration information on configuration center device, distribution platform is from configuration
Monitoring configuration information is obtained on center fixture.
Step 203, distribution platform obtains universal monitor item.
Wherein, universal monitor item is obtained from the director server of the Zabbix of Zabbix monitoring systems.
It is specifically included further, in this embodiment distribution platform obtains universal monitor item:
First, distribution platform creates universal monitor item template on the director server of the Zabbix of Zabbix monitoring systems.
Specifically, universal monitor item template includes the monitored item being monitored to all physical machines, as monitored item includes:
CPU usage, memory usage, network usage etc..
Then, distribution platform obtains universal monitor item template from the director server of the Zabbix of Zabbix monitoring systems,
Form universal monitor item.
It specifically,, can when the application program during distribution platform is Docker containers creates monitored object in the present embodiment
Universal monitor item template is directly multiplexed on monitored object, the universal monitor item of the monitored object is formed.So the step
It can be executed when executing step 205.Step 204, distribution platform obtains specifically monitored item and alarm rule information.
Wherein, specifically monitored item and alarm rule information are obtained from Docker containers.
Further, in this embodiment distribution platform obtains specifically monitored item and alarm rule information specifically includes:
Distribution platform calls the corresponding application programming interfaces of Docker containers, obtains specifically monitored item and alarm rule letter
Breath.
Wherein, the corresponding specifically monitored item of application program and alarm rule information in Docker containers are Docker containers
In application program obtain from configuration center device.
Specifically, in the present embodiment, the Docker containers of application program is created in distribution platform and start Docker containers
Afterwards, physical machine obtains the corresponding specifically monitored item of the application program and alarm rule information from configuration center device.Publication is flat
Platform calls the corresponding application programming interfaces of Docker containers, obtains specifically monitored item and alarm rule information.
Step 205, distribution platform is according to monitoring configuration information, on the director server of the Zabbix of Zabbix monitoring systems
The corresponding monitored object of Docker containers and monitored item are created, so that the director server of the Zabbix of Zabbix monitoring systems is from object
Corresponding monitoring data is obtained on reason machine, and alarm displaying is carried out according to monitoring data and alarm rule information.
Further, in this embodiment distribution platform is according to monitoring configuration information, in the Zabbix of Zabbix monitoring systems
Director server on both included specifically monitored item or including universal monitor item in the monitored item that creates.
Step 206, distribution platform is then sold in physical machine if it is determined that the Docker containers of application program meet destruction condition
The Docker containers of application program are ruined, and according to monitoring configuration information, in the director server of the Zabbix of Zabbix monitoring systems
The corresponding monitored object of upper destruction Docker containers, monitored item and alarm rule information.
Further, in this embodiment distribution platform is destroyed on the director server of the Zabbix of Zabbix monitoring systems
Monitored item both included specifically monitored item or including universal monitor item.
The monitoring method of application program in Docker containers provided in this embodiment, is created by distribution platform in physical machine
The Docker containers of application program are built, and start Docker containers, obtain monitoring configuration information and universal monitor item, are obtained specific
Monitored item and alarm rule information are created according to monitoring configuration information on the director server of the Zabbix of Zabbix monitoring systems
The corresponding monitored object of Docker containers and monitored item are built, so that the director server of the Zabbix of Zabbix monitoring systems is from physics
Corresponding monitoring data is obtained on machine, and alarm displaying is carried out according to monitoring data and alarm rule information, is sold in physical machine
The Docker containers of application program are ruined, and according to monitoring configuration information, in the director server of the Zabbix of Zabbix monitoring systems
The corresponding monitored object of upper destruction Docker containers, monitored item and alarm rule information, not only realize and are moved to monitored object
State monitors, and realizes the monitoring to specifically monitored item in monitored object, can be to the different Docker in same physical machine
The different monitoring item of application program in container is monitored.
Fig. 3 is the signaling process figure of the monitoring method embodiment three of application program in Docker containers of the present invention, such as Fig. 3 institutes
Show, the monitoring method of application program includes the following steps in Docker containers provided in this embodiment.
Step 301, distribution platform creates the Docker containers of application program in physical machine, and starts Docker containers.
Step 302, physical machine obtains the corresponding Application Monitoring information of Docker containers from configuration center device.
Wherein, Application Monitoring information includes specifically monitored item and alarm rule information.
Step 303, distribution platform obtains monitoring configuration information from configuration center.
Step 304, distribution platform calls the corresponding application programming interfaces of Docker containers, obtains specifically monitored item and alarm
Rule Information.
Step 305, monitoring configuration information is sent to physical machine by distribution platform.
In the present embodiment, the corresponding application programming interfaces of Docker containers are called, specifically monitored item and report are not only got
Alert Rule Information, and monitoring configuration information is sent to physical machine, so that the Docker containers in physical machine and Docker generations
Reason machine knows monitoring configuration information.
Step 306, distribution platform is according to monitoring configuration information, on the director server of the Zabbix of Zabbix monitoring systems
Create the corresponding monitored object of Docker containers and monitored item.
It specifically,, will be specifically monitored when creating the corresponding monitored object of Docker containers and monitored item in the present embodiment
Item and universal monitor Xiang Jun are added in monitored object.When universal monitor item to be added in monitored item, directly by Zabbix
Universal monitor item template in the director server of the Zabbix of monitoring system is multiplexed into monitored object.
Step 307, physical machine is monitored the application program in Docker containers according to specifically monitored item, according to general
Monitored item is monitored physical machine.
Specifically, the Docker containers in physical machine carry out the application program in Docker containers according to specifically monitored item
Monitoring, forms specifically monitored data.Docker proxy machines are monitored physical machine according to universal monitor item, form universal monitor
Data.
Step 308, monitoring data is sent to the monitoring generation of Zabbix monitoring systems according to monitoring configuration information by physical machine
Server is managed, and monitoring data is sent to the director server of Zabbix by Monitor Daemon Server.
Step 309, Zabbix monitoring systems are collected monitoring data, show, and are advised according to monitoring data and alarm
Then information judges whether monitoring data meets alert if, if meeting, carries out alarm displaying.
Step 310, distribution platform is then sold in physical machine if it is determined that the Docker containers of application program meet destruction condition
Ruin the Docker containers of application program.
Step 311, it according to monitoring configuration information, is destroyed on the director server of the Zabbix of Zabbix monitoring systems
The corresponding monitored object of Docker containers, monitored item and alarm rule information.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or
The various media that can store program code such as person's CD.
Fig. 4 is the structural schematic diagram of distribution platform embodiment one of the present invention, as shown in figure 4, the publication that the embodiment provides
Platform includes:First creation module 41, acquisition module 42, the second creation module 43 and destruction module 44.
Wherein, the first creation module 41, the Docker containers for creating application program in physical machine, and start
Docker containers.Acquisition module 42, for obtaining monitoring configuration information, monitored item and alarm rule information.Second creation module
43, for according to monitoring configuration information, Docker containers pair to be created on the director server of the Zabbix of Zabbix monitoring systems
The monitored object and monitored item answered so that the director server of the Zabbix of Zabbix monitoring systems obtained from physical machine it is corresponding
Monitoring data, and alarm displaying is carried out according to monitoring data and alarm rule information.Module 44 is destroyed, for if it is determined that using journey
The Docker containers of sequence meet destruction condition, then the Docker containers of application program are destroyed in physical machine, and are matched according to monitoring
Confidence ceases, and the corresponding monitored object of Docker containers, monitoring are destroyed on the director server of the Zabbix of Zabbix monitoring systems
Item and alarm rule information.
Fig. 5 is the structural schematic diagram of distribution platform embodiment two of the present invention;As shown in figure 5, the present embodiment is sent out in the present invention
On the basis of cloth platform embodiment one, acquisition module 42 includes:First acquisition unit 421 and second acquisition unit 422.
Wherein, first acquisition unit 421, for obtaining specifically monitored item and alarm rule information.Second acquisition unit
422, for obtaining universal monitor item.Wherein, specifically monitored item is obtained from Docker containers, universal monitor item be from
It is obtained in the director server of the Zabbix of Zabbix monitoring systems.
Further, first acquisition unit 421 are specifically used for:Distribution platform calls Docker containers are corresponding to apply journey
Sequence interface obtains specifically monitored item and alarm rule information;Wherein, the application program in Docker containers is corresponding specifically monitored
Item and alarm rule information are that the application program in Docker containers is obtained from configuration center device.
Further, second acquisition unit 422 are specifically used for:Zabbix of the distribution platform in Zabbix monitoring systems
Universal monitor item template is created on director server;Distribution platform is obtained from the director server of the Zabbix of Zabbix monitoring systems
Universal monitor item template forms universal monitor item.
Distribution platform provided in this embodiment can execute the technical solution of embodiment of the method shown in Fig. 2 and Fig. 3, realize
Principle is similar with technique effect, and details are not described herein again.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to
So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into
Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (8)
1. the monitoring method of application program in a kind of Docker containers, which is characterized in that including:
Distribution platform creates the Docker containers of application program in physical machine, and starts the Docker containers;
The distribution platform obtains monitoring configuration information, monitored item and alarm rule information;
The distribution platform according to monitoring configuration information, obtain in Zabbix monitoring systems the director server of Zabbix and
The IP address and port information of the Monitor Daemon Server of Zabbix, in total service of the Zabbix of Zabbix monitoring systems
The corresponding monitored object of the Docker containers and monitored item are created on device, so that the Zabbix of the Zabbix monitoring systems
Director server obtains corresponding monitoring data from the physical machine, and is carried out according to monitoring data and the alarm rule information
Alarm displaying;
The distribution platform is then destroyed in the physical machine and is answered if it is determined that the Docker containers of application program meet destruction condition
With the Docker containers of program, and according to the monitoring configuration information, in the director server of the Zabbix of Zabbix monitoring systems
It is upper to destroy the corresponding monitored object of the Docker containers, monitored item and alarm rule information.
2. according to the method described in claim 1, it is characterized in that, which is characterized in that the distribution platform obtain monitored item and
Alarm rule information specifically includes:
The distribution platform obtains specifically monitored item and alarm rule information;
The distribution platform obtains universal monitor item;
Wherein, the specifically monitored item and alarm rule information are obtained from the Docker containers, the universal monitor
Item is obtained from the director server of the Zabbix of Zabbix monitoring systems.
3. according to the method described in claim 2, it is characterized in that, the distribution platform obtains specifically monitored item and alarm rule
Information specifically includes:
The distribution platform calls the corresponding application programming interfaces of the Docker containers, obtains specifically monitored item and alarm rule
Information;
Wherein, the corresponding specifically monitored item of application program in the Docker containers and alarm rule information are the Docker
What the application program in container was obtained from configuration center device.
4. according to the method described in claim 2, it is characterized in that, distribution platform acquisition universal monitor item specifically includes:
The distribution platform creates universal monitor item template on the director server of the Zabbix of the Zabbix monitoring systems;
The distribution platform obtains universal monitor item template, shape from the director server of the Zabbix of the Zabbix monitoring systems
At universal monitor item.
5. a kind of distribution platform, which is characterized in that including:
First creation module, the Docker containers for creating application program in physical machine, and start the Docker containers;
Acquisition module, for obtaining monitoring configuration information, monitored item and alarm rule information;
Second creation module, for according to monitoring configuration information, obtain the director server of Zabbix in Zabbix monitoring systems with
And the IP address and port information of the Monitor Daemon Server of Zabbix, in total clothes of the Zabbix of Zabbix monitoring systems
The corresponding monitored object of the Docker containers and monitored item are created on business device, so that the Zabbix of the Zabbix monitoring systems
Director server obtain corresponding monitoring data from the physical machine, and according to monitoring data and the alarm rule information into
Row alarm displaying;
Module is destroyed, for if it is determined that the Docker containers of application program meet destruction condition, then being destroyed in the physical machine
The Docker containers of application program, and according to the monitoring configuration information, in total service of the Zabbix of Zabbix monitoring systems
The corresponding monitored object of the Docker containers, monitored item and alarm rule information are destroyed on device.
6. distribution platform according to claim 5, which is characterized in that the acquisition module, including:
First acquisition unit, for obtaining specifically monitored item and alarm rule information;
Second acquisition unit, for obtaining universal monitor item;
Wherein, the specifically monitored item is obtained from the Docker containers, and the universal monitor item is supervised from Zabbix
It is obtained in the director server of the Zabbix of control system.
7. distribution platform according to claim 6, which is characterized in that the first acquisition unit is specifically used for:
The corresponding application programming interfaces of the Docker containers are called, specifically monitored item and alarm rule information are obtained;Wherein, institute
It is answering in the Docker containers to state the corresponding specifically monitored item of the application program in Docker containers and alarm rule information
It is obtained from configuration center device with program.
8. distribution platform according to claim 6, which is characterized in that the second acquisition unit is specifically used for:
Universal monitor item template is created on the director server of the Zabbix of the Zabbix monitoring systems;It is supervised from the Zabbix
Universal monitor item template is obtained on the director server of the Zabbix of control system, forms universal monitor item.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610784067.8A CN106371974B (en) | 2016-08-30 | 2016-08-30 | The monitoring method and distribution platform of application program in Docker containers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610784067.8A CN106371974B (en) | 2016-08-30 | 2016-08-30 | The monitoring method and distribution platform of application program in Docker containers |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106371974A CN106371974A (en) | 2017-02-01 |
CN106371974B true CN106371974B (en) | 2018-11-09 |
Family
ID=57899148
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610784067.8A Active CN106371974B (en) | 2016-08-30 | 2016-08-30 | The monitoring method and distribution platform of application program in Docker containers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106371974B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106992887A (en) * | 2017-04-05 | 2017-07-28 | 国家电网公司 | The implementation method of application example elastic telescopic based on container, apparatus and system |
CN107294772B (en) * | 2017-05-23 | 2020-09-01 | 中电万维信息技术有限责任公司 | Dynamic management monitoring service system combined with Docker |
CN107846442A (en) * | 2017-08-02 | 2018-03-27 | 上海数烨数据科技有限公司 | It is a kind of to increase the method for customizing passage gathered data based on Zabbix aggressive modes |
CN107463410A (en) * | 2017-08-11 | 2017-12-12 | 四川长虹电器股份有限公司 | A kind of method disposed with monitoring online platform application |
CN107908521A (en) * | 2017-11-10 | 2018-04-13 | 南京邮电大学 | A kind of monitoring method of container performance on the server performance and node being applied under cloud environment |
US10585745B2 (en) | 2017-11-28 | 2020-03-10 | International Business Machines Corporation | Prevention of application container failure between replicated containers |
CN107908461A (en) * | 2017-12-01 | 2018-04-13 | 广东电网有限责任公司佛山供电局 | A kind of resource dynamic retractility device and implementation method based on Docker |
CN108156225B (en) * | 2017-12-15 | 2021-02-05 | 南瑞集团有限公司 | Micro-application monitoring system and method based on container cloud platform |
CN109426597B (en) * | 2017-12-21 | 2022-04-12 | 中国平安人寿保险股份有限公司 | Application performance monitoring method, device, equipment, system and storage medium |
CN109120481B (en) * | 2018-09-27 | 2021-06-04 | 上海新炬网络信息技术股份有限公司 | Method for monitoring DCOS container and internal middleware based on Zabbix open source component |
CN109542403A (en) * | 2018-10-12 | 2019-03-29 | 浙江托普云农科技股份有限公司 | A kind of project integrated system and project integrated approach based on agriculture Internet of Things PaaS cloud platform |
CN109547237A (en) * | 2018-11-02 | 2019-03-29 | 航天信息股份有限公司 | A kind of monitoring system and method for web application |
CN109918116B (en) * | 2019-03-12 | 2022-05-27 | 中国工商银行股份有限公司 | Operation and maintenance object supporting method and system |
CN110297739A (en) * | 2019-06-04 | 2019-10-01 | 平安科技(深圳)有限公司 | The data monitoring method and relevant device of platform are administered based on data |
CN112685247B (en) * | 2020-12-24 | 2024-01-12 | 京东方科技集团股份有限公司 | Alarm suppression method based on Zabbix monitoring system and monitoring system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009014493A8 (en) * | 2007-07-20 | 2009-04-30 | Eg Innovations Pte Ltd | Monitoring system for virtual application environments |
CN104899126A (en) * | 2015-06-12 | 2015-09-09 | 北京奇虎科技有限公司 | Method, device and system for performing local real-time monitoring on containers in host |
CN104991821A (en) * | 2015-06-29 | 2015-10-21 | 北京奇虎科技有限公司 | Monitor task batch processing method and apparatus |
-
2016
- 2016-08-30 CN CN201610784067.8A patent/CN106371974B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009014493A8 (en) * | 2007-07-20 | 2009-04-30 | Eg Innovations Pte Ltd | Monitoring system for virtual application environments |
CN104899126A (en) * | 2015-06-12 | 2015-09-09 | 北京奇虎科技有限公司 | Method, device and system for performing local real-time monitoring on containers in host |
CN104991821A (en) * | 2015-06-29 | 2015-10-21 | 北京奇虎科技有限公司 | Monitor task batch processing method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN106371974A (en) | 2017-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106371974B (en) | The monitoring method and distribution platform of application program in Docker containers | |
US11310286B2 (en) | Mechanism for providing external access to a secured networked virtualization environment | |
CN102346779B (en) | Distributed file system and master control node backup method | |
EP3221795B1 (en) | Service addressing in distributed environment | |
JP4980792B2 (en) | Virtual machine performance monitoring method and apparatus using the method | |
CN102981931B (en) | Backup method and device for virtual machine | |
WO2017071460A1 (en) | Container monitoring method and apparatus | |
US20170116014A1 (en) | Policy based application monitoring in virtualized environment | |
CN107729185B (en) | Fault processing method and device | |
EP3330855A1 (en) | Managing hardware resources | |
CN105357042B (en) | A kind of highly available cluster system and its host node and from node | |
CN105812169B (en) | A kind of switch between master and slave machines method and device | |
CN108111559B (en) | Application software deployment system and method | |
JP2004152280A (en) | Damaged file system detection method and device | |
CN105262640A (en) | System and method for improving reliability of cloud platform server, and disposition framework of system | |
US7315959B2 (en) | Real-time remote backup system and related method | |
CN114625535A (en) | Service deployment method and device for multiple Kubernetes clusters | |
US20190034305A1 (en) | Failover device ports | |
CN104956346A (en) | Controlling error propagation due to fault in computing node of a distributed computing system | |
JP5597293B2 (en) | Computer system and program | |
CN112559565A (en) | Abnormity detection method, system and device | |
JP6828558B2 (en) | Management device, management method and management program | |
CN113127258A (en) | Data backup method, device, equipment and medium | |
CN115080309A (en) | Data backup system, method, storage medium, and electronic device | |
CN114172917B (en) | Distributed cache system and deployment method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |