Resource convergence alarm method, device, equipment and medium

By creating a single alarm command in enterprise-level applications and services, and unified monitoring and alarming of specific types of resources of multiple target monitoring devices, the problem of low efficiency in resource load monitoring and alarm in the existing technology is solved, and efficient monitoring and alarming of resource utilization is achieved.

CN120011170APending Publication Date: 2025-05-16CRSC COMM & INFORMATION GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510055531.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-14
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The prior art is difficult to effectively monitor and alert the load of computing resources, storage resources and network resources in enterprise-level applications and services, which may affect business continuity and service quality.

Method used

By creating a single alarm command, a specific type of target resource can be uniformly monitored and alerted in multiple target monitoring devices of a particular type. The method includes obtaining and parsing alarm commands, determining the target monitoring equipment and target resources, and performing utilization monitoring and alarming within the set resource monitoring period.

Benefits of technology

It realizes unified management of specific types of resources in multiple target monitoring equipment, reduces the workload of operation and maintenance personnel, simplifies the management and display of alarms, and improves resource utilization efficiency and service quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120011170A_ABST
    Figure CN120011170A_ABST
Patent Text Reader

Abstract

The invention relates to the field of resource warning, and discloses a resource convergence warning method, device and equipment and a medium. According to the invention, the created alarm command can be obtained, and the alarm command comprises the device type identifier of the to-be-monitored device and the resource type identifier of the to-be-monitored resource. And analyzing the alarm command to obtain an equipment type identifier and a resource type identifier in the alarm command. And determining a plurality of corresponding target monitoring devices according to the device type identifiers. Determining a target resource in each target monitoring device according to the resource type identifier; wherein the target resource corresponds to the resource type identifier. And in a set resource monitoring time period, carrying out monitoring alarm on the utilization rate of the target resource in each target monitoring device. According to the invention, through the created single alarm command, unified monitoring and alarm can be carried out on the specific type of target resources in the specific type of multiple target monitoring devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of resource alarms, and in particular to a resource aggregation alarm method, device, equipment and medium. Background Art

[0002] With the development of computer science and technology, enterprise-level applications and services have an increasing demand for computing resources, storage resources, network resources, etc. The efficient operation of resources is crucial to business continuity and service quality.

[0003] During business operation, when the resource load is large, it will affect the normal use of resources, thereby affecting business continuity and service quality. In order to avoid large resource load and exhaustion, a reliable resource alarm method is urgently needed. Summary of the invention

[0004] The present invention provides a resource aggregation alarm method, device, equipment and medium, which are used to uniformly monitor and alarm a specific type of target resource in multiple target monitoring devices of a specific type through a created single alarm command.

[0005] In a first aspect, the present invention provides a resource aggregation alarm method, comprising:

[0006] Acquire the created alarm command, wherein the alarm command includes a device type identifier of the device to be monitored and a resource type identifier of the resource to be monitored;

[0007] Parsing the alarm command to obtain the device type identifier and the resource type identifier in the alarm command;

[0008] Determining a corresponding plurality of target monitoring devices according to the device type identifier;

[0009] Determine the target resource in each of the target monitoring devices according to the resource type identifier; wherein the target resource corresponds to the resource type identifier;

[0010] During the set resource monitoring period, the usage rate of the target resource in each target monitoring device is monitored and an alarm is issued.

[0011] Optionally, monitoring and alarming the usage rate of the target resource in each target monitoring device within a set resource monitoring period includes:

[0012] During the resource monitoring period, collecting the usage rate of the target resource in each of the target monitoring devices;

[0013] For any of the target monitoring devices, if the collected usage rate of the target resource in the target monitoring device is greater than a preset usage rate threshold, the target monitoring device is determined to be abnormal, and an alarm is issued for the usage rate of the target resource in the target monitoring device.

[0014] Optionally, monitoring and alarming the usage rate of the target resource in each target monitoring device within a set resource monitoring period includes:

[0015] For any of the target monitoring devices, a first timestamp is obtained. If the first timestamp is within the resource monitoring period, a first usage rate of the target resource in the target monitoring device is collected to determine whether the first usage rate is greater than a preset usage rate threshold. If the first usage rate is greater than the usage rate threshold, the target monitoring device is determined to be abnormal, and an alarm is issued for the usage rate of the target resource in the target monitoring device. If the first usage rate is not greater than the usage rate threshold, the target monitoring device is determined to be normal, and a second timestamp is obtained. If the second timestamp is within the resource monitoring period, the second usage rate of the target resource in the target monitoring device is collected until the target monitoring device is determined to be abnormal, or the latest timestamp is determined to exceed the resource monitoring period.

[0016] Optionally, monitoring and alarming the usage rate of the target resource in each target monitoring device within a set resource monitoring period includes:

[0017] During the resource monitoring period, continuously collecting the usage rate of the target resource in each of the target monitoring devices;

[0018] For any of the target monitoring devices, if the usage rate of the target resource in the target monitoring device collected N times in succession is greater than a preset usage threshold, the target monitoring device is determined to be abnormal, and an alarm is issued for the usage rate of the target resource in the target monitoring device.

[0019] Optionally, before monitoring and alarming the usage rate of the target resource in each target monitoring device within the set resource monitoring period, the method further includes:

[0020] For any of the target monitoring devices, obtain the device identification of the target monitoring device and the resource identification of the target resource in the target monitoring device, and use the obtained device identification of the target monitoring device and the resource identification of the target resource as a key;

[0021] After each collection of the usage rate of the target resource in the target monitoring device, the collection time is recorded, the collection time and the collected usage rate of the target resource are used as the value corresponding to the key, and the key and the value are stored accordingly to obtain corresponding key-value pair type data.

[0022] Optionally, after obtaining the corresponding key-value pair type data, the method further includes:

[0023] receiving a resource usage query instruction, wherein the resource usage query instruction includes a device identifier of the target monitoring device and a resource identifier of the target resource;

[0024] According to the device identifier of the target monitoring device and the resource identifier of the target resource in the resource usage rate query instruction, the corresponding key-value pair type data is searched and the key-value pair type data is output.

[0025] Optionally, when the device type identifier of the target monitoring device is the device type identifier of a virtual machine, the resource type identifier of the target resource includes a memory usage rate and a resource type identifier of a central processing unit CPU.

[0026] In a second aspect, the present invention provides a resource aggregation alarm device, comprising:

[0027] An acquisition unit, used for acquiring a created alarm command, wherein the alarm command includes a device type identifier of a device to be monitored and a resource type identifier of a resource to be monitored;

[0028] A parsing unit, used for parsing the alarm command to obtain the device type identifier and the resource type identifier in the alarm command;

[0029] A first determining unit, configured to determine a corresponding plurality of target monitoring devices according to the device type identifier;

[0030] A second determining unit, configured to determine a target resource in each of the target monitoring devices according to the resource type identifier; wherein the target resource corresponds to the resource type identifier;

[0031] The alarm unit is used to monitor and alarm the usage rate of the target resource in each target monitoring device within a set resource monitoring period.

[0032] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the resource aggregation alarm method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0033] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the resource aggregation alarm method of the first aspect or any corresponding embodiment thereof.

[0034] The resource aggregation alarm method, device, equipment and medium provided by the present invention can obtain the created alarm command, and the alarm command includes the device type identifier of the device to be monitored and the resource type identifier of the resource to be monitored. The alarm command is parsed to obtain the device type identifier and the resource type identifier in the alarm command. The corresponding multiple target monitoring devices are determined according to the device type identifier. According to the resource type identifier, the target resource in each target monitoring device is determined; wherein the target resource corresponds to the resource type identifier. Within the set resource monitoring period, the utilization rate of the target resource in each target monitoring device is monitored and alarmed. The present invention can uniformly monitor and alarm a specific type of target resource in multiple target monitoring devices of a specific type by creating a single alarm command. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0036] Figure 1 A flow chart of a resource aggregation alarm method provided by an embodiment of the present invention;

[0037] Figure 2 A flowchart of another resource aggregation alarm method provided by an embodiment of the present invention;

[0038] Figure 3 A schematic diagram of the structure of a resource aggregation alarm device provided by an embodiment of the present invention;

[0039] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.

[0041] Combine the following Figure 1-Figure 2 The resource aggregation alarm method of the present invention is described.

[0042] like Figure 1 As shown, this embodiment proposes a first resource aggregation alarm method, which may include the following steps:

[0043] S101. Acquire a created alarm command, where the alarm command includes a device type identifier of a device to be monitored and a resource type identifier of a resource to be monitored.

[0044] It should be noted that this embodiment can be applied to a resource alarm platform in a business processing system. Specifically, the resource alarm platform can be a platform in the business processing system for monitoring and alarming specific types of resources in specific types of physical devices or virtual devices.

[0045] The target monitoring device may be a certain type of physical device or virtual device in the business processing system that needs to monitor resources, such as a host and a virtual machine. The device type identifier may be used to uniquely identify the device.

[0046] The target resource may be a type of resource to be monitored, such as memory, disk, and central processing unit (CPU). The resource type identifier may be used to uniquely identify the type of resource to be monitored.

[0047] Optionally, when the device type identifier of the target monitoring device is the device type identifier of a virtual machine, the resource type identifier of the target resource includes the resource type identifier of a memory usage rate and a central processing unit CPU.

[0048] It should be noted that both the device type identifier and the resource type identifier can be composed of at least one of numbers, letters and symbols.

[0049] It is understandable that this embodiment can first create an alarm command based on the device type identifier of the target monitoring device and the resource type identifier of the target resource. This embodiment can monitor the usage of a specific type of resource in a specific type of device based on the alarm command to achieve converged monitoring of the specific type of resource.

[0050] S102: Parse the alarm command to obtain a device type identifier and a resource type identifier in the alarm command.

[0051] Specifically, after acquiring the alarm command, this embodiment can parse the alarm command to obtain the device type identifier and the resource type identifier carried in the alarm command.

[0052] S103: Determine a corresponding plurality of target monitoring devices according to the device type identifier.

[0053] Specifically, this embodiment can determine all target monitoring devices that need to be monitored according to the device type identifier of the target monitoring device.

[0054] S104. Determine the target resource in each target monitoring device according to the resource type identifier; wherein the target resource corresponds to the resource type identifier.

[0055] Specifically, this embodiment can determine the target resource that needs to be monitored in each target monitoring device according to the resource type identifier of the target resource.

[0056] It can be understood that the resource type identifier of the target resource can uniquely identify the target resource.

[0057] S105. During the set resource monitoring period, monitor and issue an alarm on the usage rate of the target resources in each target monitoring device.

[0058] The resource monitoring period can be set by technical personnel according to business needs, and this embodiment does not limit it.

[0059] Specifically, this embodiment can monitor the usage rate of the target resource in each target monitoring device during the resource monitoring period, and when it is determined that the usage rate of the target resource in any target monitoring device meets the alarm condition, an alarm is issued for the usage rate of the target resource in the target monitoring device.

[0060] It should be noted that, in this embodiment, a plurality of consecutive resource monitoring time periods can be set to continuously monitor and warn the usage rate of the target resource in the target monitoring device.

[0061] Specifically, this embodiment is Figure 1 In steps S101 to S105, a specific type of target resource in multiple target monitoring devices of a specific type can be uniformly monitored and alarmed to achieve resource aggregation alarm.

[0062] In the related art, Aodh is a component used to manage alarms in the openstack framework, providing functions such as alarm evaluation and reporting. The evaluation of threshold alarms is to obtain monitoring data, periodically determine whether a resource has an alarm, and report it. The existing function of Aodh cannot support creating an alarm to manage all resources, and there are the following problems: Aodh creates an alarm, which only supports the management of a single resource under a resource type, and cannot manage all resources under a resource type by creating an alarm; when Aodh creates an alarm, it is necessary to pass in the resource identifier of the target resource, and the resource identifier needs to be manually queried by the user. When there are many types and quantities of resources (such as virtual machines, hosts, and host disks, etc.), if you monitor resources by manually creating alarms, you need to do a lot of query operations and create a lot of alarms; when resources change, you also need to modify the resource identifier of the resource corresponding to the alarm. The resource identifier and the alarm are coupled. When a large number of resources change, the amount of changes to the alarm is large, which increases the workload of maintenance personnel.

[0063] This embodiment can uniformly monitor and alarm a specific type of target resource in multiple target monitoring devices of a specific type by creating a single alarm command, thereby realizing unified management of specific types of resources in multiple target monitoring devices. It is convenient for operation and maintenance personnel to manage alarms. For example, if there are 100 virtual machines, in order to perform alarm monitoring of CPU usage and memory usage for all virtual machines, if the AODH alarm type in the relevant technology is used, 100×2=200 alarms need to be created for complete monitoring, and with the addition and deletion of virtual machines, it is necessary to continuously create new alarms and modify the resource ID field of the alarm. The resource aggregation alarm method of this embodiment only needs to create 1x2=2 alarms to achieve complete monitoring of these virtual machines, and there is no need to modify the alarm definition as the virtual machines are added or deleted, which greatly reduces the daily workload of operation and maintenance personnel. At the same time, the number of alarms is reduced, and the display of alarms on the interface is simplified.

[0064] The alarm command of this embodiment only needs to carry the device type identifier of the target monitoring device and the resource type identifier of the target resource, without carrying the device identifier and resource identifier of each target monitoring device. This can reduce the human resources required for users to manually query the device identifiers and resource identifiers of multiple devices in related technologies, and can improve the efficiency of command creation.

[0065] It can be understood that since the alarm command of this embodiment only needs to carry the device type identifier of the target monitoring device and the resource type identifier of the target resource, when the resources in a target monitoring device in this embodiment change, there is no need to modify the resource identifier in the alarm command, which can effectively avoid changes to the alarm command and reduce the workload of technical personnel.

[0066] The resource aggregation alarm method proposed in this embodiment can obtain the created alarm command, which includes the device type identifier of the device to be monitored and the resource type identifier of the resource to be monitored. Parse the alarm command to obtain the device type identifier and the resource type identifier in the alarm command. Determine the corresponding multiple target monitoring devices according to the device type identifier. According to the resource type identifier, determine the target resource in each target monitoring device; wherein the target resource corresponds to the resource type identifier. During the set resource monitoring period, monitor and alarm the utilization rate of the target resource in each target monitoring device. This embodiment can uniformly monitor and alarm a specific type of target resource in multiple target monitoring devices of a specific type through the single alarm command created, thereby realizing unified management of specific types of resources in multiple target monitoring devices.

[0067] based on Figure 1 ,like Figure 2 As shown, this embodiment proposes a second resource aggregation alarm method, and the above step S105 may include:

[0068] S1051. During the resource monitoring period, collect the usage rate of the target resources in each target monitoring device.

[0069] S1052. For any target monitoring device, if the collected usage rate of the target resource in the target monitoring device is greater than a preset usage rate threshold, the target monitoring device is determined to be abnormal, and an alarm is issued for the usage rate of the target resource in the target monitoring device.

[0070] The preset usage rate threshold may be set by a technician according to actual needs. This embodiment does not limit the specific size of the preset usage rate threshold, for example, it may be set to 70% or 80%.

[0071] Specifically, this embodiment can collect the usage rate of the target resource in each target monitoring device during the resource monitoring period, and determine whether the usage rate of the target resource in each target monitoring device collected is greater than a preset usage rate threshold. If it is determined that the usage rate of the target resource in any target monitoring device is greater than the usage rate threshold, it can be determined that the target monitoring device is an abnormal device, and an alarm is issued for the usage rate of the target resource in the target monitoring device. If it is determined that the usage rate of the target resource in a certain target monitoring device is not greater than the usage rate threshold, it can be determined that the target monitoring device is a normal device, and there is no need to issue an alarm for the usage rate of the target resource in the target monitoring device.

[0072] Optionally, this embodiment may also issue a unified alarm for the usage rates of target resources in all abnormal devices at one time after completing the determination of the usage rates of target resources in all target monitoring devices.

[0073] Optionally, the above step S105 may include:

[0074] For any target monitoring device, a first timestamp is obtained. If the first timestamp is within the resource monitoring period, a first usage rate of the target resource in the target monitoring device is collected to determine whether the first usage rate is greater than a preset usage rate threshold. If the first usage rate is greater than the usage rate threshold, the target monitoring device is determined to be abnormal, and an alarm is issued for the usage rate of the target resource in the target monitoring device; if the first usage rate is not greater than the usage rate threshold, the target monitoring device is determined to be normal, and a second timestamp is obtained. If the second timestamp is within the resource monitoring period, the second usage rate of the target resource in the target monitoring device is collected until the target monitoring device is determined to be abnormal, or the latest timestamp is determined to exceed the resource monitoring period.

[0075] The first timestamp and the second timestamp may both be corresponding latest moments.

[0076] Specifically, the first usage rate and the second usage rate may both be the collected usage rates of the target resources in the target monitoring device.

[0077] It can be understood that this embodiment can issue an alarm on the usage rate of the target resources in the target monitoring device and stop collecting the usage rate of the target resources in the target monitoring device when the target monitoring device is determined to be an abnormal device during the resource monitoring period, thereby reducing the consumption of monitoring resources and improving the utilization rate of monitoring resources.

