CN108540341A - resource monitoring method and device - Google Patents
resource monitoring method and device Download PDFInfo
- Publication number
- CN108540341A CN108540341A CN201810224899.3A CN201810224899A CN108540341A CN 108540341 A CN108540341 A CN 108540341A CN 201810224899 A CN201810224899 A CN 201810224899A CN 108540341 A CN108540341 A CN 108540341A
- Authority
- CN
- China
- Prior art keywords
- monitoring
- message
- cloud computing
- virtual machine
- management 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1061—Peer-to-peer [P2P] networks using node-based peer discovery mechanisms
- H04L67/1065—Discovery involving distributed pre-established resource-based relationships among peers, e.g. based on distributed hash tables [DHT]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/4557—Distribution of virtual machine instances; Migration and load balancing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to monitoring resource technical field, a kind of resource monitoring method and device are provided.This method is applied to the monitoring system being monitored to the virtual machine of cloud computing management platform.In monitoring, the monitoring system first listens to obtain the operation information generated when cloud computing management platform operates virtual machine, the operation information for being then based on acquisition updates monitored object corresponding with virtual machine, and the monitoring data of updated monitored object is finally obtained from cloud computing management platform.As it can be seen that this method can go the monitoring data for acquiring updated monitored object on this basis, can obtain accurate monitoring data by the state of snoop-operations message real-time synchronization monitored object and practical virtual machine.Meanwhile this snoop procedure is automatically performed, and is not necessarily to manual configuration, is helped to improve the O&M efficiency of monitoring system.In addition, monitoring system is run independently of cloud computing management platform, the problem of the monitoring capacity deficiency of cloud computing management platform itself can be improved.
Description
Technical field
Monitoring resource technical field of the present invention, in particular to a kind of resource monitoring method and device.
Background technology
Cloud computing service allows user by shared computing resource, network bandwidth, storage pool, runs application program or service
Evaluation work is completed, by virtualization technology, service is provided for multiple virtual machines shared resource virtualizing.In order to ensure
The availability of basic environment and business application system is controlled in the normal operation of these resources of virtual machine in time, obtains various components
Operating status such as CPU utilization rate, system load, service operation etc., need to be monitored resources of virtual machine.It realizes
Monitoring mainly needs to realize two parts function:The part of data acquisition and analysis to gathered data, displaying and alarm part.
OpenStack is a cloud platform management project of increasing income, with open design concept, open exploitation
Pattern, open community, this makes OpenStack become the nowadays the most popular available cloud computing solution party that increases income of one kind
One of case.Ceilometer is the project for monitoring metering inside OpenStack, and Ceilometer, which can be used as, provides virtual machine
Source carries out one of the data source of data acquisition, but it is weaker for the analysis of gathered data, displaying and alarm ability, cannot
Fully meet monitoring demand of the user for resources of virtual machine.
Zabbix is an enterprise-level, increase income, distributed monitoring system, can be with resources such as monitoring device, services
Availability and performance, support a variety of acquisition modes and acquisition client, have dedicated agency (Zabbix Agent), acquiring
When the various protocols such as SNMP, IPMI, JMX, Telnet, SSH, Zabbix can also be supported to have flexible alarming mechanism, Ke Yili
The interface that shows that abundant in content report and patterned way are provided with storage data, helps user to understand resource status and resource
Use planning.Meanwhile simple, the abundant extended capability of installation and the configuration of Zabbix, the characteristics such as increase income are selection Zabbix
Come the reasons why building monitoring system.
But it currently, when using being monitored to resources of virtual machine based on the monitoring system that Zabbix is built, needs manually
The information of monitored object is inserted to be monitored acquisition, on the one hand manual mode makes monitoring system O&M efficiency substantially reduce,
On the other hand if being changed for newly-increased resources of virtual machine or old resources of virtual machine, if without manual in time
Change the data of monitored object, it will the monitored object in monitoring system and the nonsynchronous shape of actual resources of virtual machine occur
Condition, to cannot timely and accurately reflect the current state of resources of virtual machine.
Invention content
In view of this, a kind of resource monitoring method of offer of the embodiment of the present invention and device, are applied to independently of cloud computing pipe
The monitoring system of platform, to solve the above technical problems.
To achieve the above object, the present invention provides the following technical solutions:
In a first aspect, the embodiment of the present invention provides a kind of resource monitoring method, it is applied to the monitoring of cloud computing management platform
System, including:
Monitor the operation information for obtaining and being generated when cloud computing management platform operates virtual machine;
Monitored object corresponding with virtual machine is updated based on operation information;
The monitoring data of updated monitored object is obtained from cloud computing management platform.
Second aspect, the embodiment of the present invention provide a kind of monitoring resource device, are applied to independently of cloud computing management platform
Monitoring system, including:
Message monitors module, disappears for monitoring the operation for obtaining and being generated when cloud computing management platform operates virtual machine
Breath;
Data update module, for updating monitored object corresponding with virtual machine based on operation information;
Data acquisition module, the monitoring data for obtaining updated monitored object from cloud computing management platform.
The advantageous effect that the present invention realizes:Resource monitoring method and device provided in an embodiment of the present invention are applied to cloud
The monitoring system that the resources of virtual machine that management of computing platform is managed is monitored.It is built in monitoring system and cloud computing management platform
After vertical connection, the operation information generated when cloud computing management platform operates virtual machine is obtained by listening mode first,
The operation information for being then based on acquisition updates monitored object corresponding with virtual machine, is finally updated from cloud computing management platform
The monitoring data of monitored object afterwards.
Since the cloud computing management platform in the embodiment of the present invention is all complete by operation information for the operation of virtual machine
At, therefore the resource monitoring method can pass through the shape of the operation information real-time synchronization monitored object and practical virtual machine of acquisition
State, it is ensured that the consistency of the two.And then the monitoring data of acquisition monitored object is gone on this basis, accurate monitoring can be obtained
Data carry out this monitoring data further to show, analyze and alert etc. that operations also have more meaning in subsequent step.Together
When, the snoop procedure of message is automatically performed, manual configuration is not necessarily to, helps to improve the O&M efficiency of monitoring system.In addition, this
The monitoring system that inventive embodiments use is run independently of cloud computing management platform, can improve cloud computing management platform itself
The problem of monitoring capacity deficiency.
To enable above-mentioned purpose, technical solution and the advantageous effect of the present invention to be clearer and more comprehensible, special embodiment below, and
The appended attached drawing of cooperation, is described in detail below.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the structural schematic diagram of monitoring server provided in an embodiment of the present invention;
Fig. 2 shows the flow charts of resource monitoring method provided in an embodiment of the present invention;
Fig. 3 shows the flow chart of the step S01 and step S02 of resource monitoring method provided in an embodiment of the present invention;
Fig. 4 shows the functional block diagram of monitoring resource device provided in an embodiment of the present invention.
Specific implementation mode
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, the detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit claimed invention below
Range, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment of the present invention, those skilled in the art are not doing
The every other embodiment obtained under the premise of going out creative work, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.Meanwhile the present invention's
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Monitoring system provided in an embodiment of the present invention is supervised for monitoring the resources of virtual machine that cloud computing management platform is managed
Control system can be with subordinate on monitoring server.Fig. 1 shows that the structure of monitoring server 100 provided in an embodiment of the present invention is shown
It is intended to.Referring to Fig.1, monitoring server 100 may include memory 110, processor 120 and network module 130.Memory
110 can be used for storing software program and module, such as resource monitoring method provided in an embodiment of the present invention and the corresponding journey of device
Sequence instruction/module, processor 120 is stored in software program and module in memory 110 by operation, various to execute
Resource monitoring method and device provided in an embodiment of the present invention are realized in application of function and data processing.Memory 110 can wrap
Include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or
Other non-volatile solid state memories.Further, the software program in above-mentioned memory 110 and module may also include:Behaviour
Make system 111 and service module 112.Wherein operating system 111, may be, for example, LINUX, UNIX, WINDOWS, may include
Various component software and/or drives for managing system task (such as memory management, storage device control, power management etc.)
It is dynamic, and can mutually be communicated with various hardware or component software, to provide the running environment of other software component.Service module
112 operate on the basis of operating system 111, and are monitored come the request of automatic network, root by the network service of operating system 111
Corresponding data processing is completed according to request, and returns to handling result to client.That is, service module 112 is used for visitor
Family end provides network service.Network module 130 for receiving and transmitting network signal, network signal may include wireless signal or
Person's wire signal.
It is appreciated that structure shown in FIG. 1 is only to illustrate, monitoring server 100 may also include it is more than shown in Fig. 1 or
The less component of person, or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 may be used hardware, software or
A combination thereof is realized.In addition, the monitoring server 100 in the embodiment of the present invention is not limited to a server, can be more tools
There is the combination of the server of different function, can not also be corresponding with physical server, such as can be virtual server.
Monitoring system provided in an embodiment of the present invention can be based on Zabbix monitoring systems and build, and cloud computing management platform can
Think OpenStack platforms, is hereafter also illustrated by taking Zabbix and OpenStack as an example sometimes when illustrating, but not generation
Table monitoring system provided in an embodiment of the present invention can only be based on the cloud in Zabbix monitoring systems structure or the embodiment of the present invention
Management of computing platform is only OpenStack platforms.
First embodiment
Fig. 2 shows the flow charts of resource monitoring method provided in an embodiment of the present invention.With reference to Fig. 2, the monitoring resource side
Method includes:
S10:Monitor the operation information for obtaining and being generated when the cloud computing management platform operates virtual machine.
Some steps that can be executed before illustrative step S10, before illustrative step S10 first.Monitoring system is wanted
Monitoring is the managed virtual machine of cloud computing management platform, in monitoring system, it is necessary first to be created and the virtual machine to be monitored
Corresponding monitored object.Cloud computing management platform externally provides master data acquisition interface, and monitoring system calls the interface can be with
Obtain whole essential informations of each virtual machine, including the title of virtual machine, quantity, configuring condition (such as CPU, memory, disk), shape
State (such as shutdown is switched on, hangs up) information, monitoring system, which is based on above-mentioned essential information, can create prison corresponding with virtual machine
Control object.Cloud computing management platform also externally provides monitoring data collection interface, to which monitoring system calls the interface that can obtain
Obtain the monitoring data of monitored object, such as the performance data during virtual machine use, including CPU usage, memory usage
Deng.And then it the processing such as can store in monitoring system, analyze, show, alerting to monitoring data.
In specific implementation, monitoring data collection interface is the external interface of Ceilometer, and Ceilometer is inherently
With monitoring function, the monitoring data of virtual machine can be acquired, only it is weaker for the analysis of data, displaying, alarm ability,
It is difficult to meet the needs of user is rich and varied.Monitoring system can call monitoring data collection interface to obtain by Zabbix Proxy
Monitoring data is obtained, and monitoring data is sent to Zabbix Server, data are stored by Zabbix Server, are analyzed,
The processing such as displaying and alarm.It certainly, can also be straight by Zabbix Agent in some embodiments of the embodiment of the present invention
Socket part belongs on the virtual machine to be monitored, and acquires monitoring data by Zabbix Agent, and will supervise by Zabbix Proxy
Control data forwarding gives Zabbix Server.Due to functions of the Zabbix in terms of the processing to monitoring data than Ceilometer
It is eager to excel much larger, so its monitoring effect is preferable, disclosure satisfy that user demand.Further, monitoring system be embodied as one with
The independent systems of OpenStack carry out secondary development convenient for it on the basis of Zabbix, enrich its function, but also monitoring
System is not limited to be monitored the virtual machine in OpenStack, can also be to other resources, such as database, server, net
Network equipment is monitored, and Zabbix itself also supports the monitoring to multiple resources.
Although above-mentioned monitoring scheme can realize virtual machine monitoring, there is a problem of what data synchronized.Specifically, virtual
Essential information may change machine in use, such as certain virtual machine normal shutdown, this when of monitoring system
System nature can not collect the monitoring data of the corresponding monitored object of the virtual machine, if not carrying out data more to monitored object
Newly, monitoring system may think that the virtual machine occurs in the case where that can not receive the monitoring data of the monitored object for a long time
Unusual condition, and then take the measures such as alarm, it is clear that this is a kind of improper activity.Therefore, in monitoring system, monitored object
It is synchronous particularly important with virtual machine.According to set forth above, monitoring system can by call master data acquisition interface come
The newest essential information of virtual machine and the update of basic information monitored object based on acquisition are obtained, since what is obtained every time is all
Whole essential informations of each virtual machine, so such method of synchronization is also referred to as full dose synchronization.Full dose synchronization is frequently executed can be with
Ensure the synchronism of monitored object and virtual machine, but the essential information of usually virtual machine is not frequent updating, is frequently executed
Full dose, which synchronizes, to have little significance and can cause larger expense, so the mode that full dose synchronizes in practice is adapted only to periodically hold
The problem of going, but being periodically executed and can cause to synchronize not in time.In resource monitoring method provided in an embodiment of the present invention, use
The mode of monitoring information realize monitored object and the virtual machine to be monitored between synchronization, certainly in the specific implementation can also and
The mode for periodically carrying out full dose synchronization is combined, and further ensures that the accuracy of the data of monitored object.
In cloud computing management platform provided in an embodiment of the present invention, interacted by message between various components.Example
Such as, in OpenStack, the basis of message transmission is realized using AMQP (advanced message queue protocol) as it, so supporting
The software of AMQP all can serve as the realization method of message queue in OpenStack such as RabbitMQ, Qpid, ZeroMQ.
Cloud computing management platform to the operation of virtual machine realizes by message, by it is this kind of virtual machine is operated when generate
Message is known as operation information, and according to the definition of operation information, the change of virtual machine essential information, which both corresponds to operate accordingly, to disappear
Breath, therefore snoop-operations message is obtained with the alteration of the essential information of virtual machine, to realize monitored object and void
The real-time synchronization of quasi- machine.In embodiments of the present invention, the monitoring of operation information can be monitored by one in monitoring system
Program is realized.In case of OpenStack realizes message transmission using RabbitMQ, RabbitMQ includes a message
Queue server, when needing to operate virtual machine, the Nova components of OpenStack are sent out to Message Queuing server asks
It asks, corresponding operation information, the message of RabbitMQ is generated to call the message that Message Queuing server provides to generate interface
Interchanger (exchange) is after receiving operation information, according to tying up for the key of message and message switching unit and message queue
Determine relationship, which is delivered in corresponding message queue.
Fig. 3 shows the flow chart of the step S01 and step S02 of resource monitoring method provided in an embodiment of the present invention.
With reference to Fig. 3, (i.e. before step S10), step is first carried out before beginning listening in oracle listener provided in an embodiment of the present invention
S01 and step S02.
S01:It establishes and connects with the Message Queuing server of the cloud computing management platform.
The Message Queuing server for the RabbitMQ that oracle listener is firstly connected to as client.
S02:It calls the monitoring of the Message Queuing server that interface is set, the message to be monitored is specified in call parameters
Interchanger and the message bound with the message switching unit monitor queue, so as to disappear described in Message Queuing server establishment
Breath monitors queue.
The setting before interface is monitored is arranged in the monitoring that oracle listener calls Message Queuing server to provide, and joins calling
The message switching unit to be monitored (being in embodiments of the present invention the corresponding message switching unit of Nova components) is specified in number, for connecing
The message for receiving operation information monitors queue and monitors the routing key of queue for binding message interchanger and message.Disappear
Breath queue server responds the calling, generate the message specified by oracle listener monitor queue and by its with specified by oracle listener
Message switching unit binding.
After completing above-mentioned setting operation, in step slo, after message switching unit receives operation information, message can be turned
It is sent to the message created in advance to monitor in queue, disappear to which oracle listener can obtain operation from message monitoring queue
Breath.It is appreciated that the above-mentioned elaboration monitored about message was mainly illustrated by taking RabbitMQ as an example, if using other
Message queue software, on realization method may different from, but in step slo can pass through create message monitor team
The mode of row receives the operation information of message queue software forwarding to realize message monitoring mechanism.
S11:Monitored object corresponding with the virtual machine is updated based on the operation information.
In a kind of embodiment of the embodiment of the present invention, monitoring system parses operation information, obtains operation class
Type, such as to types such as the newly-increased of virtual machine, modification, termination, hang-up, shutdown, booting, adjustment, based on different action types
Different update operations is executed respectively, completes the data update to monitored object.Obvious difference synchronous with full dose, step S10
With the data-updating method of the revealed monitored object of step S11, data update is only just carried out when listening to operation information,
If the essential information of virtual machine does not have any variation, cloud computing management platform not to will produce corresponding operation information, monitoring
Any update will not be naturally also done in system to monitored object.This method of synchronization is triggered by operation information, is had higher
Real-time might as well be referred to as the real-time synchronization of monitored object and virtual machine.It is same that the promptness of real-time synchronization is significantly better than full dose
Step, and its content synchronized is only limitted to the content in the operation information got, and synchronization overhead is synchronized much smaller than full dose.
One example of the proposition before returning to, certain virtual machine normal shutdown, this when monitoring system naturally without
Method collects the monitoring data of the corresponding monitored object of the virtual machine, if not carrying out data update, monitoring system to monitored object
System may think that abnormal shape occurs in the virtual machine in the case where that can not receive the monitoring data of the monitored object for a long time
Condition, and then take the measures such as alarm;But if monitored object has carried out data update in time, monitoring system will know that the monitoring
The corresponding virtual machine of object has been switched off, and can not collect monitoring data and belong to normal condition, without taking any alarm to arrange
It applies.
S12:The monitoring data of updated monitored object is obtained from the cloud computing management platform.
Due to completing the real-time update to the data of monitored object in step s 11, it is based in step s 12 most
New monitored object goes to obtain monitoring data, can ensure the accuracy of monitoring data.In the specific implementation, to monitored object
Data update can realize that Zabbix Proxy obtain nearest monitoring from Zabbix Server on Zabbix Server
The data of object simultaneously further obtain its monitoring data.It for the acquisition modes of monitoring data, had illustrated before, Ke Yitong
The mode for the data acquisition interface for calling cloud computing management platform is crossed, or is obtained by disposing the modes such as Zabbix Agent,
The monitoring data got sends back Zabbix Server by Zabbix Proxy again and is stored, and according to the need of user
It asks and is further processed.
In a kind of embodiment of the embodiment of the present invention, monitoring system is further analyzed monitoring data and is supervised
Control is as a result, and in a manner of figure, report etc. include on showing interface by monitored results so that user is known.Wherein, show boundary
Face can be webpage, and user can access the webpage by terminal devices such as computer, mobile phones and know monitored results.Further
, according to the actual demand of user, monitoring system is also based on whether monitoring data judges the corresponding virtual machine of monitored object
There are unusual conditions, when the determination result is yes, generate warning information, the display alarm information on showing interface, while may be used also
Warning information to be sent to Short Message Service Gateway in the form of short message and/or warning information is sent to mail clothes in the form of mail
Device be engaged in so that user knows the unusual condition.Obvious, notify the mode of user to be not limited to short message and mail, short message and postal
Part is only two kinds of relatively conventional realization methods.
In conclusion resource monitoring method provided in an embodiment of the present invention is by monitoring cloud computing management platform to virtual machine
The operation information generated when being operated is with real-time synchronization monitored object and the virtual machine to be monitored, it is ensured that the two is in data
Consistency, and then obtain monitoring data on this basis and monitored object be monitored, monitored results are accurate, execution efficiency
It is higher.Also, the data synchronization process of monitored object can be automatically performed by monitoring system, avoid manual setting with
And O&M inefficiency caused by synchronization monitoring object, the problem of real-time difference.In addition, the embodiment of the present invention provides monitoring system
Unification and independence stand on the operation of cloud computing management platform, are equivalent to the Function Extension to cloud computing management platform, can strengthen cloud meter significantly
The monitoring capacity for calculating management platform provides good analysis to monitoring data, shows, and realizes monitoring alarm etc. on this basis
Premium Features.
Second embodiment
Fig. 4 shows the functional block diagram of monitoring resource device 200 provided in an embodiment of the present invention.With reference to Fig. 4, the present invention
The monitoring resource device 200 that embodiment provides includes that message monitors module 210, data update module 220 and data acquisition module
Block 230.Wherein, message monitors module 210 and is used to monitor what acquisition cloud computing management platform generated when being operated to virtual machine
Operation information;Data update module 220 is used to update monitored object corresponding with virtual machine based on operation information;Data acquisition module
Block 230 is used to obtain the monitoring data of updated monitored object from cloud computing management platform.
In embodiments of the present invention, monitoring resource device 200 further includes connection establishment module and monitoring setup module.Its
In, connection establishment module is used to establish with the Message Queuing server of cloud computing management platform and connect;Setup module is monitored to be used for
It calls the monitoring of Message Queuing server that interface is set, the message switching unit to be monitored and and message is specified in call parameters
The message of interchanger binding monitors queue, so that Message Queuing server creates message and monitors queue;Message is monitored module 210 and is had
After body is used to that the operation information received to be forwarded to message monitoring queue in message switching unit, monitors queue from message and grasped
Make message.
In embodiments of the present invention, data update module 220 includes message parsing unit and data updating unit.Its
In, message parsing unit obtains the corresponding action type of operation information for parsing;Data updating unit is used for based on operation class
Type updates monitored object corresponding with virtual machine.
The technique effect of monitoring resource device 200 provided in an embodiment of the present invention, realization principle and generation and aforementioned side
Method embodiment is identical, and to briefly describe, device embodiment part does not refer to place, can refer in corresponding in preceding method embodiment
Hold.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight
Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so fairly simple, the related place ginseng of description
See the part explanation of embodiment of the method.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through it
Its mode is realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are aobvious
The device of multiple embodiments according to the present invention, architectural framework in the cards, the work(of method and computer program product are shown
It can and operate.In this regard, each box in flowchart or block diagram can represent one of a module, section or code
Point, a part for the module, section or code includes one or more for implementing the specified logical function executable
Instruction.It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be attached to be different from
The sequence marked in figure occurs.For example, two continuous boxes can essentially be basically executed in parallel, they also may be used sometimes
To execute in the opposite order, this is depended on the functions involved.It is also noted that each of block diagram and or flow chart
The combination of box in box and block diagram and or flow chart, function or the dedicated of action are based on as defined in execution
The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion
Point, can also be modules individualism, can also two or more modules be integrated to form an independent part.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access
The various media that can store program code such as memory (RAM, Random Access Memory), magnetic disc or CD.It needs
It is noted that herein, relational terms such as first and second and the like are used merely to an entity or operation
It is distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation, there are any this
Actual relationship or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to nonexcludability
Including so that the process, method, article or equipment including a series of elements includes not only those elements, but also wrap
Include other elements that are not explicitly listed, or further include for this process, method, article or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described
There is also other identical elements in the process, method, article or equipment of element.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should be noted that:Similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and is explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a kind of resource monitoring method, which is characterized in that it is applied to the monitoring system independently of cloud computing management platform, including:
Monitor the operation information for obtaining and being generated when the cloud computing management platform operates virtual machine;
Monitored object corresponding with the virtual machine is updated based on the operation information;
The monitoring data of updated monitored object is obtained from the cloud computing management platform.
2. resource monitoring method according to claim 1, which is characterized in that it is flat that the monitoring obtains the cloud computing management
Before the operation information generated when platform operates virtual machine, the method further includes:
It establishes and connects with the Message Queuing server of the cloud computing management platform;
Call the Message Queuing server monitoring be arranged interface, in call parameters specify the message switching unit to be monitored with
And queue is monitored with the message of message switching unit binding, so that the Message Queuing server creates the message and monitors team
Row;
The monitoring obtains the operation information generated when the cloud computing management platform operates virtual machine, including:
After the operation information received is forwarded to the message monitoring queue by the message switching unit, from the message
It monitors queue and obtains the operation information.
3. resource monitoring method according to claim 2, which is characterized in that described based on operation information update and institute
The corresponding monitored object of virtual machine is stated, including:
Parsing obtains the corresponding action type of the operation information;
Monitored object corresponding with the virtual machine is updated based on the action type.
4. resource monitoring method according to claim 3, which is characterized in that described to be obtained from the cloud computing management platform
The monitoring data of updated monitored object, including:
The monitoring data collection interface that the cloud computing management platform provides is called to obtain the monitoring number of updated monitored object
According to.
5. according to the resource monitoring method described in any claim in claim 1-4, which is characterized in that the monitoring obtains institute
Before stating the operation information generated when cloud computing management platform operates virtual machine, the method further includes:
The master data acquisition interface that the cloud computing management platform provides is called to obtain the essential information of the virtual machine;
The monitored object corresponding with the virtual machine is created based on the essential information.
6. resource monitoring method according to claim 5, which is characterized in that described to be acquired from the cloud computing management platform
After the monitoring data of updated monitored object, the method further includes:
The monitored results of the updated monitored object are generated based on the monitoring data;
The monitored results are shown on interface in showing for the monitoring system.
7. resource monitoring method according to claim 5, which is characterized in that described to show interface in the monitoring system
After the upper display monitored results, the method further includes:
Judge that the updated monitored object whether there is unusual condition based on the monitoring data;
When the determination result is yes, it generates warning information and the warning information is sent to Short Message Service Gateway in the form of short message
And/or the warning information is sent to mail server in the form of mail.
8. a kind of monitoring resource device, which is characterized in that it is applied to the monitoring system independently of cloud computing management platform, including:
Message monitors module, disappears for monitoring the operation for obtaining and being generated when the cloud computing management platform operates virtual machine
Breath;
Data update module, for updating monitored object corresponding with the virtual machine based on the operation information;
Data acquisition module, the monitoring data for obtaining updated monitored object from the cloud computing management platform.
9. monitoring resource device according to claim 8, which is characterized in that the monitoring resource device further includes:
Connection establishment module is connected for being established with the Message Queuing server of the cloud computing management platform;
Setup module is monitored, for calling the monitoring of the Message Queuing server that interface is arranged, specifies and wants in call parameters
The message switching unit of monitoring and the message bound with the message switching unit monitor queue, so that the Message Queuing server
It creates the message and monitors queue;
The message monitoring module is specifically used for being forwarded to the operation information received in the message switching unit described
After message monitors queue, monitors queue from the message and obtain the operation information.
10. monitoring resource device according to claim 9, which is characterized in that the data update module includes:
Message parsing unit obtains the corresponding action type of the operation information for parsing;
Data updating unit, for updating monitored object corresponding with the virtual machine based on the action type.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810224899.3A CN108540341B (en) | 2018-03-19 | 2018-03-19 | Resource monitoring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810224899.3A CN108540341B (en) | 2018-03-19 | 2018-03-19 | Resource monitoring method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108540341A true CN108540341A (en) | 2018-09-14 |
CN108540341B CN108540341B (en) | 2021-01-29 |
Family
ID=63484010
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810224899.3A Active CN108540341B (en) | 2018-03-19 | 2018-03-19 | Resource monitoring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108540341B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110750586A (en) * | 2019-10-12 | 2020-02-04 | 北京浪潮数据技术有限公司 | Operation information processing method and system of virtualization management platform |
CN111124834A (en) * | 2019-12-25 | 2020-05-08 | 曙光信息产业(北京)有限公司 | Access method and device of monitoring data in cloud computing environment and computer equipment |
CN111885395A (en) * | 2020-06-11 | 2020-11-03 | 西安万像电子科技有限公司 | Video monitoring method, device and system |
CN113254162A (en) * | 2021-07-06 | 2021-08-13 | 云宏信息科技股份有限公司 | Management method for PowerVM virtualization, readable storage medium and cloud management platform |
CN113505175A (en) * | 2021-07-08 | 2021-10-15 | 浪潮云信息技术股份公司 | Method for realizing MySQL incremental data synchronization based on message queue |
CN114138598A (en) * | 2021-11-18 | 2022-03-04 | 深信服科技股份有限公司 | Resource operation method, device and storage medium |
CN114979158A (en) * | 2022-05-23 | 2022-08-30 | 深信服科技股份有限公司 | Resource monitoring method, system, equipment and computer readable storage medium |
CN113672456B (en) * | 2021-08-06 | 2024-06-11 | 济南浪潮数据技术有限公司 | Modularized self-monitoring method, system, terminal and storage medium of application platform |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102156665A (en) * | 2011-04-13 | 2011-08-17 | 杭州电子科技大学 | Differential serving method for virtual system competition resources |
CN102439567A (en) * | 2011-10-21 | 2012-05-02 | 华为技术有限公司 | Processing method for distributed virtual machine access exception and virtual machine monitor |
CN103458020A (en) * | 2013-08-28 | 2013-12-18 | 华南理工大学 | Method and system for monitoring cloud platform based on XCP |
CN104579761A (en) * | 2014-12-24 | 2015-04-29 | 西安工程大学 | Automatic nosql cluster configuration system and method based on cloud computing |
CN105389243A (en) * | 2015-10-26 | 2016-03-09 | 华为技术有限公司 | Container monitoring method and apparatus |
CN105592122A (en) * | 2014-11-03 | 2016-05-18 | 中国银联股份有限公司 | Cloud platform monitoring method and cloud platform monitoring system |
CN105988858A (en) * | 2015-05-15 | 2016-10-05 | 中国银联股份有限公司 | Virtual machine resource scheduling method, device and system |
US20160357424A1 (en) * | 2015-06-05 | 2016-12-08 | Cisco Technology, Inc. | Collapsing and placement of applications |
CN107659458A (en) * | 2017-11-02 | 2018-02-02 | 广东亿迅科技有限公司 | Agent deployment upgrade methods and system based on git Version Controls |
CN107959588A (en) * | 2017-12-07 | 2018-04-24 | 郑州云海信息技术有限公司 | Cloud resource management method, cloud resource management platform and the management system of data center |
-
2018
- 2018-03-19 CN CN201810224899.3A patent/CN108540341B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102156665A (en) * | 2011-04-13 | 2011-08-17 | 杭州电子科技大学 | Differential serving method for virtual system competition resources |
CN102439567A (en) * | 2011-10-21 | 2012-05-02 | 华为技术有限公司 | Processing method for distributed virtual machine access exception and virtual machine monitor |
CN103458020A (en) * | 2013-08-28 | 2013-12-18 | 华南理工大学 | Method and system for monitoring cloud platform based on XCP |
CN105592122A (en) * | 2014-11-03 | 2016-05-18 | 中国银联股份有限公司 | Cloud platform monitoring method and cloud platform monitoring system |
CN104579761A (en) * | 2014-12-24 | 2015-04-29 | 西安工程大学 | Automatic nosql cluster configuration system and method based on cloud computing |
CN105988858A (en) * | 2015-05-15 | 2016-10-05 | 中国银联股份有限公司 | Virtual machine resource scheduling method, device and system |
US20160357424A1 (en) * | 2015-06-05 | 2016-12-08 | Cisco Technology, Inc. | Collapsing and placement of applications |
CN105389243A (en) * | 2015-10-26 | 2016-03-09 | 华为技术有限公司 | Container monitoring method and apparatus |
CN107659458A (en) * | 2017-11-02 | 2018-02-02 | 广东亿迅科技有限公司 | Agent deployment upgrade methods and system based on git Version Controls |
CN107959588A (en) * | 2017-12-07 | 2018-04-24 | 郑州云海信息技术有限公司 | Cloud resource management method, cloud resource management platform and the management system of data center |
Non-Patent Citations (1)
Title |
---|
朱亚楠: "基于OpenStack云资源监控系统设计与实现", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110750586A (en) * | 2019-10-12 | 2020-02-04 | 北京浪潮数据技术有限公司 | Operation information processing method and system of virtualization management platform |
CN111124834A (en) * | 2019-12-25 | 2020-05-08 | 曙光信息产业(北京)有限公司 | Access method and device of monitoring data in cloud computing environment and computer equipment |
CN111124834B (en) * | 2019-12-25 | 2023-08-15 | 曙光信息产业(北京)有限公司 | Access method and device for monitoring data in cloud computing environment and computer equipment |
CN111885395A (en) * | 2020-06-11 | 2020-11-03 | 西安万像电子科技有限公司 | Video monitoring method, device and system |
CN111885395B (en) * | 2020-06-11 | 2024-05-17 | 西安万像电子科技有限公司 | Video monitoring method, device and system |
CN113254162A (en) * | 2021-07-06 | 2021-08-13 | 云宏信息科技股份有限公司 | Management method for PowerVM virtualization, readable storage medium and cloud management platform |
CN113505175A (en) * | 2021-07-08 | 2021-10-15 | 浪潮云信息技术股份公司 | Method for realizing MySQL incremental data synchronization based on message queue |
CN113672456B (en) * | 2021-08-06 | 2024-06-11 | 济南浪潮数据技术有限公司 | Modularized self-monitoring method, system, terminal and storage medium of application platform |
CN114138598A (en) * | 2021-11-18 | 2022-03-04 | 深信服科技股份有限公司 | Resource operation method, device and storage medium |
CN114979158A (en) * | 2022-05-23 | 2022-08-30 | 深信服科技股份有限公司 | Resource monitoring method, system, equipment and computer readable storage medium |
CN114979158B (en) * | 2022-05-23 | 2024-04-09 | 深信服科技股份有限公司 | Resource monitoring method, system, equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108540341B (en) | 2021-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108540341A (en) | resource monitoring method and device | |
CN110445856B (en) | Internet of things communication assembly management and control system and method supporting multi-protocol access | |
CN105760214B (en) | A kind of equipment state and resource information monitoring method, relevant device and system | |
CN104243185B (en) | A kind of experience type service monitoring system | |
CN108768791B (en) | Information acquisition configuration management system and method | |
US20180375726A1 (en) | Resource Configuration Method, Virtualized Network Function Manager, and Element Management System | |
CN111459749B (en) | Prometheus-based private cloud monitoring method and device, computer equipment and storage medium | |
CN107341044A (en) | A kind of distributive data center unified monitoring framework and method | |
CN110659109B (en) | System and method for monitoring openstack virtual machine | |
CN101707632A (en) | Method for dynamically monitoring performance of server cluster and alarming real-timely | |
CN107544837B (en) | Cloud service equipment performance data acquisition system, method and device | |
CN108182140A (en) | Determine the performance capability with monitoring computer resource service | |
CN107908521A (en) | A kind of monitoring method of container performance on the server performance and node being applied under cloud environment | |
CN103188101A (en) | Distributed type collection scheduling method and device | |
US20040083246A1 (en) | Method and system for performance management in a computer system | |
CN114244676A (en) | Intelligent IT integrated gateway system | |
CN111064626A (en) | Configuration updating method, device, server and readable storage medium | |
US9203651B2 (en) | Sorting systems in a tree | |
EP3306471B1 (en) | Automatic server cluster discovery | |
WO2013037234A1 (en) | Parameter receiving method and system | |
CN113824801B (en) | Intelligent integration terminal unified access management component system | |
WO2014044112A1 (en) | Device and method for controlling and supervising and alarming power supply of base station | |
Kai et al. | Scm: A design and implementation of monitoring system for cloudstack | |
Rathore et al. | Maintaining SmartX multi‐view visibility for OF@ TEIN+ distributed cloud‐native edge boxes | |
CN104301159B (en) | A kind of monitoring method and system of server cluster |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |