WO2021073433A1 - Monitoring method and device, server, and storage medium - Google Patents

Monitoring method and device, server, and storage medium Download PDF

Info

Publication number
WO2021073433A1
WO2021073433A1 PCT/CN2020/119292 CN2020119292W WO2021073433A1 WO 2021073433 A1 WO2021073433 A1 WO 2021073433A1 CN 2020119292 W CN2020119292 W CN 2020119292W WO 2021073433 A1 WO2021073433 A1 WO 2021073433A1
Authority
WO
WIPO (PCT)
Prior art keywords
monitoring
service
information
service tree
type
Prior art date
Application number
PCT/CN2020/119292
Other languages
French (fr)
Chinese (zh)
Inventor
林水明
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021073433A1 publication Critical patent/WO2021073433A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/044Network management architectures or arrangements comprising hierarchical management structures

Definitions

  • This application belongs to the field of monitoring technology, and in particular relates to a monitoring method, a monitoring device, a server, and a computer-readable storage medium.
  • How to configure the data of the monitoring system is related to whether the monitoring system can realize the corresponding business functions.
  • the quality of the configuration data directly determines the monitoring granularity, authority control ability and monitoring effect of the monitoring system.
  • This mode is more suitable in scenarios where the amount of data is small, the need for personalized configuration is small, and the types of monitoring objects are not many.
  • IDC Internet Data Centers
  • network environments, and infrastructure platforms, involving traditional architecture, public cloud, private cloud, and Internal cloud, etc. have different monitoring requirements for different objects.
  • the monitoring system adopting the above-mentioned mode cannot adapt to the network environment of large-scale enterprises with many business scenarios and complex architecture at all.
  • the change of configuration data for any monitoring object may affect other objects. If such a monitoring system is still used in a complex network environment, the configuration data change of a single monitoring object can easily lead to business chaos in the entire monitoring system. In addition, in the existing monitoring system, the correlation between each monitoring object and a specific business is weak, and it is also impossible to perform targeted monitoring and analysis on each monitoring object for a specific business.
  • One of the objectives of the embodiments of this application is to provide a monitoring method, a monitoring device, a server, and a computer-readable storage medium, which can solve the problem that the monitoring system in the prior art cannot adapt to multiple business scenarios and architectures.
  • the problem of complex network environment is to provide a monitoring method, a monitoring device, a server, and a computer-readable storage medium, which can solve the problem that the monitoring system in the prior art cannot adapt to multiple business scenarios and architectures.
  • the problem of complex network environment is to provide a monitoring method, a monitoring device, a server, and a computer-readable storage medium
  • an embodiment of the present application provides a monitoring method, including:
  • preset system architecture information respectively determine the hierarchical structure of the service tree to be generated corresponding to each service type
  • the monitoring object is monitored.
  • the first aspect by determining the type of configuration data of each monitoring object, multiple monitoring objects with the same type of configuration data are used as leaf nodes of the same service tree; Any monitoring object of, by way of backtracking to the parent node, generates a service tree corresponding to the current business type.
  • each monitoring object included in different service trees and each monitoring object included in different levels of the same service tree Isolate.
  • an embodiment of the present application provides a monitoring device, including:
  • the business type determination module is used to determine multiple business types to be monitored, and each business type includes multiple monitoring objects;
  • the hierarchical structure determining module is used to determine the hierarchical structure of the service tree to be generated corresponding to each service type according to preset system architecture information;
  • the configuration data obtaining module is used to obtain the configuration data of each service type from a preset configuration management database
  • a service tree generation module configured to generate a service tree corresponding to each service type according to the hierarchical structure and the configuration data, and each service tree has unique identification information;
  • a monitoring information configuration module configured to configure monitoring information for monitoring objects included in each service tree based on the identification information
  • the monitoring module is used to monitor the monitored object according to the monitoring information.
  • an embodiment of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the computer program when the computer program is executed.
  • the monitoring method according to any one of the above-mentioned first aspects.
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the implementation is as described in any of the above-mentioned first aspects.
  • the embodiments of the present application provide a computer program product, which when the computer program product runs on a server, causes the server to execute the monitoring method described in any one of the above-mentioned first aspects.
  • the hierarchical structure of the service tree to be generated corresponding to each service type is determined, and the configuration management is performed from the preset
  • the service tree corresponding to each service type can be generated according to the above-mentioned hierarchical structure and configuration data, so that after configuring the monitoring information for each monitoring object contained in the service tree, you can follow This monitoring information monitors the monitored object.
  • This embodiment abstracts the monitored object and proposes the concept of a service tree.
  • a service tree between the monitored object and the specific business is generated, so that each monitored object of the same business is realized Belonging to the same service tree, so that the relationship between the monitored object and the specific business can be intuitively displayed according to the tree structure.
  • the object is monitored.
  • FIG. 1 is a schematic diagram of the flow of steps of a monitoring method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of the steps of another monitoring method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a hierarchical structure of a service tree provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of the architecture of a service tree provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of the steps of another monitoring method provided by an embodiment of the present application.
  • Fig. 6 is a structural block diagram of a monitoring device provided by an embodiment of the present application.
  • Fig. 7 is a schematic diagram of a server provided by an embodiment of the present application.
  • a monitoring method, a monitoring device, a server, and a computer-readable storage medium provided in this application are suitable for artificial intelligence and monitoring technology fields.
  • FIG. 1 there is shown a schematic flow chart of the steps of a monitoring method according to an embodiment of the present application, which may specifically include the following steps:
  • S101 Determine multiple service types to be monitored, and each service type includes multiple monitoring objects.
  • the business type in this embodiment may be a specific business implemented in an enterprise or organization.
  • the types of business included can include property insurance, life insurance, and so on.
  • the business types can also be different.
  • taking an Internet company as an example its business types can also include operation and maintenance groups for operation and maintenance of various devices, and technology groups that provide service support for other business types, and so on. This embodiment does not limit the service type.
  • internal monitoring can be carried out for the enterprise or organization. For example, to monitor the operational stability of each device and the security of the network environment.
  • multiple service types to be monitored may be determined first, and the equipment, networks, clusters, and middleware involved in each service type are abstracted as monitoring objects, and each monitoring object is monitored.
  • S102 According to preset system architecture information, respectively determine the hierarchical structure of the service tree to be generated corresponding to each service type;
  • the preset system architecture information can be determined according to the specific business types within the enterprise or organization. For example, for the business type of property insurance, its architecture relationship may be predetermined based on system architecture information.
  • a service tree is a model that maps the business into a tree structure and then corresponds to the resources.
  • the information maintained by the service tree includes which machines, resources, and so on.
  • the service tree may be a tree structure that includes various devices, networks, clusters, middleware, and other monitoring objects and subsystems required to execute the service, determined according to a specific service type.
  • a service tree can be generated based on the relationship between the monitored object and the specific service, so that each monitored object that implements the same service belongs to the same service tree.
  • the above-mentioned hierarchical structure of the service tree to be generated may refer to the number of layers included in the currently generated service tree.
  • CMDB Configuration Management Database
  • the configuration data of each service type may be recorded in the CMDB.
  • the configuration data may refer to the specific equipment, network, cluster, middleware, etc. included in each service subsystem in the corresponding system architecture.
  • S104 According to the hierarchical structure and the configuration data, generate a service tree corresponding to each service type, and each service tree has unique identification information;
  • a business system its system architecture may be deployed in accordance with "business system-deployment environment-cluster-instance/host", where the business system is the first-level subsystem, the deployment environment is the second-level subsystem, and the cluster It is a three-level subsystem, and the instance/host is the specific monitoring object.
  • the specific equipment and other information in the above-mentioned subsystems at each level can be recorded through the CMDB, so that when the service tree corresponding to the business system is generated, the corresponding hierarchical structure can also be constructed according to the above-mentioned architecture. That is, place the equipment and other information in the corresponding subsystem in the corresponding level of the service tree.
  • the system architecture may be deployed in accordance with "region-IDC-machine room-floor-equipment".
  • the corresponding level can be determined first Includes four floors. Then, the information contained in each layer of this type of equipment is extracted from the CMDB, so as to construct a service tree according to the corresponding level.
  • each generated service tree has different identification information. Through the identification information, it is possible to specifically determine which service tree each monitoring device belongs to.
  • the same identification information can be configured for each device, network, cluster, middleware, etc. that belong to the same service tree, and the identification information can be determined in the form of namespace (name space) to identify each monitor Objects and hierarchical subsystems belong to the same service tree.
  • namespace name space
  • those with the same namespace can be an operation and maintenance group with a traditional architecture, a group subsidiary, a public cloud tenant, or an IDC, and so on.
  • the monitoring information configured for each monitoring object may refer to information used for comparison with the operation information when the operation information of the monitoring object is collected. For example, for monitoring device A, it can be configured to alarm when the CPU occupancy rate reaches 80%. Therefore, the monitoring information configured for monitoring device A can include the CPU occupancy rate being less than 80%; for monitoring device B, it can be configured in the CPU The alarm is triggered when the occupancy rate reaches 90%.
  • the monitoring information configured for monitoring device B may include the CPU occupancy rate being less than 90%.
  • unified configuration can be performed for multiple monitoring objects that belong to the same service tree.
  • S106 Monitor the monitored object according to the monitoring information.
  • the monitoring object After completing the monitoring information configuration of each monitoring object in the service tree, the monitoring object can be monitored according to the monitoring information.
  • the server can collect operating information such as performance data of each monitored object in real time, and compare and judge it with the pre-configured monitoring information. If there is an abnormality, the abnormal result can be sent to the channel designated by the user such as phone calls, emails, and text messages. On the other hand, abnormal results can also be saved through the storage module of the system.
  • the storage module can also be provided with a data query interface to facilitate subsequent targeted query and analysis of monitoring data of various business types.
  • the hierarchical structure of the service tree to be generated corresponding to each service type is determined, and the preset After obtaining the configuration data of each service type in the configuration management database, the service tree corresponding to each service type can be generated according to the above-mentioned hierarchical structure and configuration data, so that after the monitoring information is configured for each monitoring object contained in the service tree, The monitored object can be monitored according to the monitoring information.
  • This embodiment abstracts the monitored object and proposes the concept of a service tree.
  • a service tree between the monitored object and the specific business is generated, so that each monitored object of the same business is realized Belonging to the same service tree, so that the relationship between the monitored object and the specific business can be intuitively displayed according to the tree structure.
  • the object is monitored.
  • FIG. 2 there is shown a schematic diagram of the step flow of another monitoring method according to an embodiment of the present application, which may specifically include the following steps:
  • S201 Determine multiple service types to be monitored, and each service type includes multiple monitoring objects.
  • the business type in this embodiment may be a specific business implemented in an enterprise or organization.
  • the equipment, networks, clusters, and middleware involved in each service type can be abstracted as monitoring objects.
  • the equipment, networks, clusters, middleware and their mutual relationships involved in different business types are different.
  • S202 According to preset system architecture information, respectively determine the hierarchical structure of the service tree to be generated corresponding to each service type;
  • a service tree can be generated based on the relationship between the monitored object and the specific service, so that each monitored object that implements the same service belongs to the same service tree.
  • the above-mentioned hierarchical structure of the service tree to be generated may refer to the number of layers included in the currently generated service tree.
  • FIG. 3 it is a schematic diagram of the hierarchical structure of the service tree corresponding to each business type in the enterprise.
  • the leaf nodes in each service tree represent a certain monitored object.
  • the monitored object uniquely belongs to a certain N-level subsystem, and the Nth-level subsystem is uniquely subordinate to a certain subsystem at the N-1 level.
  • the CMDB can record the configuration data of each business type, and the configuration data can refer to the specific equipment, network, cluster, middleware, etc. included in each business subsystem in the corresponding system architecture.
  • S204 Determine the type of configuration data of each monitoring object, and use multiple monitoring objects with the same type of configuration data as leaf nodes of the same service tree;
  • the office computer used by an employee in the switch operation and maintenance group of the network department is used as a monitoring object, it can be determined according to the configuration data that other employees in the switch operation and maintenance group are of the same type as the employee, and serve as the leaf nodes of the same service tree.
  • Each monitored object is marked with corresponding service tree identification information and level information, which are used to identify which service tree the monitored object belongs to.
  • S205 For any monitoring object in the leaf node, generate a service tree corresponding to the current service type by way of backtracking to the parent node, and each service tree has unique identification information;
  • any monitoring object in the leaf node other monitoring objects contained in the upper level data of the monitoring object in the configuration data can be found, as the parent node of the current leaf node in the service tree, until After finding the initial node of the service tree, and configuring the same identification information for all child nodes of the initial node, a service tree corresponding to the current service type can be generated.
  • the monitoring object of the leaf node After determining the monitoring object of the leaf node, you can find the specific equipment, network, cluster, middleware, etc. contained in the upper level of the monitoring object in the configuration data, and use these equipment, networks, clusters, middleware, etc. as monitoring
  • the N-level subsystem of the service tree to which the object belongs, and the identification information and level information of the service tree are configured for it. Then in the same way, continue to determine the N-1 level subsystem to which the N level subsystem belongs, until the first level subsystem of the current service tree is determined.
  • FIG. 4 it is a schematic diagram of the service tree corresponding to the schematic diagram of the architecture shown in FIG. 3.
  • unified configuration can be performed for multiple monitoring objects that belong to the same service tree.
  • S207 Monitor the monitored object according to the monitoring information.
  • the server can collect the operating information of each monitored object in real time, and compare and judge it with the pre-configured monitoring information. If the operating information is abnormal, the server can generate alarm information for the monitored object and pass The user-designated channels such as phone calls, emails, and text messages will alert the user.
  • the user-designated channels such as phone calls, emails, and text messages will alert the user.
  • a complete service tree is formed by backtracking to the parent node, so that each monitoring object implementing the same service belongs to the same service tree, thereby Each monitoring object can be monitored in a targeted manner according to different business scenarios and architectures.
  • FIG. 5 there is shown a step flow diagram of another monitoring method according to an embodiment of the present application, which may specifically include the following steps:
  • S501 Determine multiple service types to be monitored, and each service type includes multiple monitoring objects.
  • S502 Determine the hierarchical structure of the service tree to be generated corresponding to each service type according to preset system architecture information.
  • each service tree According to the hierarchical structure and the configuration data, generate a service tree corresponding to each service type, and each service tree has unique identification information.
  • steps S501-S504 in this embodiment are similar to steps S101-S104 and S201-S205 in the foregoing embodiment, they can be referred to each other, and this embodiment will not be repeated here.
  • S505 According to the identification information and hierarchical structure of each service tree, isolate each monitored object included in different service trees and each monitored object included in different levels of the same service tree;
  • the monitoring objects in different service trees and the monitoring objects belonging to different levels in the same service tree can be isolated by configuring different permissions for each monitoring object.
  • a unified monitoring system within an enterprise or organization can be jointly formed.
  • the system composed of all the service trees currently formed is the monitoring system.
  • S507 Determine the configuration information of each monitoring object, write the configuration information of multiple monitoring objects with the same identification information into the monitoring data table, and store the monitoring data table in the monitoring system;
  • the configuration information corresponding to each monitoring object may be determined artificially according to the actual needs of the monitoring object.
  • the configuration information corresponding to each monitoring object belonging to the same service tree can be integrated to generate a monitoring data table.
  • the monitoring system can understand the monitoring alarm trigger conditions corresponding to each monitoring object. That is, when the current operating information of a monitored object does not match the configuration information of the monitored object in the monitoring data table, the alarm will be triggered.
  • the monitoring system can also generate monitoring records for the generated alarms for subsequent analysis.
  • the server can collect the operating information of each monitored object in real time, and compare and judge it with the configuration information of the monitored object in the monitoring data table pre-configured and stored in the monitoring system to determine the monitored object Whether the operation is abnormal.
  • the running information collected in real time does not match the configuration information in the monitoring data table, it can be considered that the running information of the monitored object is abnormal.
  • the monitoring system can generate alarm information for the abnormal result, and send the alarm information to channels such as phone calls, emails, and text messages designated by the user.
  • alarm information can also be saved through the storage module of the monitoring system. Through the data query interface provided by the storage module, operation and maintenance personnel can conveniently query and analyze the monitoring data of various business types.
  • FIG. 6 shows a structural block diagram of a monitoring device provided by an embodiment of the present application. For ease of description, only the parts related to the embodiment of the present application are shown.
  • the monitoring device may specifically include the following modules:
  • the service type determining module 601 is used to determine multiple service types to be monitored, and each service type includes multiple monitoring objects;
  • the hierarchical structure determining module 602 is configured to determine the hierarchical structure of the service tree to be generated corresponding to each service type according to preset system architecture information;
  • the configuration data obtaining module 603 is configured to obtain the configuration data of each service type from a preset configuration management database
  • the service tree generating module 604 is configured to generate a service tree corresponding to each service type according to the hierarchical structure and the configuration data, and each service tree has unique identification information;
  • the monitoring information configuration module 605 is configured to configure monitoring information for monitoring objects included in each service tree based on the identification information
  • the monitoring module 606 is configured to monitor the monitored object according to the monitoring information.
  • the service tree generation module 604 may specifically include the following sub-modules:
  • the leaf node determination sub-module is used to determine the type of configuration data of each monitoring object, and use multiple monitoring objects with the same type of configuration data as the leaf nodes of the same service tree;
  • the service tree generation sub-module is used to generate a service tree corresponding to the current business type by way of backtracking to the parent node for any monitoring object in the leaf node.
  • the service tree generation submodule may specifically include the following units:
  • the node search unit is configured to find the monitoring object contained in the upper level data of the monitoring object in the configuration data for any monitoring object in the leaf node, as the leaf node in the current service tree Until the initial node of the current service tree is found;
  • the identification information configuration unit is configured to configure the same identification information for all child nodes of the initial node, and generate a service tree corresponding to the current service type.
  • the device may further include the following modules:
  • the monitoring system generation module is used to combine multiple service trees and their contained monitoring objects into a monitoring system.
  • the monitoring information configuration module 605 may specifically include the following sub-modules:
  • the configuration information writing sub-module is used to determine the configuration information of each monitored object, and respectively write the configuration information of multiple monitored objects with the same identification information into the monitoring data table;
  • the monitoring data table storage sub-module is used to store the monitoring data table in the monitoring system.
  • the monitoring module 606 may specifically include the following sub-modules:
  • Operation information collection sub-module used to collect the current operation information of each monitored object
  • the operation information comparison sub-module is used to compare the operation information with the corresponding configuration information in the monitoring data table
  • the alarm information generating sub-module is configured to generate alarm information for the monitored object if the operating information does not match the corresponding configuration information.
  • the device may further include the following submodules:
  • the isolation module is used to isolate each monitoring object included in different service trees and each monitoring object included in different levels of the same service tree according to the identification information and hierarchical structure of each service tree.
  • the server 700 in this embodiment includes a processor 710, a memory 720, and a computer program 721 that is stored in the memory 720 and can run on the processor 710.
  • the processor 710 executes the computer program 721
  • the steps in each embodiment of the foregoing monitoring method are implemented, for example, steps S101 to S106 shown in FIG. 1.
  • the processor 710 executes the computer program 721
  • the functions of the modules/units in the foregoing device embodiments for example, the functions of the modules 601 to 606 shown in FIG. 6 are realized.
  • the computer program 721 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 720 and executed by the processor 710 to complete This application.
  • the one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments may be used to describe the execution process of the computer program 721 in the server 700.
  • the computer program 721 may be divided into a service type determination module, a hierarchical structure determination module, a configuration data acquisition module, a service tree generation module, a monitoring information configuration module, and a monitoring module.
  • the specific functions of each module are as follows:
  • the business type determination module is used to determine multiple business types to be monitored, and each business type includes multiple monitoring objects;
  • the hierarchical structure determining module is used to determine the hierarchical structure of the service tree to be generated corresponding to each service type according to preset system architecture information;
  • the configuration data obtaining module is used to obtain the configuration data of each service type from a preset configuration management database
  • a service tree generation module configured to generate a service tree corresponding to each service type according to the hierarchical structure and the configuration data, and each service tree has unique identification information;
  • a monitoring information configuration module configured to configure monitoring information for monitoring objects included in each service tree based on the identification information
  • the monitoring module is used to monitor the monitored object according to the monitoring information.
  • the server 700 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the server 700 may include, but is not limited to, a processor 710 and a memory 720.
  • FIG. 7 is only an example of the server 700, and does not constitute a limitation on the server 700. It may include more or less components than those shown in the figure, or a combination of certain components, or different components.
  • the server 700 may also include input and output devices, network access devices, buses, and the like.
  • the processor 710 may be a central processing unit (Central Processing Unit, CPU), it can also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (ASICs), ready-made programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the storage 720 may be an internal storage unit of the server 700, such as a hard disk or a memory of the server 700.
  • the memory 720 may also be an external storage device of the server 700, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), or a Secure Digital (SD) card equipped on the server 700, Flash Card and so on. Further, the storage 720 may also include both an internal storage unit of the server 700 and an external storage device.
  • the memory 720 is used to store the computer program 721 and other programs and data required by the server 700.
  • the memory 720 can also be used to temporarily store data that has been output or will be output.
  • An embodiment of the present application also provides a server.
  • the server includes: at least one processor, a memory, and a computer program stored in the memory and running on the at least one processor, and the processor executes the The computer program implements the steps in any of the foregoing method embodiments.
  • the embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium may be volatile or non-volatile.
  • the computer-readable storage medium stores a computer program, and the computer When the program is executed by the processor, the steps in the foregoing method embodiments can be realized.
  • the embodiments of the present application also provide a computer program product.
  • the server can implement the steps in the foregoing method embodiments.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may at least include: any entity or device capable of carrying computer program code to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), and random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium.
  • entity or device capable of carrying computer program code to the photographing device/terminal device
  • recording medium computer memory, read-only memory (ROM, Read-Only Memory), and random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium.
  • ROM read-only memory
  • RAM Random Access Memory
  • the disclosed apparatus/network equipment and method may be implemented in other ways.
  • the device/network device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units.
  • components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiments of the present application are applicable to the field of monitoring technology and provide a monitoring method and device, a server and a storage medium. Said method comprises: determining a plurality of service types to be monitored; according to preset system architecture information, determining the hierarchical structures of service trees to be generated corresponding to the service types, respectively; acquiring configuration data of the service types from a preset configuration management database; according to the hierarchical structures and the configuration data, generating service trees corresponding to the service types, the service trees each having unique identification information; on the basis of the identification information, configuring monitoring information for monitored objects contained in the service trees; and according to the monitoring information, monitoring the monitored objects. In the present embodiment, service trees are generated, such that monitored objects implementing the same service belong to the same service tree, facilitating the global monitoring of monitored objects according to different scenarios or architectures for a network environment having multiple service scenarios and a complex architecture.