[0078] Optionally, the above step S105 may include:

[0079] During the resource monitoring period, the usage rate of the target resources in each target monitoring device is continuously collected;

[0080] For any target monitoring device, if the usage rate of the target resource in the target monitoring device collected N times in succession is greater than the preset usage threshold, the target monitoring device is determined to be abnormal, and an alarm is issued for the usage rate of the target resource in the target monitoring device.

[0081] Specifically, for any target monitoring device, this embodiment determines that the target monitoring device is abnormal only when the usage rate of its target resources collected N consecutive times is greater than the usage rate threshold, and issues an alarm for the usage rate of the target resources in the target monitoring device.

[0082] The resource aggregation alarm method proposed in this embodiment can set different resource alarm triggering conditions, enrich the resource alarm mode, and effectively realize the monitoring and alarm of resource usage rate.

[0083] based on Figure 1 This embodiment proposes a third resource aggregation alarm method. After step S105, the method may further include:

[0084] For any target monitoring device, the device identification of the target monitoring device and the resource identification of the target resource in the target monitoring device are obtained, and the obtained device identification of the target monitoring device and the resource identification of the target resource are used as a key as a whole.

[0085] After each collection of the usage rate of the target resource in the target monitoring device, the collection time is recorded, the collection time and the collected usage rate of the target resource are used as the value corresponding to the key, and the key and value are stored accordingly to obtain the corresponding key-value pair type data.

[0086] Optionally, after obtaining the corresponding key-value pair type data as described above, the method may further include:

[0087] receiving a resource usage query instruction, wherein the resource usage query instruction includes a device identifier of a target monitoring device and a resource identifier of a target resource;

[0088] According to the device identifier of the target monitoring device and the resource identifier of the target resource in the resource usage rate query instruction, the corresponding key-value pair type data is searched and the key-value pair type data is output.

[0089] The resource aggregation alarm method proposed in this embodiment can obtain corresponding key-value pair type data by correspondingly storing the device identifier of the target monitoring device, the resource identifier of the target resource, the collected target resource usage rate and the collection time, and can perform queries and data output according to the user's query instructions. It can intuitively display query data for users, meet users' query needs, and enhance user stickiness.

[0090] In other resource aggregation alarm methods proposed in this embodiment, resource aggregation alarm can be performed based on Aodh used for managing alarms in the openstack framework.

[0091] Specifically, this embodiment can delete and modify the aggregate query conditions for querying monitoring data in the gnocchi_aggregation_by_resources_threshold alarm type of aodh to support querying by resource granularity, and decouple the coupling problem of aodh creating alarms and resource IDs in related technologies. This embodiment can also add a monitoring data cleaning process to clean, filter and integrate the monitoring data queried by resource granularity into key-value pair type data. Add alarm judgment and alarm cause generation logic for monitoring data of each resource granularity. Add threshold judgment and alarm history reporting functions for queried monitoring data to support reporting of corresponding alarms after a single resource reaches the threshold.

[0092] Specifically, this embodiment can also update the alarm status management, and update the alarm as long as there is a resource triggering the alarm condition. In each alarm evaluation cycle, only the resources that meet the alarm triggering condition are filtered out, and an alarm is reported for each resource.

[0093] like Figure 3 As shown, this embodiment provides a resource aggregation alarm device, including:

[0094] The acquisition unit 301 is used to acquire the created alarm command, where the alarm command includes a device type identifier of the device to be monitored and a resource type identifier of the resource to be monitored;

[0095] The parsing unit 302 is used to parse the alarm command to obtain the device type identifier and the resource type identifier in the alarm command;

[0096] A first determining unit 303, configured to determine a plurality of corresponding target monitoring devices according to the device type identifier;

[0097] A second determining unit 304 is used to determine a target resource in each target monitoring device according to the resource type identifier; wherein the target resource corresponds to the resource type identifier;

[0098] The alarm unit 305 is used to monitor and alarm the usage rate of the target resource in each target monitoring device within a set resource monitoring period.

[0099] It should be noted that the processing of the acquisition unit 301, the parsing unit 302, the first determination unit 303, the second determination unit 304 and the alarm unit 305 and the beneficial effects thereof can be respectively referred to in Figure 1 Steps S101 to S105 in the above are not described in detail.

