Health monitoring method

By obtaining the configuration information of the distributed system and determining whether the monitoring module successfully monitors the performance data, the problem that the health of the monitoring module in the prior art is not monitored, and the health monitoring link of the distributed system is complete and reliable.

CN119493709APending Publication Date: 2025-02-21AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411731103.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

The existing health monitoring solutions cannot guarantee the accuracy of health monitoring of distributed systems, especially because the health of the monitoring module itself is not monitored, resulting in the inability to accurately monitor the health of the target system.

Method used

By obtaining the configuration information of the target system, the monitoring results of the monitoring module for the target system are obtained based on this information, and whether the monitoring module successfully monitors the performance data of the target system, thereby determining the health of the monitoring module.

Benefits of technology

It realizes accurate monitoring of the health of the monitoring module, solves the problem of inaccurate health monitoring caused by abnormal monitoring modules, and ensures that the health monitoring link of the target system is complete and reliable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119493709A_ABST
    Figure CN119493709A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a health monitoring method. The method comprises the following steps: for a target system to be subjected to health monitoring, acquiring configuration information related to the target system; for a monitoring module used for monitoring the health of the target system, a monitoring result of the monitoring module for the target system is obtained based on the configuration information, and the monitoring result represents whether the monitoring module monitors performance data of the target system or not; and determining the health of the monitoring module according to the monitoring result. According to the technical scheme of the embodiment of the invention, the accuracy of health monitoring of the target system can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a health monitoring method. Background Art

[0002] With the deepening of digital transformation, commercial banks have now fully shifted from the integrated architecture of "centralized system architecture + openness" to an open distributed architecture.

[0003] After the transformation to distributed architecture, distributed systems have become the core and foundation of banking information systems, which makes it particularly important to ensure the smooth operation of distributed systems, and thus requires comprehensive and effective health monitoring of distributed systems 24 / 7.

[0004] However, the current health monitoring solutions cannot guarantee the accuracy of health monitoring, which needs to be solved urgently. Summary of the invention

[0005] The embodiment of the present invention provides a health monitoring method, which solves the problem that the accuracy of health monitoring of a target system cannot be guaranteed.

[0006] According to one aspect of the present invention, a health monitoring method is provided, which may include:

[0007] For a target system to be health-monitored, obtain configuration information related to the target system;

[0008] For a monitoring module used to monitor the health of a target system, obtaining a monitoring result of the monitoring module on the target system based on the configuration information, wherein the monitoring result indicates whether the monitoring module monitors the performance data of the target system;

[0009] Based on the monitoring results, determine the health of the monitoring module.

[0010] The technical solution of the embodiment of the present invention obtains configuration information related to the target system to be health-monitored; for the monitoring module used to monitor the health of the target system, the monitoring result of the monitoring module for the target system is obtained through the configuration information, and the monitoring result characterizes whether the monitoring module monitors the performance data of the target system; then, the health of the monitoring module is determined according to the monitoring result. The above technical solution solves the problem of being unable to accurately monitor whether the target system is healthy due to abnormal monitoring modules by monitoring the health of the monitoring module responsible for monitoring the health of the target system, and achieves the effect of accurately monitoring the health of the target system, that is, compared with monitoring the health of the target system alone, there is an extra layer of protection, which is more conducive to the integrity and reliability of the monitoring link of the target system and protects the smooth operation of the target system.

[0011] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0013] Figure 1 is a flow chart of a health monitoring method provided according to an embodiment of the present invention;

[0014] Figure 2 is a flow chart of another health monitoring method provided according to an embodiment of the present invention;

[0015] Figure 3 is a flow chart of another health monitoring method provided according to an embodiment of the present invention;

[0016] Figure 4 is a flow chart of another health monitoring method provided according to an embodiment of the present invention;

[0017] Figure 5 is a flow chart of another health monitoring method provided according to an embodiment of the present invention;

[0018] Figure 6 is a flowchart of an optional example of another health monitoring method provided according to an embodiment of the present invention;

[0019] Figure 7 is a structural block diagram of a health monitoring device provided according to an embodiment of the present invention;