Description

一种监控方法、装置、服务器及存储介质Monitoring method, device, server and storage medium
本申请要求于2019年10月16日在中华人民共和国国家知识产权局专利局提交的、申请号为201910981769.9、发明名称为“一种监控方法、装置、服务器及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires priority of the Chinese patent application filed at the Patent Office of the State Intellectual Property Office of the People's Republic of China on October 16, 2019, with the application number 201910981769.9 and the invention title "a monitoring method, device, server and storage medium" Right, the entire contents of which are incorporated in this application by reference.
技术领域Technical field
本申请属于监控技术领域,尤其涉及一种监控方法、一种监控装置、一种服务器及一种计算机可读存储介质。This application belongs to the field of monitoring technology, and in particular relates to a monitoring method, a monitoring device, a server, and a computer-readable storage medium.
背景技术Background technique
如何对监控系统进行数据配置关系到该监控系统是否能够实现相应的业务功能,配置数据的优劣直接决定了监控系统的监控粒度、权限控制能力和监控效果。How to configure the data of the monitoring system is related to whether the monitoring system can realize the corresponding business functions. The quality of the configuration data directly determines the monitoring granularity, authority control ability and monitoring effect of the monitoring system.
在现有技术中,发明人意识到,监控系统通常都是将主机、应用、网络设备、存储设备等抽象成监控对象,然后通过对象配置、模板管理、联系人修改等操作完成整套监控流程。这种模式在数据量小、个性化配置需求少、监控对象类型不多的场景下比较适用。但是,对于大型企业来说,百万甚至千万级别的监控对象分布在不同的互联网数据中心(Internet Data Center,IDC)、网络环境、基础架构平台中,涉及传统架构、公有云、私有云、内部云等等,对不同对象的监控需求也是不尽相同的。采用上述模式的监控系统根本无法适应大型企业业务场景多、架构复杂的网络环境。例如,现有的监控系统中,针对任意一个监控对象的配置数据的变更都可能影响到其他对象。如果在复杂网络环境下仍然采用这样的监控系统,单个监控对象的配置数据变更极易导致整个监控系统的业务混乱。另外,现有的监控系统中各个监控对象与具体业务之间的关联关系较弱,也无法针对具体的业务对各个监控对象进行针对性的监控和分析。In the prior art, the inventor realized that the monitoring system usually abstracts hosts, applications, network devices, storage devices, etc. into monitoring objects, and then completes the entire monitoring process through operations such as object configuration, template management, and contact modification. This mode is more suitable in scenarios where the amount of data is small, the need for personalized configuration is small, and the types of monitoring objects are not many. However, for large enterprises, millions or even tens of millions of monitoring objects are distributed in different Internet Data Centers (IDC), network environments, and infrastructure platforms, involving traditional architecture, public cloud, private cloud, and Internal cloud, etc., have different monitoring requirements for different objects. The monitoring system adopting the above-mentioned mode cannot adapt to the network environment of large-scale enterprises with many business scenarios and complex architecture at all. For example, in the existing monitoring system, the change of configuration data for any monitoring object may affect other objects. If such a monitoring system is still used in a complex network environment, the configuration data change of a single monitoring object can easily lead to business chaos in the entire monitoring system. In addition, in the existing monitoring system, the correlation between each monitoring object and a specific business is weak, and it is also impossible to perform targeted monitoring and analysis on each monitoring object for a specific business.
技术问题technical problem
本申请实施例的目的之一在于:提供了一种监控方法、一种监控装置、一种服务器及一种计算机可读存储介质,可以解决现有技术中的监控系统无法适应业务场景多、架构复杂的网络环境的问题。One of the objectives of the embodiments of this application is to provide a monitoring method, a monitoring device, a server, and a computer-readable storage medium, which can solve the problem that the monitoring system in the prior art cannot adapt to multiple business scenarios and architectures. The problem of complex network environment.
技术解决方案Technical solutions
第一方面,本申请实施例提供了一种监控方法,包括:In the first aspect, an embodiment of the present application provides a monitoring method, including:
确定待监控的多个业务类型,各个业务类型分别包括多个监控对象;Determine multiple business types to be monitored, and each business type includes multiple monitoring objects;
根据预设的系统架构信息,分别确定与所述各个业务类型相对应的待生成的服务树的层级结构;According to preset system architecture information, respectively determine the hierarchical structure of the service tree to be generated corresponding to each service type;
从预置的配置管理数据库中获取所述各个业务类型的配置数据;Acquiring the configuration data of each service type from a preset configuration management database;
依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树,各个服务树分别具有唯一的标识信息;Generating a service tree corresponding to each service type according to the hierarchical structure and the configuration data, each service tree having unique identification information;
基于所述标识信息,为所述各个服务树中包含的监控对象配置监控信息;Based on the identification information, configure monitoring information for the monitoring objects included in each service tree;
按照所述监控信息,对所述监控对象进行监控。According to the monitoring information, the monitoring object is monitored.
在第一方面的一种可能的实现方式中,通过确定各个监控对象的配置数据的类型,将具有相同类型的配置数据的多个监控对象作为同一服务树的叶子节点;针对所述叶子节点中的任一监控对象,通过向父节点回溯的方式,生成与当前的业务类型相对应的服务树。In a possible implementation of the first aspect, by determining the type of configuration data of each monitoring object, multiple monitoring objects with the same type of configuration data are used as leaf nodes of the same service tree; Any monitoring object of, by way of backtracking to the parent node, generates a service tree corresponding to the current business type.
应理解,根据业务类型与监控对象之间一对多的关系,由监控对象出发,通过向父节点回溯的方式形成一个完整的服务树,使得实现相同业务的各个监控对象属于同一服务树,从而可以根据业务场景、架构的不同,针对性地对各个监控对象进行监控。It should be understood that according to the one-to-many relationship between the business type and the monitored object, starting from the monitored object, a complete service tree is formed by backtracking to the parent node, so that each monitored object implementing the same business belongs to the same service tree, thus Each monitoring object can be monitored in a targeted manner according to different business scenarios and architectures.
在第一方面的另一种可能的实现方式中,根据所述各个服务树的标识信息和层级结构,对不同服务树中包含的各个监控对象以及同一服务树的不同层级中包含的各个监控对象进行隔离。In another possible implementation of the first aspect, according to the identification information and hierarchical structure of each service tree, each monitoring object included in different service trees and each monitoring object included in different levels of the same service tree Isolate.
应理解,通过对各服务树以及同一服务树不同层级进行隔离,使得监控系统中的不同的监控对象具有各自不同的使用视角和范围,彼此之间相互透明,互不影响。当运维人员在进行监控分析时,只需要关注对应层级或服务树的业务范围即可,能够满足大型企业多环境、多架构、复杂网络环境下的监控需求。It should be understood that by isolating each service tree and different levels of the same service tree, different monitoring objects in the monitoring system have different use perspectives and scopes, and they are mutually transparent and do not affect each other. When the operation and maintenance personnel are performing monitoring and analysis, they only need to pay attention to the business scope of the corresponding level or service tree, which can meet the monitoring needs of large enterprises in multi-environment, multi-architecture, and complex network environments.
第二方面,本申请实施例提供了一种监控装置,包括:In the second aspect, an embodiment of the present application provides a monitoring device, including:
业务类型确定模块,用于确定待监控的多个业务类型,各个业务类型分别包括多个监控对象;The business type determination module is used to determine multiple business types to be monitored, and each business type includes multiple monitoring objects;
层级结构确定模块,用于根据预设的系统架构信息,分别确定与所述各个业务类型相对应的待生成的服务树的层级结构;The hierarchical structure determining module is used to determine the hierarchical structure of the service tree to be generated corresponding to each service type according to preset system architecture information;
配置数据获取模块,用于从预置的配置管理数据库中获取所述各个业务类型的配置数据;The configuration data obtaining module is used to obtain the configuration data of each service type from a preset configuration management database;
服务树生成模块,用于依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树,各个服务树分别具有唯一的标识信息;A service tree generation module, configured to generate a service tree corresponding to each service type according to the hierarchical structure and the configuration data, and each service tree has unique identification information;
监控信息配置模块,用于基于所述标识信息,为所述各个服务树中包含的监控对象配置监控信息;A monitoring information configuration module, configured to configure monitoring information for monitoring objects included in each service tree based on the identification information;
监控模块,用于按照所述监控信息,对所述监控对象进行监控。The monitoring module is used to monitor the monitored object according to the monitoring information.
第三方面,本申请实施例提供了一种服务器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面中任一项所述的监控方法。In a third aspect, an embodiment of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the computer program when the computer program is executed. The monitoring method according to any one of the above-mentioned first aspects.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面中任一项所述的监控方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the implementation is as described in any of the above-mentioned first aspects. The monitoring method described.
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在服务器上运行时,使得服务器执行上述第一方面中任一项所述的监控方法。In the fifth aspect, the embodiments of the present application provide a computer program product, which when the computer program product runs on a server, causes the server to execute the monitoring method described in any one of the above-mentioned first aspects.
可以理解的是,上述第二方面至第五方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the second aspect to the fifth aspect described above, reference may be made to the related description in the first aspect described above, and details are not repeated here.
有益效果Beneficial effect
本申请实施例,通过确定待监控的多个业务类型,然后根据预设的系统架构信息,分别确定与各个业务类型相对应的待生成的服务树的层级结构,并在从预置的配置管理数据库中获取各个业务类型的配置数据后,可以依据上述层级结构和配置数据,生成与各个业务类型相对应的服务树,从而在为服务树中包含的各个监控对象配置出监控信息后,可以按照该监控信息,对监控对象进行监控。本实施例通过对监控对象进行抽象,提出服务树的概念,根据业务类型以及监控对象和业务类型之间的关系,生成监控对象与具体业务之间的服务树,使得实现相同业务的各个监控对象属于同一服务树,从而可以根据树形结构直观地展现监控对象与具体业务之间的关联关系,对于业务场景多、架构复杂的网络环境,便于按照不同的场景或架构,从全局的角度对监控对象进行监控。In the embodiment of this application, by determining multiple service types to be monitored, and then according to preset system architecture information, the hierarchical structure of the service tree to be generated corresponding to each service type is determined, and the configuration management is performed from the preset After obtaining the configuration data of each service type in the database, the service tree corresponding to each service type can be generated according to the above-mentioned hierarchical structure and configuration data, so that after configuring the monitoring information for each monitoring object contained in the service tree, you can follow This monitoring information monitors the monitored object. This embodiment abstracts the monitored object and proposes the concept of a service tree. According to the business type and the relationship between the monitored object and the business type, a service tree between the monitored object and the specific business is generated, so that each monitored object of the same business is realized Belonging to the same service tree, so that the relationship between the monitored object and the specific business can be intuitively displayed according to the tree structure. For network environments with multiple business scenarios and complex architecture, it is convenient to monitor from a global perspective according to different scenarios or architectures. The object is monitored.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或示范性技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the embodiments or exemplary technical descriptions. Obviously, the accompanying drawings in the following description are only of the present application. For some embodiments, those of ordinary skill in the art can obtain other drawings based on these drawings without creative work.
图1是本申请一个实施例提供的一种监控方法的步骤流程示意图;FIG. 1 is a schematic diagram of the flow of steps of a monitoring method provided by an embodiment of the present application;
图2是本申请一个实施例提供的另一种监控方法的步骤流程示意图;FIG. 2 is a schematic flowchart of the steps of another monitoring method provided by an embodiment of the present application;
图3是本申请一个实施例提供的一种服务树的层级结构示意图;FIG. 3 is a schematic diagram of a hierarchical structure of a service tree provided by an embodiment of the present application;
图4是本申请一个实施例提供的一种服务树的架构示意图;FIG. 4 is a schematic diagram of the architecture of a service tree provided by an embodiment of the present application;
图5是本申请一个实施例提供的又一种监控方法的步骤流程示意图;FIG. 5 is a schematic flowchart of the steps of another monitoring method provided by an embodiment of the present application;
图6是本申请一个实施例提供的一种监控装置的结构框图;Fig. 6 is a structural block diagram of a monitoring device provided by an embodiment of the present application;
图7是本申请一个实施例提供的一种服务器的示意图。Fig. 7 is a schematic diagram of a server provided by an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其他实施例中也可以实现本申请。在其他情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that this application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of this application.
本申请提供的一种监控方法、一种监控装置、一种服务器及一种计算机可读存储介质,适用于人工智能以及监控技术领域。A monitoring method, a monitoring device, a server, and a computer-readable storage medium provided in this application are suitable for artificial intelligence and monitoring technology fields.
下面通过具体实施例来说明本申请的技术方案。The technical solutions of the present application will be described below through specific embodiments.
参照图1,示出了本申请一个实施例的一种监控方法的步骤流程示意图,具体可以包括如下步骤:Referring to FIG. 1, there is shown a schematic flow chart of the steps of a monitoring method according to an embodiment of the present application, which may specifically include the following steps:
S101、确定待监控的多个业务类型,各个业务类型分别包括多个监控对象;S101. Determine multiple service types to be monitored, and each service type includes multiple monitoring objects.
本实施例中的业务类型可以是在企业或组织内实现的具体某一业务。例如,以保险企业为例,其包括的业务类型可以有产险、寿险,等等。当然,对于从事不同业务的企业或组织,业务类型也可以是不同的。例如,以互联网企业为例,其业务类型还可以包括针对各种设备进行运营维护的运维组,以及为其他业务类型提供服务支持的科技组,等等。本实施例对业务类型不作限定。The business type in this embodiment may be a specific business implemented in an enterprise or organization. For example, taking an insurance company as an example, the types of business included can include property insurance, life insurance, and so on. Of course, for companies or organizations engaged in different businesses, the business types can also be different. For example, taking an Internet company as an example, its business types can also include operation and maintenance groups for operation and maintenance of various devices, and technology groups that provide service support for other business types, and so on. This embodiment does not limit the service type.
通常,不同的业务类型所涉及到的设备、网络、集群、中间件及其相互之间的关系是不同的。同样以保险企业为例,其在开展产险或寿险业务时,所需要使用到的上述设备、网络、集群、中间件及其相互之间的关系也存在一定的差异。Generally, the equipment, networks, clusters, middleware and their mutual relationships involved in different business types are different. Similarly, taking an insurance company as an example, there are also certain differences in the above-mentioned equipment, networks, clusters, middleware and their mutual relationships when they carry out property insurance or life insurance business.
为了保证各个企业或组织在实现具体业务时的安全性,可以针对该企业或组织进行内部监控。例如,对各个设备的运行稳定性、网络环境的安全性等进行监控。In order to ensure the security of each enterprise or organization in realizing specific business, internal monitoring can be carried out for the enterprise or organization. For example, to monitor the operational stability of each device and the security of the network environment.
在本申请实施例中,可以首先确定待监控的多个业务类型,并将各个业务类型所涉及到的设备、网络、集群以及中间件等抽象为监控对象,并对各个监控对象进行监控。In the embodiment of the present application, multiple service types to be monitored may be determined first, and the equipment, networks, clusters, and middleware involved in each service type are abstracted as monitoring objects, and each monitoring object is monitored.
S102、根据预设的系统架构信息,分别确定与所述各个业务类型相对应的待生成的服务树的层级结构;S102: According to preset system architecture information, respectively determine the hierarchical structure of the service tree to be generated corresponding to each service type;
预设的系统架构信息可以是根据企业或组织内部具体的业务类型确定的。例如,对于产险这一业务类型,其架构关系可以是根据系统架构信息预先确定的。The preset system architecture information can be determined according to the specific business types within the enterprise or organization. For example, for the business type of property insurance, its architecture relationship may be predetermined based on system architecture information.
通常,某些企业或组织为了方便管理服务集群,可以利用树形结构建立起一种服务组织关系,这种组织关系被称为服务树。服务树是一个将业务映射成树形结构,然后与资源对应起来的模型。简单来说,服务树维护着的信息包括哪个业务线下有哪几台机器、哪几个资源等等。Generally, in order to facilitate the management of service clusters, certain enterprises or organizations can use a tree structure to establish a service organization relationship, which is called a service tree. The service tree is a model that maps the business into a tree structure and then corresponds to the resources. Simply put, the information maintained by the service tree includes which machines, resources, and so on.
在本申请实施例中,服务树可以是根据具体的业务类型所确定的包含执行该业务所需的各种设备、网络、集群、中间件等监控对象和子系统的一种树形结构。In the embodiment of the present application, the service tree may be a tree structure that includes various devices, networks, clusters, middleware, and other monitoring objects and subsystems required to execute the service, determined according to a specific service type.
本实施例可以基于监控对象与具体业务之间的关系,生成服务树,使得实现相同业务的各个监控对象属于同一个服务树。在生成服务树时,可以根据预设的系统架构信息,首先确定待生成的服务树的层级结构。上述待生成的服务树的层级结构可以是指当前生成的服务树所包含的层数。In this embodiment, a service tree can be generated based on the relationship between the monitored object and the specific service, so that each monitored object that implements the same service belongs to the same service tree. When generating the service tree, you can first determine the hierarchical structure of the service tree to be generated according to preset system architecture information. The above-mentioned hierarchical structure of the service tree to be generated may refer to the number of layers included in the currently generated service tree.
S103、从预置的配置管理数据库中获取所述各个业务类型的配置数据;S103: Obtain the configuration data of each service type from a preset configuration management database;
配置管理数据库(Configuration Management Database,CMDB)是一种用于存储与管理企业IT架构中设备的各种配置信息的数据库。它与所有服务支持和服务交付流程都紧密联系,不仅能够支持这些流程的运转、发挥配置信息的价值,同时也依赖于相关流程以保证数据的准确性。Configuration Management Database (CMDB) is a database used to store and manage various configuration information of devices in the enterprise IT architecture. It is closely related to all service support and service delivery processes. It not only supports the operation of these processes and exerts the value of configuration information, but also relies on related processes to ensure data accuracy.
在本申请实施例中,CMDB中可以记录有各个业务类型的配置数据,该配置数据可以是指在对应的系统架构中,各个业务子系统所包含的具体设备、网络、集群、中间件等。In the embodiment of the present application, the configuration data of each service type may be recorded in the CMDB. The configuration data may refer to the specific equipment, network, cluster, middleware, etc. included in each service subsystem in the corresponding system architecture.
S104、依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树,各个服务树分别具有唯一的标识信息;S104: According to the hierarchical structure and the configuration data, generate a service tree corresponding to each service type, and each service tree has unique identification information;
在确定出与各个业务类型对应的待生成的服务树的层级结构,并从CMDB中获取到各个业务类型的配置数据后,可以根据配置数据中记录的各个监控对象的信息,按照相应的层级构建出服务树。After determining the hierarchical structure of the service tree to be generated corresponding to each business type, and obtaining the configuration data of each business type from the CMDB, you can construct according to the corresponding hierarchy according to the information of each monitoring object recorded in the configuration data Out of the service tree.
例如,以业务系统为例,其系统架构可能是按照“业务系统-部署环境-集群-实例/主机”来进行部署的,其中业务系统为一级子系统,部署环境为二级子系统,集群为三级子系统,实例/主机为具体的监控对象。上述各层级的子系统中具体的设备等信息可以通过CMDB进行记录,从而在生成对应该业务系统的服务树时,相应的层级结构也可以按照上述架构来构建。即,将对应子系统中的设备等信息放置于服务树相应的层级中。For example, taking a business system as an example, its system architecture may be deployed in accordance with "business system-deployment environment-cluster-instance/host", where the business system is the first-level subsystem, the deployment environment is the second-level subsystem, and the cluster It is a three-level subsystem, and the instance/host is the specific monitoring object. The specific equipment and other information in the above-mentioned subsystems at each level can be recorded through the CMDB, so that when the service tree corresponding to the business system is generated, the corresponding hierarchical structure can also be constructed according to the above-mentioned architecture. That is, place the equipment and other information in the corresponding subsystem in the corresponding level of the service tree.
又如,以某类设备为例,其系统架构可能是按照“地域-IDC-机房-楼层-设备”来进行部署的,在生成对应该类设备的服务树时,可以首先确定其相应的层级包括四层。然后,从CMDB中提取出该类设备各层中所包含的信息,从而按照对应层级构建出服务树。For another example, taking a certain type of equipment as an example, its system architecture may be deployed in accordance with "region-IDC-machine room-floor-equipment". When generating the service tree corresponding to the type of equipment, the corresponding level can be determined first Includes four floors. Then, the information contained in each layer of this type of equipment is extracted from the CMDB, so as to construct a service tree according to the corresponding level.
一般地,生成的各个服务树分别具有不同的标识信息。通过标识信息,可以具体确定各个监控设备分别属于哪一个服务树。Generally, each generated service tree has different identification information. Through the identification information, it is possible to specifically determine which service tree each monitoring device belongs to.
在具体实现中,可以为同属于同一服务树的各个设备、网络、集群、中间件等配置一相同的标识信息,该标识信息可以以namespace(命名空间)的形式来确定,用于标识各个监控对象和层级子系统属于同一服务树。例如,具有相同的namespace的可以是传统架构的运维组、集团子公司、公有云租户或IDC等等。In specific implementation, the same identification information can be configured for each device, network, cluster, middleware, etc. that belong to the same service tree, and the identification information can be determined in the form of namespace (name space) to identify each monitor Objects and hierarchical subsystems belong to the same service tree. For example, those with the same namespace can be an operation and maintenance group with a traditional architecture, a group subsidiary, a public cloud tenant, or an IDC, and so on.
S105、基于所述标识信息,为所述各个服务树中包含的监控对象配置监控信息;S105. Based on the identification information, configure monitoring information for monitoring objects included in each service tree;
为各个监控对象配置的监控信息可以是指在采集到该监控对象的运行信息时,用于与运行信息进行比较的信息。例如,对于监控设备A,可以配置在CPU占用率达到80%时进行告警,因此针对监控设备A进行配置的监控信息可以包括CPU占用率小于80%;而对监控设备B,则可以配置在CPU占用率达到90%时才触发告警,针对监控设备B进行配置的监控信息可以包括CPU占用率小于90%。The monitoring information configured for each monitoring object may refer to information used for comparison with the operation information when the operation information of the monitoring object is collected. For example, for monitoring device A, it can be configured to alarm when the CPU occupancy rate reaches 80%. Therefore, the monitoring information configured for monitoring device A can include the CPU occupancy rate being less than 80%; for monitoring device B, it can be configured in the CPU The alarm is triggered when the occupancy rate reaches 90%. The monitoring information configured for monitoring device B may include the CPU occupancy rate being less than 90%.
本实施例可以基于服务树的标识信息,为同属于同一服务树的多个监控对象进行统一配置。In this embodiment, based on the identification information of the service tree, unified configuration can be performed for multiple monitoring objects that belong to the same service tree.
S106、按照所述监控信息,对所述监控对象进行监控。S106: Monitor the monitored object according to the monitoring information.
在完成对服务树中各个监控对象的监控信息配置后,便可以按照该监控信息对监控对象进行监控。After completing the monitoring information configuration of each monitoring object in the service tree, the monitoring object can be monitored according to the monitoring information.
在具体实现中,服务端可以实时采集各个监控对象的性能数据等运行信息,并将其与预先配置的监控信息进行比较和判断。如果存在异常,则可以将异常的结果发送到用户指定的电话、邮件、短信等通道。另一方面,异常结果也可以通过系统的存储模块进行保存。该存储模块还可以提供有数据查询接口,以方便后续为各个业务类型的监控数据进行针对性的查询和分析。In specific implementation, the server can collect operating information such as performance data of each monitored object in real time, and compare and judge it with the pre-configured monitoring information. If there is an abnormality, the abnormal result can be sent to the channel designated by the user such as phone calls, emails, and text messages. On the other hand, abnormal results can also be saved through the storage module of the system. The storage module can also be provided with a data query interface to facilitate subsequent targeted query and analysis of monitoring data of various business types.
在本申请实施例中,通过确定待监控的多个业务类型,然后根据预设的系统架构信息,分别确定与各个业务类型相对应的待生成的服务树的层级结构,并在从预置的配置管理数据库中获取各个业务类型的配置数据后,可以依据上述层级结构和配置数据,生成与各个业务类型相对应的服务树,从而在为服务树中包含的各个监控对象配置出监控信息后,可以按照该监控信息,对监控对象进行监控。本实施例通过对监控对象进行抽象,提出服务树的概念,根据业务类型以及监控对象和业务类型之间的关系,生成监控对象与具体业务之间的服务树,使得实现相同业务的各个监控对象属于同一服务树,从而可以根据树形结构直观地展现监控对象与具体业务之间的关联关系,对于业务场景多、架构复杂的网络环境,便于按照不同的场景或架构,从全局的角度对监控对象进行监控。In the embodiment of this application, by determining multiple service types to be monitored, and then according to preset system architecture information, the hierarchical structure of the service tree to be generated corresponding to each service type is determined, and the preset After obtaining the configuration data of each service type in the configuration management database, the service tree corresponding to each service type can be generated according to the above-mentioned hierarchical structure and configuration data, so that after the monitoring information is configured for each monitoring object contained in the service tree, The monitored object can be monitored according to the monitoring information. This embodiment abstracts the monitored object and proposes the concept of a service tree. According to the business type and the relationship between the monitored object and the business type, a service tree between the monitored object and the specific business is generated, so that each monitored object of the same business is realized Belonging to the same service tree, so that the relationship between the monitored object and the specific business can be intuitively displayed according to the tree structure. For network environments with multiple business scenarios and complex architecture, it is convenient to monitor from a global perspective according to different scenarios or architectures. The object is monitored.
参照图2,示出了本申请一个实施例的另一种监控方法的步骤流程示意图,具体可以包括如下步骤:Referring to FIG. 2, there is shown a schematic diagram of the step flow of another monitoring method according to an embodiment of the present application, which may specifically include the following steps:
S201、确定待监控的多个业务类型,各个业务类型分别包括多个监控对象;S201. Determine multiple service types to be monitored, and each service type includes multiple monitoring objects.
本实施例中的业务类型可以是在企业或组织内实现的具体某一业务。在确定出待监控的多个业务类型后,可以将各个业务类型所涉及到的设备、网络、集群以及中间件等抽象为监控对象。通常,不同的业务类型所涉及到的设备、网络、集群、中间件及其相互之间的关系是不同的。The business type in this embodiment may be a specific business implemented in an enterprise or organization. After determining the multiple service types to be monitored, the equipment, networks, clusters, and middleware involved in each service type can be abstracted as monitoring objects. Generally, the equipment, networks, clusters, middleware and their mutual relationships involved in different business types are different.
S202、根据预设的系统架构信息,分别确定与所述各个业务类型相对应的待生成的服务树的层级结构;S202: According to preset system architecture information, respectively determine the hierarchical structure of the service tree to be generated corresponding to each service type;
本实施例可以基于监控对象与具体业务之间的关系,生成服务树,使得实现相同业务的各个监控对象属于同一个服务树。在生成服务树时,可以根据预设的系统架构信息,首先确定待生成的服务树的层级结构。上述待生成的服务树的层级结构可以是指当前生成的服务树所包含的层数。In this embodiment, a service tree can be generated based on the relationship between the monitored object and the specific service, so that each monitored object that implements the same service belongs to the same service tree. When generating the service tree, you can first determine the hierarchical structure of the service tree to be generated according to preset system architecture information. The above-mentioned hierarchical structure of the service tree to be generated may refer to the number of layers included in the currently generated service tree.
如图3所示,是一种与企业内各个业务类型相对应的服务树的层级结构示意图。按照图3所示,各个服务树中的叶子节点代表某个监控对象,该监控对象唯一地属于某个N级子系统,第N层子系统唯一地隶属于N-1层的某个子系统,同时包含多个N+1层子系统,上述层级子系统均是对某个业务类型关系的抽象。As shown in Figure 3, it is a schematic diagram of the hierarchical structure of the service tree corresponding to each business type in the enterprise. As shown in Figure 3, the leaf nodes in each service tree represent a certain monitored object. The monitored object uniquely belongs to a certain N-level subsystem, and the Nth-level subsystem is uniquely subordinate to a certain subsystem at the N-1 level. Contains multiple N+1 layer subsystems at the same time, and the above-mentioned layer subsystems are all abstractions of a certain business type relationship.
S203、从预置的配置管理数据库中获取所述各个业务类型的配置数据;S203. Obtain the configuration data of each service type from a preset configuration management database.
CMDB中可以记录有各个业务类型的配置数据,该配置数据可以是指在对应的系统架构中,各个业务子系统所包含的具体设备、网络、集群、中间件等。The CMDB can record the configuration data of each business type, and the configuration data can refer to the specific equipment, network, cluster, middleware, etc. included in each business subsystem in the corresponding system architecture.
S204、确定各个监控对象的配置数据的类型,将具有相同类型的配置数据的多个监控对象作为同一服务树的叶子节点;S204. Determine the type of configuration data of each monitoring object, and use multiple monitoring objects with the same type of configuration data as leaf nodes of the same service tree;
在本申请实施例中,可以从抽象出的监控对象出发,根据配置数据中记录的各个监控对象与业务类型之间的关联关系,将具有相同类型的配置数据的监控对象作为同一服务树的叶子节点。In the embodiments of the present application, it is possible to start from the abstracted monitoring objects, and use the monitoring objects with the same type of configuration data as the leaves of the same service tree according to the relationship between each monitoring object recorded in the configuration data and the service type. node.
例如,若将网络部交换机运维组某位员工所使用的办公电脑作为一个监控对象,根据配置数据可以确定交换机运维组其他员工与该员工类型相同,作为同一服务树的叶子节点,并为各个监控对象标配置出对应的服务树标识信息以及层级信息,用于标识该监控对象属于哪一棵服务树。For example, if the office computer used by an employee in the switch operation and maintenance group of the network department is used as a monitoring object, it can be determined according to the configuration data that other employees in the switch operation and maintenance group are of the same type as the employee, and serve as the leaf nodes of the same service tree. Each monitored object is marked with corresponding service tree identification information and level information, which are used to identify which service tree the monitored object belongs to.
S205、针对所述叶子节点中的任一监控对象,通过向父节点回溯的方式,生成与当前的业务类型相对应的服务树,各个服务树分别具有唯一的标识信息;S205: For any monitoring object in the leaf node, generate a service tree corresponding to the current service type by way of backtracking to the parent node, and each service tree has unique identification information;
在确定出某一服务树叶子节点对应的监控对象后,可以从该节点中的任一监控对象出发,通过向父节点(即当前叶子节点的上一节点)回溯,直到找到一个不具有上一节点的初始节点,可以形成一个完整的服务树。After determining the monitoring object corresponding to a leaf node of a service tree, you can start from any monitoring object in the node, and backtrack to the parent node (that is, the previous node of the current leaf node) until you find one that does not have the previous The initial node of the node can form a complete service tree.
在具体实现中,可以针对叶子节点中的任一监控对象,查找出配置数据中该监控对象的上一层级数据中包含的其他监控对象,作为当前的叶子节点在服务树中的父节点,直到查找到该服务树的初始节点,并在为初始节点的全部子节点配置相同的标识信息后,可以生成与当前的业务类型相对应的服务树。In specific implementation, for any monitoring object in the leaf node, other monitoring objects contained in the upper level data of the monitoring object in the configuration data can be found, as the parent node of the current leaf node in the service tree, until After finding the initial node of the service tree, and configuring the same identification information for all child nodes of the initial node, a service tree corresponding to the current service type can be generated.
例如,在确定叶子节点的监控对象后,可以查找配置数据中该监控对象的上一层级所包含的具体设备、网络、集群、中间件等,将这些设备、网络、集群、中间件等作为监控对象所属的服务树N级子系统,并为其配置该服务树的标识信息和层级信息。然后按照相同的方式,继续确定N级子系统所属的N-1级子系统,直到确定出当前服务树的一级子系统。For example, after determining the monitoring object of the leaf node, you can find the specific equipment, network, cluster, middleware, etc. contained in the upper level of the monitoring object in the configuration data, and use these equipment, networks, clusters, middleware, etc. as monitoring The N-level subsystem of the service tree to which the object belongs, and the identification information and level information of the service tree are configured for it. Then in the same way, continue to determine the N-1 level subsystem to which the N level subsystem belongs, until the first level subsystem of the current service tree is determined.
对于具有相同的服务树标识信息的设备、网络、集群、中间件等,共同构成了一棵完整的服务树。如图4所示,是与图3所示的架构示意图相对应的服务树的示意图。For devices, networks, clusters, middleware, etc. that have the same service tree identification information, they together form a complete service tree. As shown in FIG. 4, it is a schematic diagram of the service tree corresponding to the schematic diagram of the architecture shown in FIG. 3.
S206、基于所述标识信息,为所述各个服务树中包含的监控对象配置监控信息;S206: Based on the identification information, configure monitoring information for monitoring objects included in each service tree;
本实施例可以基于服务树的标识信息,为同属于同一服务树的多个监控对象进行统一配置。In this embodiment, based on the identification information of the service tree, unified configuration can be performed for multiple monitoring objects that belong to the same service tree.
S207、按照所述监控信息,对所述监控对象进行监控。S207: Monitor the monitored object according to the monitoring information.
在具体实现中,服务端可以实时采集各个监控对象的运行信息,并将其与预先配置的监控信息进行比较和判断,如果运行信息存在异常,服务端可以针对该监控对象生成告警信息,并通过用户指定的电话、邮件、短信等通道对用户进行告警。In specific implementation, the server can collect the operating information of each monitored object in real time, and compare and judge it with the pre-configured monitoring information. If the operating information is abnormal, the server can generate alarm information for the monitored object and pass The user-designated channels such as phone calls, emails, and text messages will alert the user.
本实施例根据业务类型与监控对象之间一对多的关系,由监控对象出发,通过向父节点回溯的方式形成一个完整的服务树,使得实现相同业务的各个监控对象属于同一服务树,从而可以根据业务场景、架构的不同,针对性地对各个监控对象进行监控。In this embodiment, according to the one-to-many relationship between the service type and the monitored object, starting from the monitoring object, a complete service tree is formed by backtracking to the parent node, so that each monitoring object implementing the same service belongs to the same service tree, thereby Each monitoring object can be monitored in a targeted manner according to different business scenarios and architectures.
参照图5,示出了本申请一个实施例的又一种监控方法的步骤流程示意图,具体可以包括如下步骤:Referring to FIG. 5, there is shown a step flow diagram of another monitoring method according to an embodiment of the present application, which may specifically include the following steps:
S501、确定待监控的多个业务类型,各个业务类型分别包括多个监控对象;S501. Determine multiple service types to be monitored, and each service type includes multiple monitoring objects.
S502、根据预设的系统架构信息,分别确定与所述各个业务类型相对应的待生成的服务树的层级结构;S502: Determine the hierarchical structure of the service tree to be generated corresponding to each service type according to preset system architecture information.
S503、从预置的配置管理数据库中获取所述各个业务类型的配置数据;S503: Obtain the configuration data of each service type from a preset configuration management database;
S504、依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树,各个服务树分别具有唯一的标识信息;S504. According to the hierarchical structure and the configuration data, generate a service tree corresponding to each service type, and each service tree has unique identification information.
由于本实施例中步骤S501-S504与前述实施例中步骤S101-S104以及S201-S205类似,可以相互参阅,本实施例对此不再赘述。Since steps S501-S504 in this embodiment are similar to steps S101-S104 and S201-S205 in the foregoing embodiment, they can be referred to each other, and this embodiment will not be repeated here.
S505、根据所述各个服务树的标识信息和层级结构,对不同服务树中包含的各个监控对象以及同一服务树的不同层级中包含的各个监控对象进行隔离;S505: According to the identification information and hierarchical structure of each service tree, isolate each monitored object included in different service trees and each monitored object included in different levels of the same service tree;
在本申请实施例中,在生成服务树后,可以通过对各个监控对象配置不同的权限,将不同服务树中的监控对象以及同一服务树中属于不同层级的监控对象进行隔离。In the embodiment of the present application, after the service tree is generated, the monitoring objects in different service trees and the monitoring objects belonging to different levels in the same service tree can be isolated by configuring different permissions for each monitoring object.
S506、将多个服务树及其包含的监控对象组合为监控系统;S506. Combine multiple service trees and the monitored objects contained in them into a monitoring system;
在本申请实施例中,通过整合各个业务类型对应的服务树,可以共同组成企业或组织内的统一监控系统。当前形成的全部服务树所组成的系统即是该监控系统。In the embodiments of the present application, by integrating service trees corresponding to various business types, a unified monitoring system within an enterprise or organization can be jointly formed. The system composed of all the service trees currently formed is the monitoring system.
S507、确定各个监控对象的配置信息,分别将具有同一标识信息的多个监控对象的配置信息写入监控数据表,将所述监控数据表存储至所述监控系统;S507: Determine the configuration information of each monitoring object, write the configuration information of multiple monitoring objects with the same identification information into the monitoring data table, and store the monitoring data table in the monitoring system;
各个监控对象对应的配置信息可以是针对该监控对象的实际需求,人为确定的。The configuration information corresponding to each monitoring object may be determined artificially according to the actual needs of the monitoring object.
在具体实现中,可以将属于同一服务树的各个监控对象对应的配置信息整合生成一份监控数据表。上述数据表在被存储至监控系统并运行后,可以使得监控系统了解各个监控对象对应的监控告警触发条件。即,当某个监控对象当前的运行信息与监控数据表中该监控对象的配置信息不匹配时,告警将被触发。同时,监控系统也可以生成针对生成的告警的监控记录,供后续分析使用。In specific implementation, the configuration information corresponding to each monitoring object belonging to the same service tree can be integrated to generate a monitoring data table. After the above data tables are stored in the monitoring system and run, the monitoring system can understand the monitoring alarm trigger conditions corresponding to each monitoring object. That is, when the current operating information of a monitored object does not match the configuration information of the monitored object in the monitoring data table, the alarm will be triggered. At the same time, the monitoring system can also generate monitoring records for the generated alarms for subsequent analysis.
S508、分别采集各个监控对象当前的运行信息,将所述运行信息与所述监控数据表中对应的配置信息进行比较;S508. Collect current operating information of each monitored object respectively, and compare the operating information with corresponding configuration information in the monitoring data table;
在具体实现中,服务端可以实时采集各个监控对象的运行信息,并将其与预先配置并存储至监控系统中的监控数据表中该监控对象的配置信息进行比较和判断,以确定该监控对象是否运行异常。In specific implementation, the server can collect the operating information of each monitored object in real time, and compare and judge it with the configuration information of the monitored object in the monitoring data table pre-configured and stored in the monitoring system to determine the monitored object Whether the operation is abnormal.
S509、若所述运行信息与对应的所述配置信息不匹配,则生成针对所述监控对象的告警信息。S509: If the operating information does not match the corresponding configuration information, generate alarm information for the monitored object.
如果实时采集的运行信息与监控数据表中的配置信息不匹配,可以认为该监控对象的运行信息异常。监控系统可以针对该异常结果生成告警信息,并将告警信息发送到用户指定的电话、邮件、短信等通道。另一方面,告警信息也可以通过监控系统的存储模块进行保存。通过存储模块提供的数据查询接口,运维人员可以方便地对各个业务类型的监控数据进行针对性的查询和分析。If the running information collected in real time does not match the configuration information in the monitoring data table, it can be considered that the running information of the monitored object is abnormal. The monitoring system can generate alarm information for the abnormal result, and send the alarm information to channels such as phone calls, emails, and text messages designated by the user. On the other hand, alarm information can also be saved through the storage module of the monitoring system. Through the data query interface provided by the storage module, operation and maintenance personnel can conveniently query and analyze the monitoring data of various business types.
本实施例通过对各服务树以及同一服务树不同层级进行隔离,使得监控系统中的不同的监控对象具有各自不同的使用视角和范围,彼此之间相互透明,互不影响。当运维人员在进行监控分析时,只需要关注对应层级或服务树的业务范围即可,能够满足大型企业多环境、多架构、复杂网络环境下的监控需求。In this embodiment, by isolating each service tree and different levels of the same service tree, different monitoring objects in the monitoring system have different use perspectives and ranges, and are mutually transparent and do not affect each other. When the operation and maintenance personnel are performing monitoring and analysis, they only need to pay attention to the business scope of the corresponding level or service tree, which can meet the monitoring needs of large enterprises in multi-environment, multi-architecture, and complex network environments.
需要说明的是,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be noted that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any implementation process of the embodiments of this application. limited.
对应于上述实施例所述的监控方法,图6示出了本申请一个实施例提供的一种监控装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the monitoring method described in the foregoing embodiment, FIG. 6 shows a structural block diagram of a monitoring device provided by an embodiment of the present application. For ease of description, only the parts related to the embodiment of the present application are shown.
参照图6,该监控装置具体可以包括如下模块:Referring to Figure 6, the monitoring device may specifically include the following modules:
业务类型确定模块601,用于确定待监控的多个业务类型,各个业务类型分别包括多个监控对象;The service type determining module 601 is used to determine multiple service types to be monitored, and each service type includes multiple monitoring objects;
层级结构确定模块602,用于根据预设的系统架构信息,分别确定与所述各个业务类型相对应的待生成的服务树的层级结构;The hierarchical structure determining module 602 is configured to determine the hierarchical structure of the service tree to be generated corresponding to each service type according to preset system architecture information;
配置数据获取模块603,用于从预置的配置管理数据库中获取所述各个业务类型的配置数据;The configuration data obtaining module 603 is configured to obtain the configuration data of each service type from a preset configuration management database;
服务树生成模块604,用于依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树,各个服务树分别具有唯一的标识信息;The service tree generating module 604 is configured to generate a service tree corresponding to each service type according to the hierarchical structure and the configuration data, and each service tree has unique identification information;
监控信息配置模块605,用于基于所述标识信息,为所述各个服务树中包含的监控对象配置监控信息;The monitoring information configuration module 605 is configured to configure monitoring information for monitoring objects included in each service tree based on the identification information;
监控模块606,用于按照所述监控信息,对所述监控对象进行监控。The monitoring module 606 is configured to monitor the monitored object according to the monitoring information.
在本申请实施例中,所述服务树生成模块604具体可以包括如下子模块:In the embodiment of the present application, the service tree generation module 604 may specifically include the following sub-modules:
叶子节点确定子模块,用于确定各个监控对象的配置数据的类型,将具有相同类型的配置数据的多个监控对象作为同一服务树的叶子节点;The leaf node determination sub-module is used to determine the type of configuration data of each monitoring object, and use multiple monitoring objects with the same type of configuration data as the leaf nodes of the same service tree;
服务树生成子模块,用于针对所述叶子节点中的任一监控对象,通过向父节点回溯的方式,生成与当前的业务类型相对应的服务树。The service tree generation sub-module is used to generate a service tree corresponding to the current business type by way of backtracking to the parent node for any monitoring object in the leaf node.
在本申请实施例中,所述服务树生成子模块具体可以包括如下单元:In the embodiment of the present application, the service tree generation submodule may specifically include the following units:
节点查找单元,用于针对所述叶子节点中的任一监控对象,查找出所述配置数据中所述监控对象的上一层级数据中包含的监控对象,作为所述叶子节点在当前的服务树中的父节点,直到查找到所述当前的服务树的初始节点;The node search unit is configured to find the monitoring object contained in the upper level data of the monitoring object in the configuration data for any monitoring object in the leaf node, as the leaf node in the current service tree Until the initial node of the current service tree is found;
标识信息配置单元,用于为所述初始节点的全部子节点配置相同的标识信息,生成与当前的业务类型相对应的服务树。The identification information configuration unit is configured to configure the same identification information for all child nodes of the initial node, and generate a service tree corresponding to the current service type.
在本申请实施例中,所述装置还可以包括如下模块:In the embodiment of the present application, the device may further include the following modules:
监控系统生成模块,用于将多个服务树及其包含的监控对象组合为监控系统。The monitoring system generation module is used to combine multiple service trees and their contained monitoring objects into a monitoring system.
在本申请实施例中,所述监控信息配置模块605具体可以包括如下子模块:In the embodiment of the present application, the monitoring information configuration module 605 may specifically include the following sub-modules:
配置信息写入子模块,用于确定各个监控对象的配置信息,分别将具有同一标识信息的多个监控对象的配置信息写入监控数据表;The configuration information writing sub-module is used to determine the configuration information of each monitored object, and respectively write the configuration information of multiple monitored objects with the same identification information into the monitoring data table;
监控数据表存储子模块,用于将所述监控数据表存储至所述监控系统。The monitoring data table storage sub-module is used to store the monitoring data table in the monitoring system.
在本申请实施例中,所述监控模块606具体可以包括如下子模块:In this embodiment of the present application, the monitoring module 606 may specifically include the following sub-modules:
运行信息采集子模块,用于分别采集各个监控对象当前的运行信息;Operation information collection sub-module, used to collect the current operation information of each monitored object;
运行信息比较子模块,用于将所述运行信息与所述监控数据表中对应的配置信息进行比较;The operation information comparison sub-module is used to compare the operation information with the corresponding configuration information in the monitoring data table;
告警信息生成子模块,用于若所述运行信息与对应的所述配置信息不匹配,则生成针对所述监控对象的告警信息。The alarm information generating sub-module is configured to generate alarm information for the monitored object if the operating information does not match the corresponding configuration information.
在本申请实施例中,所述装置还可以包括如下子模块:In the embodiment of the present application, the device may further include the following submodules:
隔离模块,用于根据所述各个服务树的标识信息和层级结构,对不同服务树中包含的各个监控对象以及同一服务树的不同层级中包含的各个监控对象进行隔离。The isolation module is used to isolate each monitoring object included in different service trees and each monitoring object included in different levels of the same service tree according to the identification information and hierarchical structure of each service tree.
需要说明的是,上述装置/模块之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,可以参见方法实施例部分的描述,此处不再赘述。It should be noted that the information interaction and execution process between the above-mentioned devices/modules are based on the same concept as the method embodiments of this application, and their specific functions and technical effects can be found in the description of the method embodiments. I won't repeat them here.
参照图7,示出了本申请一个实施例的一种服务器的示意图。如图7所示,本实施例的服务器700包括:处理器710、存储器720以及存储在所述存储器720中并可在所述处理器710上运行的计算机程序721。所述处理器710执行所述计算机程序721时实现上述监控方法各个实施例中的步骤,例如图1所示的步骤S101至S106。或者,所述处理器710执行所述计算机程序721时实现上述各装置实施例中各模块/单元的功能,例如图6所示模块601至606的功能。Referring to FIG. 7, a schematic diagram of a server according to an embodiment of the present application is shown. As shown in FIG. 7, the server 700 in this embodiment includes a processor 710, a memory 720, and a computer program 721 that is stored in the memory 720 and can run on the processor 710. When the processor 710 executes the computer program 721, the steps in each embodiment of the foregoing monitoring method are implemented, for example, steps S101 to S106 shown in FIG. 1. Alternatively, when the processor 710 executes the computer program 721, the functions of the modules/units in the foregoing device embodiments, for example, the functions of the modules 601 to 606 shown in FIG. 6 are realized.
示例性的,所述计算机程序721可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器720中,并由所述处理器710执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段可以用于描述所述计算机程序721在所述服务器700中的执行过程。例如,所述计算机程序721可以被分割成业务类型确定模块、层级结构确定模块、配置数据获取模块、服务树生成模块、监控信息配置模块和监控模块,各模块具体功能如下:Exemplarily, the computer program 721 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 720 and executed by the processor 710 to complete This application. The one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments may be used to describe the execution process of the computer program 721 in the server 700. For example, the computer program 721 may be divided into a service type determination module, a hierarchical structure determination module, a configuration data acquisition module, a service tree generation module, a monitoring information configuration module, and a monitoring module. The specific functions of each module are as follows:
业务类型确定模块,用于确定待监控的多个业务类型,各个业务类型分别包括多个监控对象;The business type determination module is used to determine multiple business types to be monitored, and each business type includes multiple monitoring objects;
层级结构确定模块,用于根据预设的系统架构信息,分别确定与所述各个业务类型相对应的待生成的服务树的层级结构;The hierarchical structure determining module is used to determine the hierarchical structure of the service tree to be generated corresponding to each service type according to preset system architecture information;
配置数据获取模块,用于从预置的配置管理数据库中获取所述各个业务类型的配置数据;The configuration data obtaining module is used to obtain the configuration data of each service type from a preset configuration management database;
服务树生成模块,用于依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树,各个服务树分别具有唯一的标识信息;A service tree generation module, configured to generate a service tree corresponding to each service type according to the hierarchical structure and the configuration data, and each service tree has unique identification information;
监控信息配置模块,用于基于所述标识信息,为所述各个服务树中包含的监控对象配置监控信息;A monitoring information configuration module, configured to configure monitoring information for monitoring objects included in each service tree based on the identification information;
监控模块,用于按照所述监控信息,对所述监控对象进行监控。The monitoring module is used to monitor the monitored object according to the monitoring information.
所述服务器700可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述服务器700可包括,但不仅限于,处理器710、存储器720。本领域技术人员可以理解,图7仅仅是服务器700的一种示例,并不构成对服务器700的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述服务器700还可以包括输入输出设备、网络接入设备、总线等。The server 700 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The server 700 may include, but is not limited to, a processor 710 and a memory 720. Those skilled in the art can understand that FIG. 7 is only an example of the server 700, and does not constitute a limitation on the server 700. It may include more or less components than those shown in the figure, or a combination of certain components, or different components. For example, the server 700 may also include input and output devices, network access devices, buses, and the like.
所述处理器710可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 710 may be a central processing unit (Central Processing Unit, CPU), it can also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (ASICs), ready-made programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器720可以是所述服务器700的内部存储单元,例如服务器700的硬盘或内存。所述存储器720也可以是所述服务器700的外部存储设备,例如所述服务器700上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等等。进一步地,所述存储器720还可以既包括所述服务器700的内部存储单元也包括外部存储设备。所述存储器720用于存储所述计算机程序721以及所述服务器700所需的其他程序和数据。所述存储器720还可以用于暂时地存储已经输出或者将要输出的数据。The storage 720 may be an internal storage unit of the server 700, such as a hard disk or a memory of the server 700. The memory 720 may also be an external storage device of the server 700, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), or a Secure Digital (SD) card equipped on the server 700, Flash Card and so on. Further, the storage 720 may also include both an internal storage unit of the server 700 and an external storage device. The memory 720 is used to store the computer program 721 and other programs and data required by the server 700. The memory 720 can also be used to temporarily store data that has been output or will be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as needed. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Formal realization can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only used to facilitate distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.
本申请实施例还提供了一种服务器,该服务器包括:至少一个处理器、存储器以及存储在所述存储器中并可在所述至少一个处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任意各个方法实施例中的步骤。An embodiment of the present application also provides a server. The server includes: at least one processor, a memory, and a computer program stored in the memory and running on the at least one processor, and the processor executes the The computer program implements the steps in any of the foregoing method embodiments.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质可以是易失性,也可以是非易失性,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium may be volatile or non-volatile. The computer-readable storage medium stores a computer program, and the computer When the program is executed by the processor, the steps in the foregoing method embodiments can be realized.
本申请实施例还提供了一种计算机程序产品,当计算机程序产品在服务器上运行时,使得服务器可实现上述各个方法实施例中的步骤。The embodiments of the present application also provide a computer program product. When the computer program product runs on a server, the server can implement the steps in the foregoing method embodiments.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the implementation of all or part of the processes in the above-mentioned embodiment methods in this application can be accomplished by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms. The computer-readable medium may at least include: any entity or device capable of carrying computer program code to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), and random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium. Such as U disk, mobile hard disk, floppy disk or CD-ROM, etc. In some jurisdictions, according to legislation and patent practices, computer-readable media cannot be electrical carrier signals and telecommunication signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/network equipment and method may be implemented in other ways. For example, the device/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units. Or components can be combined or integrated into another system, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制。尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solution of the present application, but not to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or equivalently replace some of the technical features; and these Modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims (20)

  1. 一种监控方法,其中,包括:A monitoring method, which includes:
    确定待监控的多个业务类型,各个业务类型分别包括多个监控对象;Determine multiple business types to be monitored, and each business type includes multiple monitoring objects;
    根据预设的系统架构信息,分别确定与所述各个业务类型相对应的待生成的服务树的层级结构;According to preset system architecture information, respectively determine the hierarchical structure of the service tree to be generated corresponding to each service type;
    从预置的配置管理数据库中获取所述各个业务类型的配置数据;Acquiring the configuration data of each service type from a preset configuration management database;
    依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树,各个服务树分别具有唯一的标识信息;Generating a service tree corresponding to each service type according to the hierarchical structure and the configuration data, each service tree having unique identification information;
    基于所述标识信息,为所述各个服务树中包含的监控对象配置监控信息;Based on the identification information, configure monitoring information for the monitoring objects included in each service tree;
    按照所述监控信息,对所述监控对象进行监控。According to the monitoring information, the monitoring object is monitored.
  2. 根据权利要求1所述的方法,其中,所述依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树的步骤包括:The method according to claim 1, wherein the step of generating a service tree corresponding to each service type according to the hierarchical structure and the configuration data comprises:
    确定各个监控对象的配置数据的类型,将具有相同类型的配置数据的多个监控对象作为同一服务树的叶子节点;Determine the type of configuration data of each monitoring object, and treat multiple monitoring objects with the same type of configuration data as the leaf nodes of the same service tree;
    针对所述叶子节点中的任一监控对象,通过向父节点回溯的方式,生成与当前的业务类型相对应的服务树。For any monitoring object in the leaf node, a service tree corresponding to the current business type is generated by way of backtracking to the parent node.
  3. 根据权利要求2所述的方法,其中,所述针对所述叶子节点中的任一监控对象,通过向父节点回溯的方式,生成与当前的业务类型相对应的服务树的步骤包括:The method according to claim 2, wherein the step of generating a service tree corresponding to the current business type by way of backtracking to the parent node for any monitored object in the leaf node comprises:
    针对所述叶子节点中的任一监控对象,查找出所述配置数据中所述监控对象的上一层级数据中包含的监控对象,作为所述叶子节点在当前的服务树中的父节点,直到查找到所述当前的服务树的初始节点;For any monitoring object in the leaf node, find the monitoring object contained in the upper level data of the monitoring object in the configuration data, and use it as the parent node of the leaf node in the current service tree until Find the initial node of the current service tree;
    为所述初始节点的全部子节点配置相同的标识信息,生成与当前的业务类型相对应的服务树。All child nodes of the initial node are configured with the same identification information, and a service tree corresponding to the current service type is generated.
  4. 根据权利要求1所述的方法,其中,在所述依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树的步骤后,还包括:The method according to claim 1, wherein after the step of generating a service tree corresponding to each service type according to the hierarchical structure and the configuration data, the method further comprises:
    将多个服务树及其包含的监控对象组合为监控系统。Combine multiple service trees and their contained monitoring objects into a monitoring system.
  5. 根据权利要求4所述的方法,其中,所述基于所述标识信息,为所述各个服务树中包含的监控对象配置监控信息的步骤包括:The method according to claim 4, wherein the step of configuring monitoring information for monitoring objects included in each service tree based on the identification information comprises:
    确定各个监控对象的配置信息,分别将具有同一标识信息的多个监控对象的配置信息写入监控数据表;Determine the configuration information of each monitoring object, and write the configuration information of multiple monitoring objects with the same identification information into the monitoring data table;
    将所述监控数据表存储至所述监控系统。The monitoring data table is stored in the monitoring system.
  6. 根据权利要求5所述的方法,其中,所述按照所述监控信息,对所述监控对象进行监控的步骤包括:The method according to claim 5, wherein the step of monitoring the monitored object according to the monitoring information comprises:
    分别采集各个监控对象当前的运行信息;Collect the current operation information of each monitored object separately;
    将所述运行信息与所述监控数据表中对应的配置信息进行比较;Comparing the operating information with the corresponding configuration information in the monitoring data table;
    若所述运行信息与对应的所述配置信息不匹配,则生成针对所述监控对象的告警信息。If the operation information does not match the corresponding configuration information, generating alarm information for the monitoring object.
  7. 根据权利要求1所述的方法,其中,还包括:The method according to claim 1, further comprising:
    根据所述各个服务树的标识信息和层级结构,对不同服务树中包含的各个监控对象以及同一服务树的不同层级中包含的各个监控对象进行隔离。According to the identification information and hierarchical structure of each service tree, each monitoring object included in different service trees and each monitoring object included in different levels of the same service tree are isolated.
  8. 一种监控装置,其中,包括:A monitoring device, which includes:
    业务类型确定模块,用于确定待监控的多个业务类型,各个业务类型分别包括多个监控对象;The business type determination module is used to determine multiple business types to be monitored, and each business type includes multiple monitoring objects;
    层级结构确定模块,用于根据预设的系统架构信息,分别确定与所述各个业务类型相对应的待生成的服务树的层级结构;The hierarchical structure determining module is used to determine the hierarchical structure of the service tree to be generated corresponding to each service type according to preset system architecture information;
    配置数据获取模块,用于从预置的配置管理数据库中获取所述各个业务类型的配置数据;The configuration data obtaining module is used to obtain the configuration data of each service type from a preset configuration management database;
    服务树生成模块,用于依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树,各个服务树分别具有唯一的标识信息;A service tree generation module, configured to generate a service tree corresponding to each service type according to the hierarchical structure and the configuration data, and each service tree has unique identification information;
    监控信息配置模块,用于基于所述标识信息,为所述各个服务树中包含的监控对象配置监控信息;A monitoring information configuration module, configured to configure monitoring information for monitoring objects included in each service tree based on the identification information;
    监控模块,用于按照所述监控信息,对所述监控对象进行监控。The monitoring module is used to monitor the monitored object according to the monitoring information.
  9. 如权利要求8所述的监控装置,其中,所述依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树的步骤包括: 8. The monitoring device according to claim 8, wherein the step of generating a service tree corresponding to each service type according to the hierarchical structure and the configuration data comprises:
    确定各个监控对象的配置数据的类型,将具有相同类型的配置数据的多个监控对象作为同一服务树的叶子节点;Determine the type of configuration data of each monitoring object, and treat multiple monitoring objects with the same type of configuration data as the leaf nodes of the same service tree;
    针对所述叶子节点中的任一监控对象,通过向父节点回溯的方式,生成与当前的业务类型相对应的服务树。For any monitoring object in the leaf node, a service tree corresponding to the current business type is generated by way of backtracking to the parent node.
  10. 如权利要求9所述的监控装置,其中,所述针对所述叶子节点中的任一监控对象,通过向父节点回溯的方式,生成与当前的业务类型相对应的服务树的步骤包括: The monitoring device according to claim 9, wherein the step of generating a service tree corresponding to the current business type by way of backtracking to the parent node for any monitoring object in the leaf node comprises:
    针对所述叶子节点中的任一监控对象,查找出所述配置数据中所述监控对象的上一层级数据中包含的监控对象,作为所述叶子节点在当前的服务树中的父节点,直到查找到所述当前的服务树的初始节点;For any monitoring object in the leaf node, find the monitoring object contained in the upper level data of the monitoring object in the configuration data, and use it as the parent node of the leaf node in the current service tree until Find the initial node of the current service tree;
    为所述初始节点的全部子节点配置相同的标识信息,生成与当前的业务类型相对应的服务树。All child nodes of the initial node are configured with the same identification information, and a service tree corresponding to the current service type is generated.
  11. 如权利要求8所述的监控装置,其中,在所述依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树的步骤后,还包括: 8. The monitoring device according to claim 8, wherein after the step of generating a service tree corresponding to each service type according to the hierarchical structure and the configuration data, the method further comprises:
    将多个服务树及其包含的监控对象组合为监控系统。Combine multiple service trees and their contained monitoring objects into a monitoring system.
  12. 如权利要求11所述的监控装置,其中,其中,所述基于所述标识信息,为所述各个服务树中包含的监控对象配置监控信息的步骤包括: The monitoring device according to claim 11, wherein the step of configuring monitoring information for monitoring objects included in each service tree based on the identification information comprises:
    确定各个监控对象的配置信息,分别将具有同一标识信息的多个监控对象的配置信息写入监控数据表;Determine the configuration information of each monitoring object, and write the configuration information of multiple monitoring objects with the same identification information into the monitoring data table;
    将所述监控数据表存储至所述监控系统。The monitoring data table is stored in the monitoring system.
  13. 如权利要求12所述的监控装置,其中,所述按照所述监控信息,对所述监控对象进行监控的步骤包括: The monitoring device according to claim 12, wherein the step of monitoring the monitoring object according to the monitoring information comprises:
    分别采集各个监控对象当前的运行信息;Collect the current operation information of each monitored object separately;
    将所述运行信息与所述监控数据表中对应的配置信息进行比较;Comparing the operating information with the corresponding configuration information in the monitoring data table;
    若所述运行信息与对应的所述配置信息不匹配,则生成针对所述监控对象的告警信息。If the operation information does not match the corresponding configuration information, generating alarm information for the monitoring object.
  14. 如权利要求8所述的监控装置,其中,还包括: The monitoring device according to claim 8, further comprising:
    根据所述各个服务树的标识信息和层级结构,对不同服务树中包含的各个监控对象以及同一服务树的不同层级中包含的各个监控对象进行隔离。According to the identification information and hierarchical structure of each service tree, each monitoring object included in different service trees and each monitoring object included in different levels of the same service tree are isolated.
  15. 一种服务器,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如下步骤: A server includes a memory, a processor, and a computer program that is stored in the memory and can run on the processor, wherein the processor implements the following steps when the processor executes the computer program:
    确定待监控的多个业务类型,各个业务类型分别包括多个监控对象;Determine multiple business types to be monitored, and each business type includes multiple monitoring objects;
    根据预设的系统架构信息,分别确定与所述各个业务类型相对应的待生成的服务树的层级结构;According to preset system architecture information, respectively determine the hierarchical structure of the service tree to be generated corresponding to each service type;
    从预置的配置管理数据库中获取所述各个业务类型的配置数据;Acquiring the configuration data of each service type from a preset configuration management database;
    依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树,各个服务树分别具有唯一的标识信息;Generating a service tree corresponding to each service type according to the hierarchical structure and the configuration data, each service tree having unique identification information;
    基于所述标识信息,为所述各个服务树中包含的监控对象配置监控信息;Based on the identification information, configure monitoring information for the monitoring objects included in each service tree;
    按照所述监控信息,对所述监控对象进行监控。According to the monitoring information, the monitoring object is monitored.
  16. 如权利要求15所述的服务器,其中,所述依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树的步骤包括: The server according to claim 15, wherein the step of generating a service tree corresponding to each service type according to the hierarchical structure and the configuration data comprises:
    确定各个监控对象的配置数据的类型,将具有相同类型的配置数据的多个监控对象作为同一服务树的叶子节点;Determine the type of configuration data of each monitoring object, and treat multiple monitoring objects with the same type of configuration data as the leaf nodes of the same service tree;
    针对所述叶子节点中的任一监控对象,通过向父节点回溯的方式,生成与当前的业务类型相对应的服务树。For any monitoring object in the leaf node, a service tree corresponding to the current business type is generated by way of backtracking to the parent node.
  17. 如权利要求16所述的服务器,其中,所述针对所述叶子节点中的任一监控对象,通过向父节点回溯的方式,生成与当前的业务类型相对应的服务树的步骤包括: The server according to claim 16, wherein the step of generating a service tree corresponding to the current service type by backtracking to the parent node for any monitoring object in the leaf node comprises:
    针对所述叶子节点中的任一监控对象,查找出所述配置数据中所述监控对象的上一层级数据中包含的监控对象,作为所述叶子节点在当前的服务树中的父节点,直到查找到所述当前的服务树的初始节点;For any monitoring object in the leaf node, find the monitoring object contained in the upper level data of the monitoring object in the configuration data, and use it as the parent node of the leaf node in the current service tree until Find the initial node of the current service tree;
    为所述初始节点的全部子节点配置相同的标识信息,生成与当前的业务类型相对应的服务树。All child nodes of the initial node are configured with the same identification information, and a service tree corresponding to the current service type is generated.
  18. 如权利要求15所述的服务器,其中,在所述依据所述层级结构和所述配置数据,生成与所述各个业务类型相对应的服务树的步骤后,还包括: 15. The server according to claim 15, wherein after the step of generating a service tree corresponding to each service type according to the hierarchical structure and the configuration data, the method further comprises:
    将多个服务树及其包含的监控对象组合为监控系统。Combine multiple service trees and their contained monitoring objects into a monitoring system.
  19. 如权利要求18所述的服务器,其中,所述基于所述标识信息,为所述各个服务树中包含的监控对象配置监控信息的步骤包括: The server according to claim 18, wherein the step of configuring monitoring information for monitoring objects contained in each service tree based on the identification information comprises:
    确定各个监控对象的配置信息,分别将具有同一标识信息的多个监控对象的配置信息写入监控数据表;Determine the configuration information of each monitoring object, and write the configuration information of multiple monitoring objects with the same identification information into the monitoring data table;
    将所述监控数据表存储至所述监控系统。The monitoring data table is stored in the monitoring system.
  20. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述的方法。A computer-readable storage medium storing a computer program, wherein the computer program implements the method according to any one of claims 1 to 7 when the computer program is executed by a processor.
PCT/CN2020/119292 2019-10-16 2020-09-30 Monitoring method and device, server, and storage medium WO2021073433A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910981769.9 2019-10-16
CN201910981769.9A CN110855473B (en) 2019-10-16 2019-10-16 Monitoring method, device, server and storage medium

Publications (1)

Publication Number Publication Date
WO2021073433A1 true WO2021073433A1 (en) 2021-04-22

Family

ID=69596282

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/119292 WO2021073433A1 (en) 2019-10-16 2020-09-30 Monitoring method and device, server, and storage medium

Country Status (2)

Country Link
CN (1) CN110855473B (en)
WO (1) WO2021073433A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113381884A (en) * 2021-06-02 2021-09-10 上海数禾信息科技有限公司 Full link monitoring method and device for monitoring alarm system
CN113472565A (en) * 2021-06-03 2021-10-01 北京闲徕互娱网络科技有限公司 Method, device, equipment and computer readable medium for expanding server function
CN113536088A (en) * 2021-07-06 2021-10-22 北京百度网讯科技有限公司 Streaming system data processing method and device, electronic equipment and storage medium
CN113806371A (en) * 2021-09-27 2021-12-17 重庆紫光华山智安科技有限公司 Data type determination method and device, computer equipment and storage medium
CN114915643A (en) * 2022-05-09 2022-08-16 北京交大微联科技有限公司 Configuration method, device, equipment and medium of railway signal centralized monitoring system
CN116931529A (en) * 2023-09-14 2023-10-24 深圳市华科科技有限公司 Intelligent monitoring method and system for industrial production equipment
WO2024093971A1 (en) * 2022-11-04 2024-05-10 中车长春轨道客车股份有限公司 Method and system for determining vehicle-mounted superconducting magnet monitoring system, and storage medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855473B (en) * 2019-10-16 2022-11-18 平安科技(深圳)有限公司 Monitoring method, device, server and storage medium
CN111698326B (en) * 2020-06-12 2023-01-31 北京百度网讯科技有限公司 Method and device for determining cost attribution of cloud service resources
CN111917573B (en) * 2020-07-13 2023-04-18 海南车智易通信息技术有限公司 Monitoring method, monitoring system and computing equipment
CN111930718B (en) * 2020-08-13 2023-09-15 中国工商银行股份有限公司 Node adjustment method and device for configuration management database
CN112433915B (en) * 2020-11-30 2023-06-16 泰康保险集团股份有限公司 Data monitoring method and related device based on distributed performance monitoring tool
CN114615169B (en) * 2020-12-03 2023-10-20 腾讯科技(深圳)有限公司 Path monitoring method, path monitoring device and computer readable storage medium
CN113176975B (en) * 2021-03-30 2023-10-31 东软集团股份有限公司 Method and device for processing monitoring data, storage medium and electronic equipment
CN113065801A (en) * 2021-04-26 2021-07-02 平安普惠企业管理有限公司 Organization architecture management method, device, equipment and storage medium
CN113791964A (en) * 2021-09-27 2021-12-14 首约科技(北京)有限公司 Service monitoring method based on four layers of transmission control protocol
CN116204388A (en) * 2023-04-27 2023-06-02 北京合力金智科技发展有限公司 Intelligent monitoring system and method for system service state

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106203640A (en) * 2016-07-06 2016-12-07 中车青岛四方机车车辆股份有限公司 A kind of O&M configuration management method and device based on EMU
CN108337100A (en) * 2017-01-19 2018-07-27 中移物联网有限公司 A kind of method and apparatus of cloud platform monitoring
CN109039740A (en) * 2018-08-01 2018-12-18 平安科技(深圳)有限公司 A kind of method and apparatus handling O&M monitoring alarm
WO2019153532A1 (en) * 2018-02-07 2019-08-15 平安科技(深圳)有限公司 Deployment method and apparatus for monitoring system, and computer device and storage medium
CN110196721A (en) * 2019-04-26 2019-09-03 腾讯科技(深圳)有限公司 A kind of Internet data center's management method, system and medium
CN110855473A (en) * 2019-10-16 2020-02-28 平安科技(深圳)有限公司 Monitoring method, device, server and storage medium

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004098126A1 (en) * 2003-05-01 2004-11-11 Koninklijke Philips Electronics N.V. An ad-hoc network, a network device and a method of configuration management therefor
JP5568776B2 (en) * 2010-11-05 2014-08-13 株式会社日立製作所 Computer monitoring system and monitoring method
CN103873279B (en) * 2012-12-13 2015-07-15 腾讯科技(深圳)有限公司 Server management method and server management device
BR102014003580B1 (en) * 2014-02-14 2023-03-21 Samsung Eletrônica da Amazônia Ltda. METHOD TO ENABLE HIERARCHICAL GATEWAY ARCHITECTURE FOR DEVICE MANAGEMENT
US9667704B1 (en) * 2014-04-26 2017-05-30 Google Inc. System and method for classifying API requests in API processing systems using a tree configuration
CN105335207B (en) * 2014-05-29 2019-04-12 国际商业机器公司 Method and apparatus for managing virtual machine instance
CN105183610B (en) * 2015-09-22 2018-12-14 浪潮集团有限公司 A kind of cloud data center service monitoring system and method based on Resource Dependence relationship
CN108153641A (en) * 2016-12-05 2018-06-12 北京国双科技有限公司 A kind of nothing buries deployment monitoring method and a relevant apparatus
CN108667745A (en) * 2017-03-30 2018-10-16 深圳市中兴微电子技术有限公司 A kind of method and apparatus of traffic policing
CN107493208A (en) * 2017-08-30 2017-12-19 苏州朗动网络科技有限公司 Full the link performance monitoring method and system of a kind of medium-and-large-sized operation system
US10805350B2 (en) * 2018-02-15 2020-10-13 Oracle International Corporation System and method for providing security services using a configuration template in a multi-tenant environment
CN109542705A (en) * 2018-11-28 2019-03-29 郑州云海信息技术有限公司 A kind of monitored item adding method and device
CN109787813B (en) * 2018-12-21 2022-02-22 奇安信科技集团股份有限公司 SDN-based service chain configuration method, device, system and medium
CN109873717A (en) * 2019-01-18 2019-06-11 深圳壹账通智能科技有限公司 Monitoring method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106203640A (en) * 2016-07-06 2016-12-07 中车青岛四方机车车辆股份有限公司 A kind of O&M configuration management method and device based on EMU
CN108337100A (en) * 2017-01-19 2018-07-27 中移物联网有限公司 A kind of method and apparatus of cloud platform monitoring
WO2019153532A1 (en) * 2018-02-07 2019-08-15 平安科技(深圳)有限公司 Deployment method and apparatus for monitoring system, and computer device and storage medium
CN109039740A (en) * 2018-08-01 2018-12-18 平安科技(深圳)有限公司 A kind of method and apparatus handling O&M monitoring alarm
CN110196721A (en) * 2019-04-26 2019-09-03 腾讯科技(深圳)有限公司 A kind of Internet data center's management method, system and medium
CN110855473A (en) * 2019-10-16 2020-02-28 平安科技(深圳)有限公司 Monitoring method, device, server and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113381884A (en) * 2021-06-02 2021-09-10 上海数禾信息科技有限公司 Full link monitoring method and device for monitoring alarm system
CN113472565A (en) * 2021-06-03 2021-10-01 北京闲徕互娱网络科技有限公司 Method, device, equipment and computer readable medium for expanding server function
CN113536088A (en) * 2021-07-06 2021-10-22 北京百度网讯科技有限公司 Streaming system data processing method and device, electronic equipment and storage medium
CN113536088B (en) * 2021-07-06 2024-01-12 北京百度网讯科技有限公司 Streaming system data processing method and device, electronic equipment and storage medium
CN113806371A (en) * 2021-09-27 2021-12-17 重庆紫光华山智安科技有限公司 Data type determination method and device, computer equipment and storage medium
CN113806371B (en) * 2021-09-27 2024-01-19 重庆紫光华山智安科技有限公司 Data type determining method, device, computer equipment and storage medium
CN114915643A (en) * 2022-05-09 2022-08-16 北京交大微联科技有限公司 Configuration method, device, equipment and medium of railway signal centralized monitoring system
CN114915643B (en) * 2022-05-09 2024-01-26 北京交大微联科技有限公司 Configuration method, device, equipment and medium of railway signal centralized monitoring system
WO2024093971A1 (en) * 2022-11-04 2024-05-10 中车长春轨道客车股份有限公司 Method and system for determining vehicle-mounted superconducting magnet monitoring system, and storage medium
CN116931529A (en) * 2023-09-14 2023-10-24 深圳市华科科技有限公司 Intelligent monitoring method and system for industrial production equipment