[0100] Optionally, the alarm unit 305 is further configured to:

[0101] During the resource monitoring period, the usage rate of the target resource in each target monitoring device is collected;

[0102] For any target monitoring device, if the collected usage rate of the target resource in the target monitoring device is greater than a preset usage rate threshold, the target monitoring device is determined to be abnormal, and an alarm is issued for the usage rate of the target resource in the target monitoring device.

[0103] Optionally, the alarm unit 305 is further configured to:

[0104] For any target monitoring device, a first timestamp is obtained. If the first timestamp is within the resource monitoring period, a first usage rate of the target resource in the target monitoring device is collected to determine whether the first usage rate is greater than a preset usage rate threshold. If the first usage rate is greater than the usage rate threshold, the target monitoring device is determined to be abnormal, and an alarm is issued for the usage rate of the target resource in the target monitoring device; if the first usage rate is not greater than the usage rate threshold, the target monitoring device is determined to be normal, and a second timestamp is obtained. If the second timestamp is within the resource monitoring period, the second usage rate of the target resource in the target monitoring device is collected until the target monitoring device is determined to be abnormal, or the latest timestamp is determined to exceed the resource monitoring period.

[0105] Optionally, the alarm unit 305 is further configured to:

[0106] During the resource monitoring period, the usage rate of the target resources in each target monitoring device is continuously collected;

[0107] For any target monitoring device, if the usage rate of the target resource in the target monitoring device collected N times in succession is greater than the preset usage threshold, the target monitoring device is determined to be abnormal, and an alarm is issued for the usage rate of the target resource in the target monitoring device.

[0108] Optionally, the above device further includes:

[0109] As a unit, it is used to obtain the device identification of the target monitoring device and the resource identification of the target resource in the target monitoring device for any target monitoring device before monitoring and alarming the usage rate of the target resource in each target monitoring device within the set resource monitoring period, and use the obtained device identification of the target monitoring device and the resource identification of the target resource as a key;

[0110] The storage unit is used to record the collection time after each collection of the utilization rate of the target resource in the target monitoring device, use the collection time and the collected utilization rate of the target resource as the value corresponding to the key, and store the key and value accordingly to obtain corresponding key-value pair type data.

[0111] Optionally, the above device further includes:

[0112] The search unit is used to receive a resource utilization query instruction after obtaining the corresponding key-value pair type data, and the resource utilization query instruction includes the device identification of the target monitoring device and the resource identification of the target resource; it is also used to search for the corresponding key-value pair type data according to the device identification of the target monitoring device and the resource identification of the target resource in the resource utilization query instruction, and output the key-value pair type data.

[0113] Optionally, when the device type identifier of the target monitoring device is the device type identifier of a virtual machine, the resource type identifier of the target resource includes the resource type identifier of a memory usage rate and a central processing unit CPU.

[0114] The resource aggregation alarm device proposed in this embodiment can obtain the created alarm command, which includes the device type identifier of the device to be monitored and the resource type identifier of the resource to be monitored. Parse the alarm command to obtain the device type identifier and resource type identifier in the alarm command. Determine the corresponding multiple target monitoring devices according to the device type identifier. Determine the target resources in each target monitoring device according to the resource type identifier; wherein the target resources correspond to the resource type identifier. During the set resource monitoring period, monitor and alarm the utilization rate of the target resources in each target monitoring device. This embodiment can uniformly monitor and alarm a specific type of target resource in multiple target monitoring devices of a specific type through the single alarm command created, thereby realizing unified management of specific types of resources in multiple target monitoring devices.

[0115] The resource aggregation alarm device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0116] The embodiment of the present invention also provides a computer device having the above Figure 3 The resource aggregation alarm device shown.

[0117] See also Figure 4 , a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common motherboard or in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface).

[0118] In some optional embodiments, if desired, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.

[0119] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0120] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0121] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function. The data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices.

[0122] In some optional embodiments, the memory 20 may include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0123] The memory 20 may include a volatile memory, such as a random access memory. The memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive. The memory 20 may also include a combination of the above types of memory.

[0124] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0125] An embodiment of the present invention also provides a computer-readable storage medium, and the above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented by downloading through a network and originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware.

[0126] The storage medium may be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid state drive, etc.; further, the storage medium may also include a combination of the above-mentioned types of memories. It is understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by the computer, processor or hardware, the method shown in the above embodiment is implemented.