[0020] Figure 8 It is a schematic diagram of the structure of an electronic device for implementing the health monitoring method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The situations of "target", "original", etc. are similar and will not be repeated here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0023] Before introducing the embodiments of the present invention, the application scenarios of the embodiments of the present invention and the specific reasons why the currently used health monitoring solutions described in the background technology cannot guarantee the accuracy of health monitoring are first exemplified to better understand how the embodiments of the present invention solve this technical problem.

[0024] For example, under a distributed architecture, distributed systems are large in scale and complex in architecture, which makes operation and maintenance personnel face challenges such as diversification of basic resource monitoring scenarios, rapid growth in the number of monitored objects, and replacement of new technology stacks. When operation and maintenance personnel use monitoring modules (Monitor) to monitor the health of distributed systems, the monitoring modules themselves also face health challenges.

[0025] However, the current health monitoring solution only monitors the health of the distributed system, but does not monitor the health of the monitoring module. This makes it difficult to accurately monitor the health of the distributed system when an abnormality occurs in the monitoring module responsible for monitoring the health of the distributed system, which needs to be solved urgently.

[0026] Figure 1 It is a flow chart of a health monitoring method provided in an embodiment of the present invention. This embodiment can be applied to the case where the health of a monitoring module responsible for monitoring the health of a target system is monitored. The method can be executed by a health monitoring device provided in an embodiment of the present invention, which can be implemented by software and / or hardware, and which can be integrated in an electronic device, which can be various user terminals or servers.

[0027] See also Figure 1 The method of the embodiment of the present invention specifically includes the following steps:

[0028] S110 . For a target system to be health-monitored, obtain configuration information related to the target system.

[0029] Among them, the target system can be understood as a system with health monitoring needs. The system can be a distributed system or a non-distributed system. This depends on the actual situation and is not specifically limited here.

[0030] Configuration information can be understood as configuration information related to the target system. The configuration information is obtained.

[0031] S120 . For a monitoring module used to monitor the health of a target system, obtain a monitoring result of the monitoring module for the target system based on the configuration information, wherein the monitoring result indicates whether the monitoring module monitors performance data of the target system.

[0032] Among them, the monitoring module can be understood as a module for monitoring the health of the target system. On this basis, combined with the application scenarios that may be involved in the embodiments of the present invention, optionally, the monitoring module can support multiple monitoring access methods such as direct performance monitoring and third-party performance monitoring to achieve unified reception, management and forwarding of basic resource alarms; it can configure monitoring strategies, monitoring indicators and threshold rules for multiple basic resources, and support monitoring and processing functions such as viewing performance data and custom collection scripts to ensure that faults are "discovered in time, accurately located and quickly handled". On this basis, optionally, the monitoring strategy consists of monitoring indicators and threshold rules. The monitoring indicators are divided into two types: built-in and customized Agents, which can be used to monitor the health of basic resource performance and operating status; the threshold rules are alarm rules configured for monitoring indicators, and alarms are issued for monitoring objects corresponding to abnormal monitoring data. In actual applications, corresponding monitoring strategies can be configured for basic resources of different resource types to ensure accurate monitoring of each basic resource.

[0033] Based on the configuration information, the monitoring result of the monitoring module for the target system is obtained, and the monitoring result can indicate whether the monitoring module monitors the performance data of the target system.

[0034] S130. Determine the health of the monitoring module according to the monitoring result.

[0035] Wherein, whether the monitoring module is healthy is determined according to the monitoring result. On this basis, in combination with the application scenarios that may be involved in the embodiments of the present invention, optionally, if the monitoring result indicates that the monitoring module monitors the performance data of the target system, the monitoring module is determined to be healthy; otherwise, the monitoring module is determined to be unhealthy.

[0036] The technical solution of the embodiment of the present invention obtains configuration information related to the target system to be health-monitored; for the monitoring module used to monitor the health of the target system, the monitoring result of the monitoring module for the target system is obtained through the configuration information, and the monitoring result characterizes whether the monitoring module monitors the performance data of the target system; then, the health of the monitoring module is determined according to the monitoring result. The above technical solution solves the problem of being unable to accurately monitor whether the target system is healthy due to abnormal monitoring modules by monitoring the health of the monitoring module responsible for monitoring the health of the target system, and achieves the effect of accurately monitoring the health of the target system, that is, compared with monitoring the health of the target system alone, there is an extra layer of protection, which is more conducive to the integrity and reliability of the monitoring link of the target system and protects the smooth operation of the target system.

[0037] Figure 2 It is a flowchart of another health monitoring method provided in an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the monitoring module monitors the health of the target system by monitoring the health of the target resources that have health monitoring requirements in the target system, and obtains configuration information related to the target system, including: obtaining the configuration information of the target resources; obtaining the monitoring results of the monitoring module for the target resources based on the configuration information, including: obtaining the monitoring results of the monitoring module for the target resources based on the configuration information, wherein the monitoring results characterize whether the monitoring module monitors the performance data of the target resources. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.

[0038] See also Figure 2 The method of this embodiment may specifically include the following steps:

[0039] S210 . For a target system to be health-monitored, obtain configuration information of target resources in the target system that have health-monitoring requirements.

[0040] The target resource can be understood as a resource in the target system that has health monitoring requirements. On this basis, combined with the application scenarios that may be involved in the embodiments of the present invention, the resource can be a basic resource; of course, it can also be other types of resources, which can be set according to actual needs and are not specifically limited here.

[0041] S220 . For a monitoring module used to monitor the health of a target resource, obtain a monitoring result of the monitoring module on the target resource based on the configuration information, wherein the monitoring result indicates whether the monitoring module monitors the performance data of the target resource.

[0042] S230: Determine the health of the monitoring module according to the monitoring result.

[0043] The technical solution of the embodiment of the present invention realizes accurate determination of the health of the monitoring module by judging whether the monitoring module monitors the performance data of the target resource.

[0044] Figure 3 It is a flowchart of another health monitoring method provided in an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the number of resource types of the target resource is at least one, and obtaining the configuration information of the target resource may include: for the target resource under each resource type, by calling the configuration information acquisition interface corresponding to the resource type, obtaining the configuration information of the target resource under the resource type. Among them, the explanations of the terms that are the same as or corresponding to the above-mentioned embodiments are not repeated here.

[0045] See also Figure 3 The method of this embodiment may specifically include the following steps:

[0046] S310. For each target resource of a resource type that has a health monitoring requirement in the target system, obtain configuration information of the target resource of the resource type by calling a configuration information acquisition interface corresponding to the resource type.

[0047] Among them, the number of resource types with health monitoring requirements in the target system may be one, two or more, which is related to the actual situation and is not specifically limited here. On this basis, combined with the application scenarios that may be involved in the embodiments of the present invention, optionally, each resource type may include database component resources and / or operating system resources, etc., which is related to the actual situation and is not specifically limited here.

[0048] On this basis, for the target resource under each resource type, the configuration information of the target resource under the resource type can be obtained by calling the configuration information acquisition interface corresponding to the resource type. Different resource types have different configuration information acquisition interfaces, and these configuration information acquisition interfaces are used to accurately obtain the configuration information corresponding to the target resources under each resource type.

[0049] S320. For a monitoring module used to monitor the health of a target resource under the resource type, obtain the monitoring result of the monitoring module for the target resource under the resource type based on the configuration information, wherein the monitoring result indicates whether the monitoring module monitors the performance data of the target resource under the resource type.

[0050] Among them, the monitoring modules corresponding to the target resources under different resource types can be the same or different, which can be set according to actual needs and is not specifically limited here.

[0051] S330. Determine the health of the monitoring module according to the monitoring result.

[0052] The technical solution of the embodiment of the present invention realizes accurate acquisition of configuration information corresponding to target resources under each resource type by setting corresponding configuration information acquisition interfaces for different resource types, thereby utilizing these configuration information acquisition interfaces.

[0053] An optional technical solution is to obtain the configuration information of the target resource under the resource type by calling the configuration information acquisition interface corresponding to the resource type, including:

[0054] By calling the configuration information acquisition interface corresponding to the resource type, the configuration information of the target resource under the resource type is obtained from the configuration management database.

[0055] Among them, in this technical solution, optionally, the Configuration Management Database (CMDB) can be responsible for managing the configuration information of all physical machines, virtual machines and cloud resources in the data center. In other words, the relevant configuration information of the operating system server resources, distributed database servers and database instances can be quickly searched through the CMDB to obtain their detailed configuration information.

[0056] The above technical solution realizes the rapid acquisition of configuration information by applying CMDB.

[0057] Figure 4 It is a flowchart of another health monitoring method provided in an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the monitoring result of the monitoring module for the target resource is obtained based on the configuration information, including: calling the performance data acquisition interface through the configuration information; receiving the return information of the performance data acquisition interface for the configuration information, so as to obtain the monitoring result of the monitoring module for the target resource according to the return information. Among them, the explanation of the terms that are the same or corresponding to the above-mentioned embodiments will not be repeated here.

[0058] See also Figure 4 The method of this embodiment may specifically include the following steps:

[0059] S410: For a target system to be health-monitored, obtain configuration information of target resources in the target system that have health-monitoring requirements.

[0060] S420. Call a performance data acquisition interface through configuration information.

[0061] S430. For a monitoring module used to monitor the health of a target resource, receive the return information of the performance data acquisition interface for the configuration information, so as to obtain the monitoring result of the monitoring module for the target resource according to the return information, wherein the monitoring result indicates whether the monitoring module monitors the performance data of the target resource.

[0062] S440. Determine the health of the monitoring module according to the monitoring result.

[0063] The technical solution of the embodiment of the present invention realizes the effective acquisition of performance data by utilizing the performance data acquisition interface.

[0064] An optional technical solution, obtaining the monitoring result of the monitoring module for the target resource according to the returned information, includes:

[0065] When the returned information indicates that the monitoring is valuable, a monitoring result indicating that the monitoring module can monitor the performance data of the target resource is obtained; and / or,

[0066] When the returned information indicates that the monitoring has no value, a monitoring result indicating that the monitoring module fails to monitor the performance data of the target resource is obtained.

[0067] The above technical solution can accurately obtain the monitoring result by returning the monitoring value or monitoring value indicated by the information.

[0068] On this basis, optionally, the above health monitoring method may further include:

[0069] When the returned information indicates that the performance data acquisition interface call fails, the step of calling the performance data acquisition interface through the configuration information is repeated.

[0070] In the above technical solution, when the returned information indicates that the performance data acquisition interface call fails, this means that the performance data acquisition interface has not been successfully called at this time, that is, the performance data has not been successfully acquired. Therefore, the steps of calling the performance data acquisition interface can be repeated to successfully obtain the monitoring results.

[0071] Figure 5 It is a flowchart of another health monitoring method provided in an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the number of resource types of the target resource is at least one, and the above-mentioned health monitoring method also includes: for the target resources under each resource type, by utilizing the monitoring module, based on the monitoring strategy pre-configured for the resource type and the monitoring indicators pre-configured for the monitoring strategy, the performance data of the target resources under the resource type are monitored. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.

[0072] See also Figure 5 The method of this embodiment may specifically include the following steps:

[0073] S510. For each target resource under a resource type that has a health monitoring requirement in the target system, monitor the performance data of the target resource under the resource type by utilizing a monitoring module based on a monitoring strategy pre-configured for the resource type and monitoring indicators pre-configured for the monitoring strategy.

[0074] S520: Obtain configuration information of the target resource under the resource type.

[0075] S530. Based on the configuration information, obtain the monitoring result of the monitoring module for the target resource under the monitoring resource type, wherein the monitoring result indicates whether the monitoring module monitors the performance data of the target resource under the monitoring resource type.

[0076] S540: Determine the health of the monitoring module according to the monitoring result.

[0077] The technical solution of the embodiment of the present invention realizes accurate monitoring of the health of target resources under each resource type by utilizing monitoring strategies and monitoring indicators corresponding to different resource types.

[0078] On this basis, in order to better understand the above technical solutions as a whole, the following is an illustrative description of them with specific examples. For example, here we take a distributed database component and an operating system as two representative basic resources for illustration. For the specific monitoring process, see Figure 6 .

[0079] In this example, in order to monitor the performance data of basic resources in a distributed system in real time, this example explores and summarizes a basic resource monitoring scenario for a distributed system (i.e., a distributed core system). First, two types of monitoring strategies are configured to collect and monitor the performance data of distributed database component resources and operating system resources respectively. On this basis, for a more intuitive approach, the following uses open source TDSQL database component resources and Linux operating system resources as examples for explanation. Secondly, associate relevant monitoring indicators and threshold rules with each type of monitoring strategy to monitor the usage and operating status of the two types of resources.