Also Published As

Publication number Publication date
CN110855473A (en) 2020-02-28
CN110855473B (en) 2022-11-18

Similar Documents

Publication Publication Date Title
WO2021073433A1 (en) Monitoring method and device, server, and storage medium
US11093631B2 (en) Data access authority management method, apparatus, terminal device and storage medium
US20210224412A1 (en) User permission data query method and apparatus, electronic device and medium
US9460187B2 (en) Creation of a graph database of a virtualization infrastructure
CN110569657B (en) Data access method, device, equipment and storage medium
US10680973B2 (en) Systems and methods for intelligent application grouping
CN109726579B (en) Resource access authority grouping method and equipment
US8819206B2 (en) Graph based flexible service discovery and management system and method
US9355163B2 (en) Using a graph database of a virtualization infrastructure
US11409724B2 (en) Hashed balanced tree data structure
CN113704790A (en) Abnormal log information summarizing method and computer equipment
CN112883125A (en) Entity data processing method, device, equipment and storage medium
US20220086039A1 (en) Generation of synthetic alerts and unified dashboard for viewing multiple layers of data center simultaneously
US20210271998A1 (en) System, method, and recording medium for distributed probabilistic eidetic querying, rollback, and replay
US20200265069A1 (en) Fast linking of anonymized datasets
CN110515750A (en) A kind of applied topology generation method, system and cluster
CN109257457B (en) IDC information security system state monitoring method based on data analysis
US10664501B2 (en) Deriving and interpreting users collective data asset use across analytic software systems
CN112148728A (en) Method, apparatus and computer program product for information processing
CN105095283A (en) Quasi-friend recommending method in social networking system and quasi-friend recommending system in social networking system
US11868349B2 (en) Row secure table plan generation
CN114860851A (en) Data processing method, device, equipment and storage medium
CN114840519A (en) Data labeling method, equipment and storage medium
US20210097042A1 (en) Maintaining temporal associations for event data in an event database
CN115357657B (en) Data processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20876813

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20876813

Country of ref document: EP

Kind code of ref document: A1