[0127] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A resource aggregation alarm method, characterized in that: include: Acquire the created alarm command, wherein the alarm command includes a device type identifier of the device to be monitored and a resource type identifier of the resource to be monitored; Parsing the alarm command to obtain the device type identifier and the resource type identifier in the alarm command; Determining a corresponding plurality of target monitoring devices according to the device type identifier; Determine the target resource in each of the target monitoring devices according to the resource type identifier; wherein the target resource corresponds to the resource type identifier; During the set resource monitoring period, the usage rate of the target resource in each target monitoring device is monitored and an alarm is issued.

2. The method according to claim 1, characterized in that The monitoring and alarming of the usage rate of the target resource in each target monitoring device within the set resource monitoring period includes: During the resource monitoring period, collecting the usage rate of the target resource in each of the target monitoring devices; For any of the target monitoring devices, if the collected usage rate of the target resource in the target monitoring device is greater than a preset usage rate threshold, the target monitoring device is determined to be abnormal, and an alarm is issued for the usage rate of the target resource in the target monitoring device.

3. The method according to claim 1, characterized in that The monitoring and alarming of the usage rate of the target resource in each target monitoring device within the set resource monitoring period includes: For any of the target monitoring devices, a first timestamp is obtained. If the first timestamp is within the resource monitoring period, a first usage rate of the target resource in the target monitoring device is collected to determine whether the first usage rate is greater than a preset usage rate threshold. If the first usage rate is greater than the usage rate threshold, the target monitoring device is determined to be abnormal, and an alarm is issued for the usage rate of the target resource in the target monitoring device. If the first usage rate is not greater than the usage rate threshold, the target monitoring device is determined to be normal, and a second timestamp is obtained. If the second timestamp is within the resource monitoring period, the second usage rate of the target resource in the target monitoring device is collected until the target monitoring device is determined to be abnormal, or the latest timestamp is determined to exceed the resource monitoring period.

4. The method according to claim 1, characterized in that: The monitoring and alarming of the usage rate of the target resource in each target monitoring device within the set resource monitoring period includes: During the resource monitoring period, continuously collecting the usage rate of the target resource in each of the target monitoring devices; For any of the target monitoring devices, if the usage rate of the target resource in the target monitoring device collected N times in succession is greater than a preset usage threshold, the target monitoring device is determined to be abnormal, and an alarm is issued for the usage rate of the target resource in the target monitoring device.

5. The method according to any one of claims 2 to 4, characterized in that Before monitoring and alarming the usage rate of the target resource in each target monitoring device within the set resource monitoring period, the method further includes: For any of the target monitoring devices, obtain the device identification of the target monitoring device and the resource identification of the target resource in the target monitoring device, and use the obtained device identification of the target monitoring device and the resource identification of the target resource as a key; After each collection of the usage rate of the target resource in the target monitoring device, the collection time is recorded, the collection time and the collected usage rate of the target resource are used as the value corresponding to the key, and the key and the value are stored accordingly to obtain corresponding key-value pair type data.

6. The method according to claim 5, characterized in that After obtaining the corresponding key-value pair type data, the method further includes: receiving a resource usage query instruction, wherein the resource usage query instruction includes a device identifier of the target monitoring device and a resource identifier of the target resource; According to the device identifier of the target monitoring device and the resource identifier of the target resource in the resource usage rate query instruction, the corresponding key-value pair type data is searched and the key-value pair type data is output.

7. The method according to claim 1, characterized in that When the device type identifier of the target monitoring device is the device type identifier of a virtual machine, the resource type identifier of the target resource includes the resource type identifier of a memory usage rate and a central processing unit CPU.

8. A resource aggregation alarm device, characterized in that: include: An acquisition unit, used for acquiring a created alarm command, wherein the alarm command includes a device type identifier of a device to be monitored and a resource type identifier of a resource to be monitored; A parsing unit, used for parsing the alarm command to obtain the device type identifier and the resource type identifier in the alarm command; A first determining unit, configured to determine a corresponding plurality of target monitoring devices according to the device type identifier; A second determining unit, configured to determine a target resource in each of the target monitoring devices according to the resource type identifier; wherein the target resource corresponds to the resource type identifier; The alarm unit is used to monitor and alarm the usage rate of the target resource in each target monitoring device within a set resource monitoring period.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the resource aggregation alarm method according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the resource aggregation alarm method according to any one of claims 1 to 7.