[0080] In the design of the technical solution for monitoring and maintaining the health of the Monitor, by designing a maintenance script and configuring a scheduled task to monitor the monitoring status of these two types of resources in real time, the health of the Monitor can be determined based on whether the Monitor can collect the performance data of these two types of resources in real time. If the monitoring is abnormal, the monitoring abnormality mechanism is immediately triggered, and the resource information of the abnormal basic resources (such as the unique identification ID and host name, etc.) is sent to the system administrator through email or SMS to manually restart the monitoring configuration.

[0081] 1. Basic resource monitoring scenario design

[0082] TDSQL database components and Linux operating system are important components of the basic resources of distributed systems. TDSQL database component resources include TDSQL's DATA node, GROUP instance, SCHEDULE node, OSS node, DCN node, ZOOKEEPER node, and gateway PROXY node resource types. Linux operating system resources can use the "Linux Monitoring Policy_OLTP_General" monitoring policy. The key monitoring indicators of the relevant monitoring policies can be found in the following table:

[0083]

[0084]

[0085] By configuring eight types of monitoring policies such as "TDSQL_DATA" and "TDSQL_GROUP" on Monitor and associating corresponding monitoring indicators, comprehensive monitoring of TDSQL database component resources is achieved. By configuring the "Linux Monitoring Policy_OLTP_General" monitoring policy and corresponding monitoring indicators, monitoring of Linux operating system resources is achieved.

[0086] 2. Design of monitoring monitor health

[0087] The design scheme for monitoring the health of Monitor proposed in this example mainly includes three parts: obtaining the configuration information of the monitored object, obtaining the performance data of the monitored object, and triggering the exception mechanism. The monitored object here is the basic resource for monitoring. The design scheme for monitoring the health of Monitor is mainly implemented by automated scripts. The application programming interface (API) implemented by the automated script has three categories: getLinuxReslnfo, getTdsqlResInfo, and getMonitorResInfo.

[0088] (1) Obtaining the configuration information of the monitored object

[0089] According to getLinuxReslnfo, the configuration information of the basic resources under the Linux operating system class is obtained from the CMDB. Here, the department to which the resource belongs (department), the production status (prod_status) and the resource type (classCode) are used as input parameters to obtain two types of configuration information: the unique identifier (ID) and the host name (name) of the monitored object. Similarly, according to getTdsqlResInfoAPI, the configuration information of the basic resources under the TDSQL database component class is obtained from the CMDB, which will not be traced here.

[0090] (2) Obtaining performance data of the monitored object

[0091] By calling getMonitorResInfo with the ID of the monitored object, the metric code (metric) of the monitored metric, the start time (start) and the end time (end) as input parameters, you can obtain the metric data (i.e. performance data) of the monitored object under the monitored metric within the start time and the end time.

[0092] In this example, getMonitorResInfo supports multiple monitoring objects to concurrently obtain the performance data of a monitoring indicator, which greatly reduces the monitoring time and reduces the frequency of calling the interface of the target platform where getMonitorResInfo is located, so as not to trigger the performance alarm of the target platform. In order to avoid accidental mismonitoring events, the monitoring solution uses multiple query time ranges to batch monitor all monitoring indicators of basic resources.

[0093] (3) Triggering abnormal mechanism

[0094] Determine whether the Monitor is monitoring the performance data of the basic resources normally based on the return information of getMonitorResInfo. Monitor monitoring exceptions are mainly divided into two types: monitoring valueless exceptions and target platform network request exceptions (i.e., getMonitorResInfo call exceptions). Specifically, the monitoring valueless exception means that there is no monitoring data for the basic resource, indicating that the Monitor has lost monitoring of the basic resource, and there is a greater production risk. The monitoring exception mechanism needs to be triggered immediately, and the resource information (such as ID and name, etc.) of the basic resource that monitors the monitoring exception is sent to the system administrator through email or SMS to manually restart the monitoring configuration. The target platform network request exception is an exception triggered when the target platform itself receives interface parameters. It is usually caused by a high call frequency peak when the caretaker script calls getMonitorResInfo in batches to query performance data. This exception can be called again after a preset time to continue monitoring until it ends normally or the monitoring valueless exception is triggered.

[0095] The above example has at least the following advantages:

