CN108923973B - Monitoring method and device - Google Patents
Monitoring method and device Download PDFInfo
- Publication number
- CN108923973B CN108923973B CN201810705345.5A CN201810705345A CN108923973B CN 108923973 B CN108923973 B CN 108923973B CN 201810705345 A CN201810705345 A CN 201810705345A CN 108923973 B CN108923973 B CN 108923973B
- Authority
- CN
- China
- Prior art keywords
- monitoring
- resource
- type
- monitored
- contained
- 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
- 238000012544 monitoring process Methods 0.000 title claims abstract description 185
- 238000000034 method Methods 0.000 title claims abstract description 21
- 238000012806 monitoring device Methods 0.000 claims abstract description 4
- 238000011161 development Methods 0.000 abstract description 4
- 238000013515 script Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
Images
Classifications
-
- 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/04—Network management architectures or arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
-
- 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
-
- 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/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a monitoring method, which comprises the following steps: determining a superior type corresponding to the type of the resource to be monitored; and monitoring the resource to be monitored according to the monitoring item contained in the determined superior type or the monitoring item contained in the determined superior type and the monitoring mode corresponding to the contained monitoring item. The invention also discloses a monitoring device. The method and the device provided by the invention can improve the maintainability of the system, reduce the redundancy and reduce the development cost.
Description
Technical Field
The invention relates to the technical field of cloud computing, in particular to a monitoring method in the technical field of cloud computing.
Background
In the cloud computing era, various types of equipment of various manufacturers are widely applied, and the compatibility and the expandability of a monitoring system are particularly important. When a new type of device is on line, whether the existing monitoring method can be used for compatibility of the new type is faster is a problem to be solved.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a monitoring method, which improves the maintainability of the system, reduces the redundancy and reduces the development cost.
In order to solve the above technical problem, the present invention provides a monitoring method, including:
determining a superior type corresponding to the type of the resource to be monitored;
and monitoring the resource to be monitored according to the monitoring item contained in the determined superior type or the monitoring item contained in the determined superior type and the monitoring mode corresponding to the contained monitoring item.
Further, the method also has the following characteristics:
the corresponding upper level type comprises one or more types.
Further, the method also has the following characteristics:
the corresponding upper level type comprises one or more of the following types:
a parent class to which the type of the resource to be monitored belongs;
a parent class of the parent class to which the type of resource to be monitored belongs.
Further, the method also has the following characteristics:
monitoring the resource to be monitored according to the monitoring item contained in the determined superior type comprises the following steps:
and monitoring the resource to be monitored according to the monitoring items contained in the determined superior type and the monitoring mode corresponding to the contained monitoring items and expanded according to the resource to be monitored.
Further, the method also has the following characteristics:
monitoring the resource to be monitored according to the monitoring items contained in the determined superior type and the monitoring modes corresponding to the contained monitoring items further comprises:
and monitoring the resources to be monitored according to the monitoring items added to the resources to be monitored and the monitoring modes corresponding to the added monitoring items.
In order to solve the above problem, the present invention further provides a monitoring apparatus, including: a memory and a processor; the method is characterized in that:
the memory is used for storing a program for monitoring;
the processor is used for reading and executing the program for monitoring and executing the following operations:
determining a superior type corresponding to the type of the resource to be monitored;
and monitoring the resource to be monitored according to the monitoring item contained in the determined superior type or the monitoring item contained in the determined superior type and the monitoring mode corresponding to the contained monitoring item.
Wherein the corresponding upper level type comprises one or more types.
The corresponding upper level type comprises one or more of the following types:
a parent class to which the type of the resource to be monitored belongs;
a parent class of the parent class to which the type of resource to be monitored belongs.
Preferably, the processor is configured to read and execute the program for monitoring, and further perform the following operations:
monitoring the resource to be monitored according to the monitoring item contained in the determined superior type comprises the following steps:
and monitoring the resource to be monitored according to the monitoring items contained in the determined superior type and the monitoring mode corresponding to the contained monitoring items and expanded according to the resource to be monitored.
Preferably, the processor is configured to read and execute the program for monitoring, and further perform the following operations:
monitoring the resource to be monitored according to the monitoring items contained in the determined superior type and the monitoring modes corresponding to the contained monitoring items further comprises:
and monitoring the resources to be monitored according to the monitoring items added to the resources to be monitored and the monitoring modes corresponding to the added monitoring items.
In conclusion, the invention improves the maintainability of the system, reduces the redundancy and reduces the development cost by the way that the subclass inherits the monitoring item of the parent class or the monitoring item and the monitoring mode of the subclass inherits the monitoring item of the parent class.
Drawings
Fig. 1 is a schematic diagram of a monitoring method according to an embodiment of the present invention.
Fig. 2 is a flowchart of an application example of the embodiment of the present invention.
Fig. 3 is a schematic diagram of a monitoring device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The basic idea of the invention is as follows:
1) the subclasses can have monitoring items and monitoring modes of the parents;
2) the subclasses can have monitoring items for monitoring the parent classes in a monitoring mode;
3) the subclasses can have their own monitoring items and monitoring modes;
4) the inheritance of a class can be single inheritance or multiple inheritance. Single inheritance is a subclass that inherits only one parent class. Multiple inheritance is, for example, that class A inherits class B, which inherits class C, i.e., class C is the parent of class B, which is the parent of class A.
Fig. 1 is a schematic diagram of a monitoring method according to an embodiment of the present invention, including the following steps:
and S01, determining the superior type corresponding to the type of the resource to be monitored.
And S02, monitoring the resource to be monitored according to the monitoring items contained in the determined upper-level type or the monitoring items contained in the determined upper-level type and the monitoring mode corresponding to the contained monitoring items.
Optionally, the corresponding upper level type includes one or more types;
specifically, when the inheritance is single inheritance, the corresponding upper level type comprises one type, and when the inheritance is multiple inheritance, the corresponding upper level type comprises a plurality of types.
Optionally, the corresponding upper level type includes one or more of the following:
a parent class to which the type of the resource to be monitored belongs;
a parent class of the parent class to which the type of resource to be monitored belongs.
Specifically, when the inheritance is single inheritance, the corresponding upper-level type is a parent class to which the type of the resource to be monitored belongs; when the inheritance is multiple inheritance, the corresponding upper-level type may be a parent class of a parent class to which the type of the resource to be monitored belongs.
Optionally, the monitoring the resource to be monitored according to the monitoring item included in the determined upper-level type includes:
and monitoring the resource to be monitored according to the monitoring items contained in the determined superior type and the monitoring mode corresponding to the contained monitoring items and expanded according to the resource to be monitored.
Optionally, monitoring the resource to be monitored according to the monitoring items included in the determined higher-level type and the monitoring modes corresponding to the included monitoring items further includes:
and monitoring the resources to be monitored according to the monitoring items added to the resources to be monitored and the monitoring modes corresponding to the added monitoring items.
Fig. 2 is a schematic diagram of an application example of the embodiment of the present invention, including the following steps:
step 201: all resources are classified.
Such as partitioning all resources of the cloud computing monitoring system into hosts, operating systems, web services, databases, network devices, storage, middleware, others, and so forth. Network devices may be classified as routers, switches, firewalls, hubs, bridges, gateways, and the like.
Step 202: determining the superior type of a certain resource, and monitoring the resource according to the monitoring item or the monitoring item and the monitoring mode of the superior type of the resource.
Suppose that there are two monitoring items, m and n, for a certain type of resource X, and the corresponding monitoring modes are jm and jn.
Step 203: if the upper-level category of the resource Y is X, the Y can be monitored according to the monitoring item and the monitoring mode of the X.
Step 204: if Y has a new monitoring requirement on the monitoring item m of X, then the monitoring items m and n, jn and a new monitoring mode jl can be used for monitoring Y.
Step 205: if Y needs to increase the monitoring item, the monitoring mode corresponding to the monitoring item needs to be increased at the same time, and then Y is monitored according to the monitoring item and the monitoring mode of X and the increased monitoring item and the increased monitoring mode.
The monitoring item refers to a preset monitoring index, and the monitoring mode is a mode for acquiring monitoring information.
The maintainability of the system is improved, the redundancy is reduced and the development cost is reduced by the child inheriting the monitoring item of the parent class or the child inheriting the monitoring item and the monitoring mode of the parent class.
The invention is described in further detail below using examples.
In a cloud computing system, all storage is provided with a rest interface externally, and a general monitoring system is used for monitoring through interface calling, namely, a rest command is used for acquiring server information.
Now there is a series, the series stored rest interface includes: CPU utilization, memory utilization, and disk utilization. If the system needs to monitor the a series storage, 3 scripts are developed, namely the scripts of the CPU utilization rate, the memory utilization rate and the disk utilization rate are obtained.
Therefore, after a certain actual a series storage is added into the system, the system can obtain corresponding monitoring data by calling the three scripts at regular time.
If now the a-series stores new customers, requiring new customization, the a 1-series: the series has more network flow interfaces, namely the CPU utilization rate, the memory utilization rate, the disk utilization rate and the network flow of the four interfaces. Thus, only one more script can be developed for the new category a1 series under the a series.
If now the a-series stores new customers, requiring new customization, the a 2-series: the series modifies the disk interfaces, namely the utilization rate of a CPU (central processing unit) of three interfaces, the utilization rate of a memory and the utilization rate of a new disk.
The new category a2 series is added under the a series, and only one script is developed, namely a disk interface is added. Thus, the storage of three series a, a1 and a2 is compatible with only 5 scripts. And when a certain interface changes after a long time, only one script is modified to complete the support of three series.
Fig. 3 is a schematic diagram of a monitoring device according to an embodiment of the present invention, including: a memory and a processor; the method is characterized in that:
the memory is used for storing a program for monitoring;
the processor is used for reading and executing the program for monitoring and executing the following operations:
determining a superior type corresponding to the type of the resource to be monitored;
and monitoring the resource to be monitored according to the monitoring item contained in the determined superior type or the monitoring item contained in the determined superior type and the monitoring mode corresponding to the contained monitoring item.
Wherein the corresponding upper level type comprises one or more types.
The corresponding upper level type comprises one or more of the following types:
a parent class to which the type of the resource to be monitored belongs;
a parent class of the parent class to which the type of resource to be monitored belongs.
The processor is configured to read and execute the program for monitoring, and further perform the following operations:
monitoring the resource to be monitored according to the monitoring item contained in the determined superior type comprises the following steps:
and monitoring the resource to be monitored according to the monitoring items contained in the determined superior type and the monitoring mode corresponding to the contained monitoring items and expanded according to the resource to be monitored.
The processor is configured to read and execute the program for monitoring, and further perform the following operations:
monitoring the resource to be monitored according to the monitoring items contained in the determined superior type and the monitoring modes corresponding to the contained monitoring items further comprises:
and monitoring the resources to be monitored according to the monitoring items added to the resources to be monitored and the monitoring modes corresponding to the added monitoring items.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by instructing the relevant hardware through a program, and the program may be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiments may be implemented in the form of hardware, and may also be implemented in the form of a software functional module. The present invention is not limited to any specific form of combination of hardware and software.
The foregoing is only a preferred embodiment of the present invention, and naturally there are many other embodiments of the present invention, and those skilled in the art can make various corresponding changes and modifications according to the present invention without departing from the spirit and the essence of the present invention, and these corresponding changes and modifications should fall within the scope of the appended claims.
Claims (6)
1. A method of monitoring, comprising:
determining a superior type corresponding to the type of the resource to be monitored;
monitoring the resource to be monitored according to the monitoring items contained in the determined superior type or the monitoring items contained in the determined superior type and the monitoring modes corresponding to the contained monitoring items;
wherein the corresponding upper level type comprises one or more types;
the corresponding upper level type comprises one or more of the following types:
a parent class to which the type of the resource to be monitored belongs;
a parent class of the parent class to which the type of resource to be monitored belongs.
2. The method of claim 1, wherein monitoring the resource to be monitored according to the monitoring item included in the determined upper level type comprises:
and monitoring the resource to be monitored according to the monitoring items contained in the determined superior type and the monitoring mode corresponding to the contained monitoring items and expanded according to the resource to be monitored.
3. The method of claim 1, wherein monitoring the resource to be monitored according to the monitoring items included in the determined upper-level type and the monitoring modes corresponding to the included monitoring items further comprises:
and monitoring the resources to be monitored according to the monitoring items added to the resources to be monitored and the monitoring modes corresponding to the added monitoring items.
4. A monitoring device, comprising: a memory and a processor; the method is characterized in that:
the memory is used for storing a program for monitoring;
the processor is used for reading and executing the program for monitoring and executing the following operations:
determining a superior type corresponding to the type of the resource to be monitored;
monitoring the resource to be monitored according to the monitoring items contained in the determined superior type or the monitoring items contained in the determined superior type and the monitoring modes corresponding to the contained monitoring items;
wherein the corresponding upper level type comprises one or more types;
the corresponding upper level type comprises one or more of the following types:
a parent class to which the type of the resource to be monitored belongs;
a parent class of the parent class to which the type of resource to be monitored belongs.
5. The apparatus of claim 4, wherein the processor, configured to read and execute the program for monitoring, further performs the following operations:
monitoring the resource to be monitored according to the monitoring item contained in the determined superior type comprises the following steps:
and monitoring the resource to be monitored according to the monitoring items contained in the determined superior type and the monitoring mode corresponding to the contained monitoring items and expanded according to the resource to be monitored.
6. The apparatus of claim 4, wherein the processor, configured to read and execute the program for monitoring, further performs the following operations:
monitoring the resource to be monitored according to the monitoring items contained in the determined superior type and the monitoring modes corresponding to the contained monitoring items further comprises:
and monitoring the resources to be monitored according to the monitoring items added to the resources to be monitored and the monitoring modes corresponding to the added monitoring items.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810705345.5A CN108923973B (en) | 2018-07-02 | 2018-07-02 | Monitoring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810705345.5A CN108923973B (en) | 2018-07-02 | 2018-07-02 | Monitoring method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108923973A CN108923973A (en) | 2018-11-30 |
CN108923973B true CN108923973B (en) | 2022-06-07 |
Family
ID=64421245
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810705345.5A Active CN108923973B (en) | 2018-07-02 | 2018-07-02 | Monitoring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108923973B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101686159A (en) * | 2008-09-24 | 2010-03-31 | 中国移动通信集团甘肃有限公司 | Power environment monitoring system |
CN102651699A (en) * | 2011-02-25 | 2012-08-29 | 华平信息技术股份有限公司 | Tree-like layered structure monitoring system and monitoring method |
CN103049365A (en) * | 2012-11-07 | 2013-04-17 | 北京宏德信智源信息技术有限公司 | Monitoring and evaluating method for information and application resource operating states |
CN103902383A (en) * | 2014-03-26 | 2014-07-02 | 浪潮电子信息产业股份有限公司 | Method for designing resource managers on basis of inheritance mechanisms |
CN104268060A (en) * | 2014-10-17 | 2015-01-07 | 浪潮电子信息产业股份有限公司 | Data center monitoring system capable of customizing extended monitoring items |
CN105471671A (en) * | 2015-11-10 | 2016-04-06 | 国云科技股份有限公司 | Method for customizing monitoring rules of cloud platform resources |
CN106126395A (en) * | 2016-06-15 | 2016-11-16 | 广州杰赛科技股份有限公司 | A kind of cloud platform monitoring method and system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1248454C (en) * | 2002-11-02 | 2006-03-29 | 华为技术有限公司 | Monitoring method of higher level network authority against lower level network authority |
CN106095641A (en) * | 2016-06-12 | 2016-11-09 | 浪潮电子信息产业股份有限公司 | A kind of monitoring methods, devices and systems |
-
2018
- 2018-07-02 CN CN201810705345.5A patent/CN108923973B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101686159A (en) * | 2008-09-24 | 2010-03-31 | 中国移动通信集团甘肃有限公司 | Power environment monitoring system |
CN102651699A (en) * | 2011-02-25 | 2012-08-29 | 华平信息技术股份有限公司 | Tree-like layered structure monitoring system and monitoring method |
CN103049365A (en) * | 2012-11-07 | 2013-04-17 | 北京宏德信智源信息技术有限公司 | Monitoring and evaluating method for information and application resource operating states |
CN103902383A (en) * | 2014-03-26 | 2014-07-02 | 浪潮电子信息产业股份有限公司 | Method for designing resource managers on basis of inheritance mechanisms |
CN104268060A (en) * | 2014-10-17 | 2015-01-07 | 浪潮电子信息产业股份有限公司 | Data center monitoring system capable of customizing extended monitoring items |
CN105471671A (en) * | 2015-11-10 | 2016-04-06 | 国云科技股份有限公司 | Method for customizing monitoring rules of cloud platform resources |
CN106126395A (en) * | 2016-06-15 | 2016-11-16 | 广州杰赛科技股份有限公司 | A kind of cloud platform monitoring method and system |
Also Published As
Publication number | Publication date |
---|---|
CN108923973A (en) | 2018-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20060235664A1 (en) | Model-based capacity planning | |
CN111475227B (en) | Business plug-in loading implementation method and device and terminal equipment | |
US9535754B1 (en) | Dynamic provisioning of computing resources | |
US11221943B2 (en) | Creating an intelligent testing queue for improved quality assurance testing of microservices | |
US10671403B2 (en) | Method and apparatus for identifying hardware device in operating system | |
US9959157B1 (en) | Computing instance migration | |
US9355005B2 (en) | Detection apparatus and detection method | |
KR20060049715A (en) | Machine-readable code component | |
US20210132860A1 (en) | Management of multiple physical function non-volatile memory devices | |
US11750451B2 (en) | Batch manager for complex workflows | |
US20230153100A1 (en) | Method and apparatus for managing model file in inference application | |
CN114490062A (en) | Local disk scheduling method and device, electronic equipment and storage medium | |
US11163637B1 (en) | Determining server issues related to software versions using artificial intelligence techniques | |
US11635948B2 (en) | Systems and methods for mapping software applications interdependencies | |
CN114356516A (en) | Resource scheduling method, related device, equipment and storage medium | |
US20220206836A1 (en) | Method and Apparatus for Processing Virtual Machine Migration, Method and Apparatus for Generating Virtual Machine Migration Strategy, Device and Storage Medium | |
CN115729724B (en) | Fault injection method, fault test system, electronic device and readable storage medium | |
US10922024B1 (en) | Self-protection against serialization incompatibilities | |
CN108923973B (en) | Monitoring method and device | |
CN113296878A (en) | Container processing method and device, electronic equipment and system | |
US11531674B2 (en) | System and method for supporting rollback of changes made to target systems via an integration platform | |
US11762692B2 (en) | Post provisioning operation management in cloud environment | |
US11816496B2 (en) | Managing containers using attribute/value pairs | |
US10778538B2 (en) | Automated self-recovery of distributed services | |
CN112130900A (en) | User information management method, system, equipment and medium for BMC |
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 |