[0096] 1. Implement interface encapsulation for obtaining performance data from CMDB to the target platform: Through three types of interface encapsulation, the configuration information corresponding to each resource type in CMDB can be automatically retrieved, and its performance data can be obtained accordingly to quickly complete the Monitor health check.

[0097] 2. Combined with operation and maintenance practice, the monitoring scenarios of distributed systems are summarized: distributed systems are monitored in real time from multiple angles by configuring monitoring strategies, monitoring indicators and threshold rules. This has a positive significance for the application practice of distributed databases and provides scalability. Other basic resources can also achieve performance monitoring of basic resources by referring to this method.

[0098] 3. Based on the idea of ​​monitoring and care, a specific solution for monitoring Monitor is proposed: Performance monitoring guarantees the service capability of the distributed system, while monitoring and caring for the health of the distributed system provides an additional layer of operation guarantee for the distributed system. This example provides health monitoring capabilities for the basic resources of the distributed system and protects the smooth operation of the distributed system.

[0099] Figure 7 This is a structural block diagram of a health monitoring device provided in an embodiment of the present invention, and the device is used to execute the health monitoring method provided in any of the above embodiments. The device and the health monitoring method of the above embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the health monitoring device, refer to the embodiment of the above health monitoring method. Figure 7The device may specifically include: a configuration information acquisition module 610, a monitoring result acquisition module 620 and a health monitoring module 630.

[0100] The configuration information acquisition module 610 may be used to acquire configuration information related to the target system to be health monitored;

[0101] A monitoring result acquisition module 620 is used for acquiring, for a monitoring module used for monitoring the health of a target system, a monitoring result of the monitoring module for the target system based on the configuration information, wherein the monitoring result indicates whether the monitoring module monitors the performance data of the target system;

[0102] The health monitoring module 630 is used to determine the health of the monitoring module according to the monitoring results.

[0103] Optionally, the monitoring module monitors the health of the target system by monitoring the health of target resources with health monitoring requirements in the target system. The configuration information acquisition module 610 includes:

[0104] The configuration information acquisition submodule is used to obtain the configuration information of the target resource;

[0105] The monitoring result acquisition module 620 includes:

[0106] The monitoring result acquisition submodule is used to acquire the monitoring result of the monitoring module for the target resource based on the configuration information, wherein the monitoring result indicates whether the monitoring module monitors the performance data of the target resource.

[0107] On this basis, optionally, the number of resource types of the target resource is at least one, and the configuration information acquisition submodule includes:

[0108] The configuration information acquisition unit is used to acquire the configuration information of the target resource under each resource type by calling the configuration information acquisition interface corresponding to the resource type.

[0109] On this basis, optionally, a configuration information acquisition unit includes:

[0110] The configuration information acquisition subunit is used to acquire the configuration information of the target resource under the resource type from the configuration management database by calling the configuration information acquisition interface corresponding to the resource type.

[0111] Another optional monitoring result acquisition submodule includes:

[0112] A performance data acquisition interface calling unit, used to call the performance data acquisition interface through configuration information;

[0113] The monitoring result obtaining unit is used to receive the return information of the performance data obtaining interface for the configuration information, so as to obtain the monitoring result of the monitoring module for the target resource according to the return information.

[0114] On this basis, optionally, the monitoring result obtaining unit may include:

[0115] The monitoring result first obtaining subunit is used to obtain the monitoring result indicating that the monitoring module can monitor the performance data of the target resource when the returned information indicates that the monitoring has a value; and / or,

[0116] The second monitoring result obtaining subunit is used to obtain the monitoring result indicating that the monitoring module fails to monitor the performance data of the target resource when the returned information indicates that the monitoring has no value.

[0117] On this basis, optionally, the monitoring result acquisition submodule also includes:

[0118] The re-execution unit is used to repeatedly execute the step of calling the performance data acquisition interface through the configuration information when the returned information indicates that the performance data acquisition interface call fails.

[0119] Alternatively, the number of resource types of the target resource is at least one, and the health monitoring device further includes:

[0120] The performance data monitoring module is used to monitor the performance data of the target resources under each resource type by utilizing the monitoring module based on the monitoring strategy pre-configured for the resource type and the monitoring indicators pre-configured for the monitoring strategy.

[0121] On this basis, optionally, at least one resource type includes database component type resources and / or operating system type resources.

[0122] Based on any of the above devices, optionally, the target system is a distributed system.

[0123] The health monitoring device provided in the embodiment of the present invention obtains configuration information related to the target system to be health-monitored through a configuration information acquisition module; for the monitoring module used to monitor the health of the target system, the monitoring result of the monitoring module for the target system is obtained according to the configuration information through a monitoring result acquisition module, and the monitoring result can characterize whether the monitoring module monitors the performance data of the target system; then, the health of the monitoring module is determined according to the monitoring result through the health monitoring module. The above device, by monitoring the health of the monitoring module responsible for monitoring the health of the target system, solves the problem of being unable to accurately monitor whether the target system is healthy due to abnormal monitoring modules, and achieves the effect of accurately monitoring the health of the target system, that is, compared with monitoring the health of the target system alone, there is an extra layer of protection, which is more conducive to the integrity and reliability of the monitoring link of the target system and protects the smooth operation of the target system.

[0124] The health monitoring device provided in the embodiment of the present invention can execute the health monitoring method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0125] It is worth noting that in the embodiment of the above-mentioned health monitoring device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0126] Figure 8 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0127] like Figure 8As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0128] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0129] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a health monitoring method.

[0130] In some embodiments, the health monitoring method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the health monitoring method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the health monitoring method in any other appropriate manner (e.g., by means of firmware).

[0131] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0132] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0133] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0134] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0135] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0136] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0137] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0138] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A health monitoring method, characterized in that: include: For a target system to be health-monitored, obtaining configuration information related to the target system; For a monitoring module used to monitor the health of the target system, obtaining a monitoring result of the monitoring module on the target system based on the configuration information, wherein the monitoring result indicates whether the monitoring module monitors the performance data of the target system; The health of the monitoring module is determined according to the monitoring result.

2. The method according to claim 1, characterized in that: The monitoring module monitors the health of the target system by monitoring the health of target resources having health monitoring requirements in the target system, and the acquiring of configuration information related to the target system includes: Obtaining configuration information of the target resource; The obtaining, based on the configuration information, a monitoring result of the monitoring module on the target resource, comprises: A monitoring result of the monitoring module for the target resource is obtained based on the configuration information, wherein the monitoring result indicates whether the monitoring module monitors the performance data of the target resource.

3. The method according to claim 2, characterized in that The number of resource types of the target resource is at least one, and the acquiring configuration information of the target resource includes: For each target resource under the resource type, the configuration information of the target resource under the resource type is acquired by calling a configuration information acquisition interface corresponding to the resource type.

4. The method according to claim 3, characterized in that The acquiring the configuration information of the target resource under the resource type by calling the configuration information acquisition interface corresponding to the resource type includes: The configuration information of the target resource under the resource type is acquired from the configuration management database by calling the configuration information acquisition interface corresponding to the resource type.

5. The method according to claim 2, characterized in that: The obtaining, based on the configuration information, a monitoring result of the monitoring module on the target resource, comprises: Using the configuration information, call the performance data acquisition interface; Receive the return information of the performance data acquisition interface for the configuration information, so as to obtain the monitoring result of the monitoring module for the target resource according to the return information.

6. The method according to claim 5, characterized in that The obtaining, according to the returned information, a monitoring result of the monitoring module on the target resource, comprises: In the case where the returned information indicates that the monitoring is valuable, a monitoring result indicating that the monitoring module can monitor the performance data of the target resource is obtained; and / or, In the case where the returned information indicates that there is no monitoring value, a monitoring result indicating that the monitoring module fails to monitor the performance data of the target resource is obtained.

7. The method according to claim 6, characterized in that Also includes: In the case where the return information indicates that the calling of the performance data acquisition interface fails, the step of calling the performance data acquisition interface according to the configuration information is repeated.

8. The method according to claim 2, characterized in that: The number of resource types of the target resource is at least one, and the method further includes: For the target resource under each resource type, the monitoring module is used to monitor the performance data of the target resource under the resource type based on the monitoring strategy pre-configured for the resource type and the monitoring indicators pre-configured for the monitoring strategy.

9. The method according to claim 8, characterized in that: At least one of the resource types includes database component type resources and / or operating system type resources.

10. The method according to any one of claims 1 to 9, characterized in that The target system is a distributed system.