WO2020015092A1 - 实例监控方法、装置、终端设备及介质 - Google Patents
实例监控方法、装置、终端设备及介质 Download PDFInfo
- Publication number
- WO2020015092A1 WO2020015092A1 PCT/CN2018/105056 CN2018105056W WO2020015092A1 WO 2020015092 A1 WO2020015092 A1 WO 2020015092A1 CN 2018105056 W CN2018105056 W CN 2018105056W WO 2020015092 A1 WO2020015092 A1 WO 2020015092A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- monitoring
- alarm
- newly created
- instance
- created instance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
- G06F11/3072—Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
Definitions
- the present application belongs to the field of monitoring technology, and in particular, relates to an example monitoring method, device, terminal device, and medium.
- the monitoring system does not know what type of instance it is, nor can it know that the default alarm policy for this type of instance can How to configure it will bring a lot of restrictions to the automatic alarm configuration of the monitored instance, which will increase the user's operation and maintenance costs.
- the embodiments of the present application provide an instance monitoring method, device, terminal device, and medium to solve the problem that the monitored instance does not have a type attribute, cannot implement automatic alarm configuration, and increases the operation and maintenance cost of the user.
- a first aspect of the embodiments of the present application provides an instance monitoring method, including:
- the preset alarm policy including an alarm condition
- alarm data includes the monitoring type and monitoring data of the newly created instance.
- a second aspect of the embodiments of the present application provides an example monitoring apparatus, including:
- An instance obtaining module configured to obtain a newly created instance, where the newly created instance is configured with a corresponding monitoring type
- An association module configured to associate the newly created instance with a preset alarm policy of the monitoring type stored in a monitoring system according to the monitoring type corresponding to the newly created instance, the preset alarm policy Including alarm conditions;
- a judging module configured to determine, after the association, whether the newly created instance meets the alarm conditions in the alarm policy according to the alarm policy of the newly created instance during running;
- An alarm module is configured to trigger an automatic alarm function and obtain alarm data when the alarm conditions in the alarm policy are met, where the alarm data includes the monitoring type and monitoring data of the newly created instance.
- a terminal device including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, and the processor executes the processor.
- the computer-readable instructions implement the following steps:
- the preset alarm policy including an alarm condition
- alarm data includes the monitoring type and monitoring data of the newly created instance.
- a computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions implement the following steps when executed by at least one processor:
- the preset alarm policy including an alarm condition
- alarm data includes the monitoring type and monitoring data of the newly created instance.
- the embodiment of the present application first obtains a newly created instance, the newly created instance is configured with a corresponding monitoring type, and then according to the monitoring type corresponding to the newly created instance, the newly created instance and the monitoring system are Associate the stored preset alarm policy of the monitoring type, the preset alarm policy includes alarm conditions, and implement automatic alarm configuration. After the association, the newly created instance is determined according to the alarm policy of the newly created instance. Whether the alarm conditions in the alarm policy are met during operation, and if the alarm conditions in the alarm policy are met, an automatic alarm function is triggered and alarm data is obtained, and the alarm data includes the newly created The monitoring type and monitoring data of the instance to realize the automatic monitoring of the newly created instance.
- FIG. 1 is a schematic flowchart of an example monitoring method provided by this application
- FIG. 2 is a schematic flowchart of another embodiment of an example monitoring method provided by the present application.
- FIG. 3 is a schematic flowchart of still another embodiment of an example monitoring method provided by the present application.
- FIG. 4 is a schematic flowchart of still another embodiment of an example monitoring method provided by the present application.
- FIG. 5 is a structural block diagram of an example monitoring device according to an embodiment of the present application.
- FIG. 6 is a schematic block diagram of a terminal device according to an embodiment of the present application.
- FIG. 1 is a schematic flowchart of an example monitoring method according to an embodiment of the present application.
- the example monitoring method may include steps S101 to S104:
- the monitoring type may include at least one of the following: a host class, a physical machine class, a load balancer class, a database class, and the like.
- Each instance is configured with a corresponding monitoring type when it is created. Instance, you can get the monitoring type corresponding to the newly created instance.
- each newly created instance can be registered in the monitoring system.
- Each newly created instance needs to register instance information when registering.
- the instance information may include an ID (identity identification number), an instance name, Instance type, tenant ID using the newly created instance, area information of the newly created instance, and readable name, here the instance type is the monitoring type, and the newly created instance is obtained by obtaining the instance information of the newly created instance The monitoring type of the instance.
- the method may include: obtaining a monitoring type of an existing instance monitored by the monitoring system, and performing a predefined alarm configuration on the monitoring type; wherein the predefined alarm configuration includes At least one of the following: preset reportable monitoring items, reportable instance names, and preset alarm policies; the preset reportable monitoring items include at least one of the following: CPU, memory, and disk space.
- the existing instance and the newly created instance may include at least one of the following: cloud host, physical machine, load balancer, database, and the predefined alarm configuration corresponding to the monitoring type may include: cloud host alarm configuration , Physical machine alarm configuration, load balancer alarm configuration, database alarm configuration, etc.
- different monitoring types can correspond to different preset reportable monitoring items.
- the corresponding preset reportable monitoring items in cloud host monitoring can include: CPU, memory, disk space, disk inode (index node, used to store basic information of files and directories, including time, file name, user And groups, etc.); each monitoring type can monitor multiple instances, and the different instances monitored correspond to unused instance names, but the instance names of the created instances are globally unique, and they are also unique in the system.
- All the monitoring types in the monitoring system are pre-defined alarm configuration, and the monitoring type of the newly created instance is matched with the corresponding monitoring type configured by the predefined alarm, so that the newly created instance is monitored with the type in the monitoring system. , Automatically configure alarm policies.
- S102 according to the monitoring type corresponding to the newly created instance, associate the newly created instance with a preset alarm policy of the monitoring type stored in a monitoring system, the preset alarm Policies include alert conditions.
- the operation portal when a new instance is created on the web portal, the operation portal is different. According to the portal, it is possible to obtain what type of monitoring the newly created instance belongs to, so that the newly created instance is deleted.
- the monitoring system carries the monitoring type when monitoring.
- the initialization interface of the monitoring system is called. If the monitoring type of the newly created instance is host monitoring, the host monitoring interface is called to initialize the host alarm policy. If the monitoring type of the newly created instance is For one of physical machine monitoring, load balancer monitoring, and database monitoring, the application monitoring interface is called to initialize the instance alarm policy of the application class.
- the initialization interface a file of the predefined alarm configuration in the monitoring system Copy to the newly created instance, and associate the newly created instance with a preset alarm policy of the monitoring type stored in a monitoring system.
- FIG. 2 is a schematic flowchart of another embodiment of an instance monitoring method.
- FIG. 2 shows that the newly created instance is stored in the monitoring system in S102.
- the association of the preset alarm policies of the monitoring type may include steps S201 to S203:
- S202 Acquire a file of the predefined alarm configuration corresponding to the monitoring type according to a preset mapping table
- S203 Obtain the preset alarm policy from the file of the predefined alarm configuration, and copy the preset alarm policy to the newly created instance.
- the newly created instance carries the monitoring type
- the monitoring type carries an identifier.
- a lookup from a monitoring system is consistent with the monitoring type carried by the newly created instance.
- Monitoring type In the monitoring system, each of the monitoring type and the corresponding predefined alarm configuration file stores the preset mapping table, and according to the monitoring type, the corresponding preset mapping table can be obtained.
- the monitoring type corresponding to the host is host monitoring.
- the host monitoring identifier is used to find the host monitoring consistent with the monitoring type corresponding to the host from the monitoring system identifier.
- a mapping table is set to obtain a file of the predefined alarm configuration corresponding to host monitoring, wherein the preset mapping table may be a character mapping table, a key in the character mapping table is a monitoring type identifier, and a value is the preset Defines the address of the alarm configuration file. Acquiring the preset alarm policy monitored by the host from the file of the predefined alarm configuration, and copying the preset alarm policy to the newly created instance to implement the newly created instance and monitoring Association of preset alarm policies of the monitoring type stored in the system.
- the preset alarm strategy may include at least one of the following: indicators of monitoring items, additional attributes of the indicators, maximum number of warnings, alarm priority, statistical functions, comparison operators, alarm thresholds, alarm remarks, and effective alarm policies
- the alarm policy of the newly created instance may be a preset alarm policy corresponding to the monitoring type of the newly created instance or a modified preset alarm policy.
- the alarm policy of the instance can be modified by the tenant of the newly created instance, specifically: sending a modification signal of the predefined alarm configuration in the newly created instance to the tenant of the newly created instance, and receiving all The modified predefined alarm configuration sent by the tenant is described, and the alarm policy of the newly created instance is obtained from the modified predefined alarm configuration.
- each instance can be shared by multiple tenants, but each tenant is predefined with a namespace.
- the configuration data for the newly created instance may include: APP ID, tenant ID, instance name, monitoring type, area information of the instance (the address where the instance was created), and a readable name (the instance name that can be changed) )
- the monitoring data may include monitoring data of preset reportable monitoring items or data of the preset alarm strategy, or the monitoring data may include modified preset reportable Monitoring data of the monitoring item or data of the preset alarm strategy after modification. Therefore, each instance corresponds to a tenant, and the tenant can only modify the configuration data corresponding to the tenant.
- the alarm policy of the newly created instance determine whether the newly created instance meets the alarm conditions in the alarm strategy during the running process.
- the newly created instance is monitored as a host, it is determined whether the host meets the alarm conditions during the running process.
- step S104 if the alarm conditions in the alarm policy are met, an automatic alarm function is triggered, and alarm data is obtained, where the alarm data includes a monitoring type and monitoring data of the newly created instance.
- an alarm signal is automatically sent to the monitoring system and alarm data is obtained, where different types of monitoring correspond to different preset reportable monitoring item.
- the newly created instance is further configured with a corresponding instance name; after obtaining the alarm data, the monitoring data corresponding to the newly created instance is filtered from the alarm data, and according to the The corresponding instance name reports the filtered monitoring data to a tenant corresponding to the newly created instance; wherein the monitoring data includes monitoring data of the preset reportable monitoring items and the preset alarm policy
- the monitoring data of the preset reportable monitoring items includes at least one of the following: CPU usage, memory usage, and disk space usage.
- the data of the preset alarm policy includes the maximum number of warnings and the severity level. .
- the corresponding monitoring type is a host type
- the corresponding preset reportable monitoring item may include a CPU usage rate
- the alarm data is filtered out from the alarm data.
- the monitoring data corresponding to the host, the monitoring data corresponding to the host may include monitoring data (CPU usage rate) of a preset reportable monitoring item corresponding to the host and data of a preset alarm policy (maximum warning times) And severity levels).
- the data is processed, and the tenant may be a user.
- FIG. 3 is a schematic flowchart of still another embodiment of an instance monitoring method.
- the instance monitoring method may further include steps S301 to S302:
- S301 classify and configure the monitoring type of the existing instance, and configure an attribute identifier, where the attribute identifier includes a host type monitoring identifier and an application type monitoring identifier, and the monitoring attributes corresponding to the attribute identifier include host type monitoring and application type monitoring;
- the monitoring type of the existing instance is classified and an attribute identifier is configured.
- the monitoring attributes corresponding to the attribute identifier can be mainly divided into host-type monitoring and application-type monitoring.
- the host-type monitoring may include: Host type
- the application type monitoring may include at least one of the following types of monitoring: physical machine type, load balancer type, and database type.
- the attribute identifier corresponding to the monitoring type the predefined alarm configuration is respectively performed on the host type monitoring and the application type monitoring. If the newly created instance is associated with a preset alarm policy in the predefined alarm configuration, it may directly Find a monitoring attribute corresponding to the newly created instance, copy a preset alarm policy corresponding to the monitoring attribute to the newly created instance, and complete the association.
- FIG. 4 is a schematic flowchart of still another embodiment of an example monitoring method.
- FIG. 4 shows the pre-defined alarm configuration for the monitoring attribute according to the attribute identification in S302, which may include: Steps S401 to S403:
- the newly created instance carrying the attribute identifier is acquired, and based on the attribute identifier, it is determined whether the monitoring system has the attribute identifier that is consistent with the newly created instance, for example, When the newly created instance is a host, the corresponding monitoring type is host class, and the corresponding monitoring attribute is host class monitoring. According to the attribute identifier carried by the host, it is compared with all attribute identifiers in the monitoring system.
- the embodiment of the present application first obtains a newly created instance, the newly created instance is configured with a corresponding monitoring type, and then according to the monitoring type corresponding to the newly created instance, the newly created instance is The instance is associated with a preset type of alarm policy of the monitoring type stored in the monitoring system.
- the preset alarm policy includes alarm conditions to implement automatic alarm configuration. After the association, it determines the location of the alarm according to the alarm policy of the newly created instance. Describes whether the newly created instance meets the alarm conditions in the alarm policy during operation. If the alarm conditions in the alarm policy are met, an automatic alarm function is triggered, and alarm data is obtained.
- the alarm data The monitoring type and monitoring data of the newly created instance are included to realize automatic monitoring of the newly created instance.
- FIG. 5 shows a structural block diagram of an example monitoring apparatus provided by an embodiment of the present application. For convenience of explanation, only the parts related to this embodiment are shown.
- the device includes:
- An instance obtaining module 501 is configured to obtain a newly created instance, where the newly created instance is configured with a corresponding monitoring type;
- An association module 502 configured to associate the newly created instance with a preset alarm policy of the monitoring type stored in a monitoring system according to the monitoring type corresponding to the newly created instance, the preset alarm
- the strategy includes alarm conditions
- a judging module 503, configured to determine, after association, whether the newly created instance meets the alarm conditions in the alarm policy according to an alarm policy of the newly created instance;
- the alarm module 504 is configured to trigger an automatic alarm function and obtain alarm data when the alarm conditions in the alarm policy are met, where the alarm data includes a monitoring type and monitoring data of the newly created instance.
- the instance monitoring device may further include: a first alarm configuration module, configured to: before the acquiring a newly created instance, acquire a monitoring type of an existing instance monitored by the monitoring system, and perform monitoring on the monitoring Pre-defined alarm configuration of the type; wherein the pre-defined alarm configuration includes at least one of the following: a preset reportable monitoring item, a reportable instance name, a preset alarm policy, and the preset reportable monitoring Items include at least one of the following: CPU, memory, disk space.
- a first alarm configuration module configured to: before the acquiring a newly created instance, acquire a monitoring type of an existing instance monitored by the monitoring system, and perform monitoring on the monitoring Pre-defined alarm configuration of the type; wherein the pre-defined alarm configuration includes at least one of the following: a preset reportable monitoring item, a reportable instance name, a preset alarm policy, and the preset reportable monitoring Items include at least one of the following: CPU, memory, disk space.
- the association module 502 includes:
- a searching unit configured to search for the monitoring type corresponding to the monitoring system according to the monitoring type corresponding to the newly created instance
- An obtaining unit configured to obtain a file of the predefined alarm configuration corresponding to the monitoring type according to a preset mapping table
- the association unit obtains the preset alarm policy from the file of the predefined alarm configuration, and copies the preset alarm policy to the newly created instance.
- the newly created instance is further configured with a corresponding instance name
- the device further includes a monitoring data filtering module for filtering the alarm data from the new alarm data after obtaining the alarm data.
- the monitoring data corresponding to the created instance and reporting the filtered monitoring data to a tenant corresponding to the newly created instance according to the corresponding instance name;
- the monitoring data includes monitoring data of the preset reportable monitoring items and data of the preset alarm policy, and monitoring data of the preset reportable monitoring items includes at least one of the following: CPU usage Rate, memory usage rate, disk space usage rate, and the data of the preset alarm strategy includes the maximum number of warnings and the severity level.
- the instance monitoring apparatus further includes: an attribute configuration module, configured to classify the monitoring type of the existing instance and configure an attribute identifier, where the attribute identifier includes a host-type monitoring identifier and an application-type monitoring identifier, and The monitoring attributes corresponding to the attribute identifiers include host-type monitoring and application-type monitoring;
- a second alarm configuration module is configured to perform the predefined alarm configuration on the monitoring attribute according to the attribute identifier.
- the second alarm configuration module includes:
- An attribute identifier search unit configured to obtain the newly created instance, and find whether the attribute identifier that is consistent with the newly created instance exists in the monitoring system according to the attribute identifier carried by the newly created instance ;
- An alarm configuration unit configured to obtain a file of the predefined alarm configuration corresponding to the attribute identifier consistent with the newly created instance when the attribute identifier consistent with the newly created instance exists, and A preset alarm policy in a file of a predefined alarm configuration is copied to the newly created instance;
- a creating unit configured to create a new monitoring type and monitoring attribute in the monitoring system when there is no attribute identifier consistent with the newly created instance, and configure the new monitoring type and the newly created
- the instance carries a consistent attribute identifier, and configures a new predefined alarm configuration file for the new monitoring attribute according to the newly created instance.
- FIG. 6 is a schematic block diagram of a terminal device according to an embodiment of the present application.
- the terminal device 6 of this embodiment includes a processor 60 and a memory 61.
- the memory 61 stores computer-readable instructions 62 that can be run on the processor 60, such as an example monitoring method program. .
- the processor 60 executes the computer-readable instructions 62, the steps in the foregoing embodiments of the method for monitoring each instance are implemented, for example, steps 101 to 104 shown in FIG. 1.
- the processor 60 executes the computer-readable instructions 62
- the functions of each module / unit in the foregoing device embodiments are implemented, for example, the functions of the units 501 to 504 shown in FIG. 5.
- the computer-readable instructions 62 may be divided into one or more modules / units, the one or more modules / units are stored in the memory 61 and executed by the processor 60, To complete this application.
- the one or more modules / units may be a series of computer-readable instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer-readable instructions 62 in the terminal device 6.
- the terminal device 6 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
- the terminal device may include, but is not limited to, a processor 60 and a memory 61.
- FIG. 6 is only an example of the terminal device 6 and does not constitute a limitation on the terminal device 6. It may include more or fewer components than shown in the figure, or combine some components or different components.
- the terminal device may further include an input / output device, a network access device, a bus, and the like.
- the memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6.
- the memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a smart media card (SMC), and a secure digital (SD) provided on the terminal device 6. Card, flash card, etc. Further, the memory 61 may further include both an internal storage unit of the terminal device 6 and an external storage device.
- the memory 61 is configured to store the computer-readable instructions and other programs and data required by the terminal device.
- the memory 61 may also be used to temporarily store data that has been output or is to be output.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
- the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
- the integrated unit When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
- the technical solution of the present application is essentially a part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium. , Including a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
- the foregoing storage media include: U disks, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks and other media that can store program codes .
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
本申请适用于监控技术领域,提供了一种实例监控方法、装置、终端设备及介质。该实例监控方法包括:获取新创建的实例,所述新创建的实例配置有对应的监控类型;根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,所述预设告警策略包括告警条件;关联后,根据所述新创建的实例的告警策略,判断所述新创建的实例在运行过程中是否满足所述告警策略中的所述告警条件;若满足所述告警策略中的所述告警条件,则触发自动告警功能,并获取告警数据,所述告警数据包括所述新创建的实例的监控类型及监控数据。
Description
本申请申明享有2018年7月18日递交的申请号为201810788598.3、名称为“实例监控方法、计算机可读存储介质和终端设备”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。
本申请属于监控技术领域,尤其涉及一种实例监控方法、装置、终端设备及介质。
现有的监控系统中,由于监控的实例不带类型属性,因此,监控系统在监控一个实例时,并不知道这是什么类型的实例,也无法知道这种类型的实例的默认的告警策略可以怎么配置,将给监控的实例进行自动化告警配置带来非常多的限制,提高了用户的运维成本。
有鉴于此,本申请实施例提供了一种实例监控方法、装置、终端设备及介质,以解决监控的实例不带类型属性,无法实现自动化告警配置,提高了用户的运维成本的问题。
本申请实施例的第一方面提供了一种实例监控方法,包括:
获取新创建的实例,所述新创建的实例配置有对应的监控类型;
根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,所述预设告警策略包括告警条件;
关联后,根据所述新创建的实例的告警策略,判断所述新创建的实例在运行过程中是否满足所述告警策略中的所述告警条件;
若满足所述告警策略中的所述告警条件,则触发自动告警功能,并获取告警数据,所述告警数据包括所述新创建的实例的监控类型及监控数据。
本申请实施例的第二方面提供了一种实例监控装置,包括:
实例获取模块,用于获取新创建的实例,所述新创建的实例配置有对应的监控类型;
关联模块,用于根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,所述预设告警策略包括告警条件;
判断模块,用于关联后,根据所述新创建的实例的告警策略,判断所述新创建的实例在运行过程中是否满足所述告警策略中的所述告警条件;
告警模块,用于在满足所述告警策略中的所述告警条件时,触发自动告警功能,并获取告警数据,所述告警数据包括所述新创建的实例的监控类型及监控数据。
本申请实施例的第三方面,提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:
获取新创建的实例,所述新创建的实例配置有对应的监控类型;
根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,所述预设告警策略包括告警条件;
关联后,根据所述新创建的实例的告警策略,判断所述新创建的实例在运行过程中是否满足所述告警策略中的所述告警条件;
若满足所述告警策略中的所述告警条件,则触发自动告警功能,并获取告警数据,所述告警数据包括所述新创建的实例的监控类型及监控数据。
本申请实施例的第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被至少一个处理器执行时实现如下步骤:
获取新创建的实例,所述新创建的实例配置有对应的监控类型;
根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,所述预设告警策略包括告警条件;
关联后,根据所述新创建的实例的告警策略,判断所述新创建的实例在运行过程中是否满足所述告警策略中的所述告警条件;
若满足所述告警策略中的所述告警条件,则触发自动告警功能,并获取告警数据,所述告警数据包括所述新创建的实例的监控类型及监控数据。
本申请实施例首先获取新创建的实例,所述新创建的实例配置有对应的监控类型,然后根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,所述预设告警策略包括告警条件,实现自动化告警配置,关联后,根据所述新创建的实例的告警策略,判断所述新创建的实例在运行过程中是否满足所述告警策略中的所述告警条件,若满足所述告警策略中的所述告警条件,则触发自动告警功能,并获取告警数据,所述告警数据包括所述新创建的实例的监控类型及监控数据,实现对新创建的实例的自动化监控。与现有技术相比,本申请实施中通过获取新创建的实例的监控类型,再根据监控类型,将所述新创建的实例与对应的预设告警策略进行关联,实现自动化告警配置,能够让每一个实例创建之后都处于监控中的状态,极大地降低了用户的运维成本。
图 1是本申请提供的一种实例监控方法的实施例示意流程图;
图2是本申请提供的一种实例监控方法的另一实施例示意流程图;
图3是本申请提供的一种实例监控方法的再一实施例示意流程图;
图4是本申请提供的一种实例监控方法的又一实施例示意流程图;
图5是本申请实施例提供的一种实例监控装置的结构框图;
图6是本申请实施例提供的一种终端设备的示意性框图。
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。
参见图1,图1是本申请实施例提供的一种实例监控方法的实施例示意流程图,在该实施例中,实例监控方法可以包括步骤S101至S104:
S101,获取新创建的实例,所述新创建的实例配置有对应的监控类型。
所述监控类型可以包括下述至少一项:主机类、物理机类、负载匀衡器类、数据库类等,每个实例在被创建时,都配置有对应的所述监控类型,通过获取新创建的实例,可以获取新创建的实例对应的监控类型。
在本实施例中,可以将每个新创建的实例注册到监控系统中,每个新创建的实例在注册时需要注册实例信息,所述实例信息可以包括ID(身份标识号)、实例名称、实例类型、使用新创建的实例的租户ID、新创建的实例的区域信息、添加可读性的名称,这里实例类型即为所述监控类型,通过获取新创建的实例的实例信息,获取新创建的实例的监控类型。
优选地,在S101中获取新创建的实例之前,可以包括:获取所述监控系统监控的已有实例的监控类型,对所述监控类型进行预定义告警配置;其中,所述预定义告警配置包括下述至少一项:预设可上报的监控项、可上报的实例名、预设的告警策略;所述预设可上报的监控项包括下述至少一项:CPU、内存、磁盘空间。
本实施例中,所述已有实例和新创建的实例可以包括下述至少一项:云主机、物理机、负载匀衡器、数据库,监控类型对应的预定义告警配置可以包括:云主机告警配置、物理机告警配置、负载匀衡器告警配置、数据库告警配置等,不同的监控类型可以对应着不同的预设可上报的监控项。例如,云主机的监控中对应的预设可上报的监控项可以包括:CPU、内存、磁盘空间,磁盘inode(索引节点,用于存放档案及目录的基本信息,包含时间、档名、使用者及群组等)等;每个监控类型中可以对应监控多个实例,监控的不同的实例对应着不用的实例名,但是创建的实例的实例名是全局唯一的,也是系统中唯一的通过对监控系统中所有所述监控类型进行预定义告警配置,将新创建的实例的监控类型与预定义告警配置好的对应的监控类型进行匹配,以使新创建的实例在监控系统中带类型被监控,自动化配置告警策略。
参见图1,S102,根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,所述预设告警策略包括告警条件。
本实施例中,在网络门户上创建新的实例时,操作的入口是不一样的,根据所述入口,可以获取所述新创建的实例属于什么监控类型,以使所述新创建的实例被监控系统监控时携带监控类型。创建新的实例后,调用监控系统的初始化接口,若所述新创建的实例的监控类型为主机监控,则调用主机监控接口,用于初始化主机告警策略,若所述新创建的实例的监控类型为物理机监控、负载匀衡器监控、数据库监控中的一个,则调用应用监控接口,用于初始化应用类的实例告警策略,通过调用所述初始化接口,将监控系统中的预定义告警配置的文件复制到所述新创建的实例中,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联。
参见图2,图2是一种实例监控方法的另一实施例示意流程图,在该实施例中,图2示出了S102中的将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,可以包括步骤S201至S203:
S201,根据所述新创建的实例对应的所述监控类型,查找与所述监控系统中对应的所述监控类型;
S202,根据预设映射表,获取与所述监控类型对应的所述预定义告警配置的文件;
S203,从所述预定义告警配置的文件中获取所述预设告警策略,并将所述预设告警策略复制到所述新创建的实例中。
具体地,所述新创建的实例携带有所述监控类型,所述监控类型携带有标识符,根据所述标识符,从监控系统中查找与所述新创建的实例携带的所述监控类型一致的监控类型。其中,在监控系统中,每个所述监控类型与对应的所述预定义告警配置的文件均存储有所述预设映射表,根据所述监控类型,通过对应的预设映射表,可以获取与所述监控类型对应的所述预定义告警配置的文件。
例如,若新创建的实例为主机时,则主机对应的监控类型为主机监控,针对主机监控,通过主机监控的标识符从监控系统中查找到与主机对应的监控类型一致的主机监控,根据预设映射表,获取主机监控对应的所述预定义告警配置的文件,其中,所述预设映射表可以为字符映射表,所述字符映射表中键为监控类型标识符,值为所述预定义告警配置的文件的地址。从所述预定义告警配置的文件中获取所述主机监控的所述预设告警策略,并将所述预设告警策略复制到所述新创建的实例中,实现所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略的关联。所述预设告警策略中可以包括下述至少一项:监控项的指标、指标的附加属性、最大警告次数、告警优先级、统计函数、比较运算符、告警阈值、告警备注信息、告警策略生效开始时间、告警策略生效结束时间及监控类型的标识符。
参见图1,S103,关联后,根据所述新创建的实例的告警策略,判断所述新创建的实例在运行过程中是否满足所述告警策略中的所述告警条件。
本实施例中,关联后,所述新创建的实例的告警策略可以为所述新创建的实例的监控类型对应的预设告警策略或修改后的所述预设告警策略,所述新创建的实例的告警策略可以被所述新创建的实例的租户修改,具体为:向所述新创建的实例的租户发送对所述新创建的实例中的所述预定义告警配置的修改信号,接收所述租户发送的修改后的所述预定义告警配置,从所述修改后的预定义告警配置中获取所述新创建的实例的告警策略。
其中,在所述监控系统中,每个实例可以由多个租户共用,但是每个租户均被预定义一个命名空间,在查询数据时,租户只能查询本租户的配置数据,所述配置数据为所述新创建的实例的配置数据,可以包括:APP的ID、租户ID、实例名、监控类型、实例所在区域信息(实例被创建的地址)、可读性的名称(可以更改的实例名)及对应的所述监控数据,所述监控数据可以包括预设可上报的监控项的监控数据或所述预设告警策略的数据,或者,所述监控数据可以包括修改后的预设可上报的监控项的监控数据或修改后的所述预设告警策略的数据。因此,每个实例对应着一个租户,所述租户只能修改对应本租户的配置数据。根据所述新创建的实例的告警策略,判断所述新创建的实例在运行过程中是否满足所述告警策略中的所述告警条件,比如,监控主机类的告警条件为cpu使用率连续3次>=80%就告警,其中,最大告警次数为3次,严重级别为3,则监控新创建的实例为主机时,判断所述主机在运行过程中是否满足所述告警条件。
步骤S104,若满足所述告警策略中的所述告警条件,则触发自动告警功能,并获取告警数据,所述告警数据包括所述新创建的实例的监控类型及监控数据。
本实施例中,若满足所述告警策略中的所述告警条件,则自动发送告警信号至所述监控系统,并获取告警数据,其中,不同的监控类型对应着不同的预设可上报的监控项。
优选地,所述新创建的实例还配置有对应的实例名;在获取所述告警数据后,从所述告警数据中筛选出与所述新创建的实例对应的所述监控数据,并根据所述对应的实例名将筛选后的所述监控数据上报至对应所述新创建的实例的租户;其中,所述监控数据包括所述预设可上报的监控项的监控数据及所述预设告警策略的数据,所述预设可上报的监控项的监控数据包括下述至少一项:CPU使用率、内存使用率、磁盘空间使用率,所述预设告警策略的数据包括最大警告次数和严重级别。
本实施例中,例如,对主机的监控中,对应的监控类型为主机类,则对应着的预设可上报的监控项可以包括CPU使用率,则从所述告警数据中筛选出与所述主机对应的所述监控数据,所述主机对应的所述监控数据可以包括所述主机对应的预设可上报的监控项的监控数据(CPU使用率)和预设告警策略的数据(最大警告次数和严重级别)。
若监控到CPU使用率连续3次>=80%且<85%时,则触发告警功能,且最大告警次数为1次,严重级别为1;若监控到CPU使用率连续3次>=85%且<90%时,则触发告警功能,且最大告警次数为2次,严重级别为2;若监控到CPU使用率连续3次>=90%时,则触发告警功能,且最大告警次数为3次,严重级别为3。
例如,所述主机的所述告警数据包括所述主机的监控类型为主机类、所述主机对应的预设可上报的监控项的监控数据为CPU使用率连续3次>=90%,且最大告警次数为3次,严重级别为3,将筛选出的所述新创建的实例(主机)对应的所述监控数据上报至对应所述主机的租户,以使所述租户根据上报的所述监控数据进行处理,所述租户可以为用户。
参见图3,图3为一种实例监控方法的再一实施例示意流程图,在该实施例中,实例监控方法,还可以包括步骤S301至S302:
S301,对所述已有实例的监控类型进行分类并配置属性标识,所述属性标识包括主机类监控标识和应用类监控标识,所述属性标识对应的监控属性包括主机类监控和应用类监控;
S302,根据所述属性标识,对所述监控属性进行所述预定义告警配置。
本实施例中,对所述已有实例的监控类型进行分类并配置属性标识,所述属性标识对应的监控属性主要可以分为主机类监控和应用类监控,其中,所述主机类监控可以包括主机类,所述应用类监控可以包括下述至少一类监控类型:物理机类、负载匀衡器类、数据库类。根据监控类型对应的属性标识,分别对主机类监控和应用类监控进行所述预定义告警配置,若所述新创建的实例在与预定义告警配置中的预设告警策略进行关联时,可以直接查找与所述新创建的实例对应的监控属性,将所述监控属性对应的预设告警策略复制到所述新创建的实例中,完成关联。
参见图4,图4为一种实例监控方法的又一实施例示意流程图,图4示出了S302中的根据所述属性标识,对所述监控属性进行所述预定义告警配置,可以包括步骤S401至S403:
S401,获取到所述新创建的实例,根据所述新创建的实例携带的属性标识,查找所述监控系统中是否存在与所述新创建的实例携带一致的所述属性标识;
S402,若存在与所述新创建的实例携带一致的属性标识,则获取与所述新创建的实例携带一致的属性标识对应的所述预定义告警配置的文件,并将所述预定义告警配置的文件中的预设告警策略复制到所述新创建的实例中;
S403,若不存在与所述新创建的实例携带一致的属性标识,则在所述监控系统中创建新的监控类型及监控属性,对所述新的监控类型配置与所述新创建的实例携带一致的属性标识,并根据所述新创建的实例对所述新的监控属性配置新的预定义告警配置的文件。
本实施例中,获取到携带有属性标识的所述新创建的实例,根据所述属性标识,判断所述监控系统中是否存在与所述新创建的实例携带一致的所述属性标识,例如,新创建的实例为主机时,则对应的监控类型为主机类,对应的监控属性为主机类监控,根据主机携带的属性标识,与所述监控系统中的所有的属性标识进行比对,若存在与所述主机携带一致的属性标识,则获取所述监控系统中的与所述主机携带一致的属性标识对应的所述预定义告警配置的文件,并将所述预定义告警配置的文件中的预设告警策略复制到所述主机中;若不存在与所述主机携带一致的属性标识,则在所述监控系统中创建新的监控类型及监控属性,即创建主机对应的监控类型(主机类)及监控属性(主机类监控),并将所述主机类配置与所述主机携带一致的属性标识,根据主机对所述主机类监控配置新的预定义告警配置的文件。
综上所述,本申请实施例首先获取新创建的实例,所述新创建的实例配置有对应的监控类型,然后根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,所述预设告警策略包括告警条件,实现自动化告警配置,关联后,根据所述新创建的实例的告警策略,判断所述新创建的实例在运行过程中是否满足所述告警策略中的所述告警条件,若满足所述告警策略中的所述告警条件,则触发自动告警功能,并获取告警数据,所述告警数据包括所述新创建的实例的监控类型及监控数据,实现对新创建的实例的自动化监控。与现有技术相比,本申请实施中通过获取新创建的实例的监控类型,再根据监控类型,将所述新创建的实例与对应的预设告警策略进行关联,实现自动化告警配置,能够让每一个实例创建之后都处于监控中的状态,极大地降低了用户的运维成本。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
对应于上文实施例所述的实例监控方法,图5示出了本申请实施例提供的实例监控装置的结构框图。为了便于说明,仅示出了与本实施例相关的部分。
参照图5,该装置包括:
实例获取模块501,用于获取新创建的实例,所述新创建的实例配置有对应的监控类型;
关联模块502,用于根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,所述预设告警策略包括告警条件;
判断模块503,用于关联后,根据所述新创建的实例的告警策略,判断所述新创建的实例在运行过程中是否满足所述告警策略中的所述告警条件;
告警模块504,用于在满足所述告警策略中的所述告警条件时,触发自动告警功能,并获取告警数据,所述告警数据包括所述新创建的实例的监控类型及监控数据。
可选地,所述实例监控装置还可以包括:第一告警配置模块,用于:在所述获取新创建的实例之前,获取所述监控系统监控的已有实例的监控类型,对所述监控类型进行预定义告警配置;其中,所述预定义告警配置包括下述至少一项:预设可上报的监控项、可上报的实例名、预设的告警策略;所述预设可上报的监控项包括下述至少一项:CPU、内存、磁盘空间。
可选地,所述关联模块502包括:
查找单元,用于根据所述新创建的实例对应的所述监控类型,查找与所述监控系统中对应的所述监控类型;
获取单元,用于根据预设映射表,获取与所述监控类型对应的所述预定义告警配置的文件;
关联单元,从所述预定义告警配置的文件中获取所述预设告警策略,并将所述预设告警策略复制到所述新创建的实例中。
可选地,所述新创建的实例还配置有对应的实例名,该装置还包括:监控数据筛选模块,用于在获取所述告警数据后,从所述告警数据中筛选出与所述新创建的实例对应的所述监控数据,并根据所述对应的实例名将筛选后的所述监控数据上报至对应所述新创建的实例的租户;
其中,所述监控数据包括所述预设可上报的监控项的监控数据及所述预设告警策略的数据,所述预设可上报的监控项的监控数据包括下述至少一项:CPU使用率、内存使用率、磁盘空间使用率,所述预设告警策略的数据包括最大警告次数和严重级别。
可选地,所述实例监控装置还包括:属性配置模块,用于对所述已有实例的监控类型进行分类并配置属性标识,所述属性标识包括主机类监控标识和应用类监控标识,所述属性标识对应的监控属性包括主机类监控和应用类监控;
第二告警配置模块,用于根据所述属性标识,对所述监控属性进行所述预定义告警配置。
可选地,所述第二告警配置模块,包括:
属性标识查找单元,用于获取到所述新创建的实例,根据所述新创建的实例携带的属性标识,查找所述监控系统中是否存在与所述新创建的实例携带一致的所述属性标识;
告警配置单元,用于在存在与所述新创建的实例携带一致的属性标识时,获取与所述新创建的实例携带一致的属性标识对应的所述预定义告警配置的文件,并将所述预定义告警配置的文件中的预设告警策略复制到所述新创建的实例中;
创建单元,用于在不存在与所述新创建的实例携带一致的属性标识时,在所述监控系统中创建新的监控类型及监控属性,对所述新的监控类型配置与所述新创建的实例携带一致的属性标识,并根据所述新创建的实例对所述新的监控属性配置新的预定义告警配置的文件。
图6是本申请实施例提供的一种终端设备的示意性框图。如图6所示,该实施例的终端设备6包括:处理器60以及存储器61,所述存储器61中存储有可在所述处理器60上运行的计算机可读指令62,例如实例监控方法程序。所述处理器60执行所述计算机可读指令62时实现上述各个实例监控方法实施例中的步骤,例如图1所示的步骤101至104。或者,所述处理器60执行所述计算机可读指令62时实现上述各装置实施例中各模块/单元的功能,例如图5所示单元501至504的功能。
示例性的,所述计算机可读指令62可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器61中,并由所述处理器60执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令段,该指令段用于描述所述计算机可读指令62在所述终端设备6中的执行过程。
所述终端设备6可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于处理器60和存储器61。本领域技术人员可以理解,图6仅仅是终端设备6的示例,并不构成对终端设备6的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。
所述存储器61可以是所述终端设备6的内部存储单元,例如终端设备6的硬盘或内存。所述存储器61也可以是所述终端设备6的外部存储设备,例如所述终端设备6上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器61还可以既包括所述终端设备6的内部存储单元也包括外部存储设备。所述存储器61用于存储所述计算机可读指令以及所述终端设备所需的其他程序和数据。所述存储器61还可以用于暂时地存储已经输出或者将要输出的数据。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。
Claims (20)
- 一种实例监控方法,其特征在于,包括:获取新创建的实例,所述新创建的实例配置有对应的监控类型;根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,所述预设告警策略包括告警条件;关联后,根据所述新创建的实例的告警策略,判断所述新创建的实例在运行过程中是否满足所述告警策略中的所述告警条件;若满足所述告警策略中的所述告警条件,则触发自动告警功能,并获取告警数据,所述告警数据包括所述新创建的实例的监控类型及监控数据。
- 根据权利要求1所述的实例监控方法,其特征在于,在所述获取新创建的实例之前,包括:获取所述监控系统监控的已有实例的监控类型,对所述监控类型进行预定义告警配置;其中,所述预定义告警配置包括下述至少一项:预设可上报的监控项、可上报的实例名、预设的告警策略;所述预设可上报的监控项包括下述至少一项:CPU、内存、磁盘空间。
- 根据权利要求2所述的实例监控方法,其特征在于,根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,包括:根据所述新创建的实例对应的所述监控类型,查找与所述监控系统中对应的所述监控类型;根据预设映射表,获取与所述监控类型对应的所述预定义告警配置的文件;从所述预定义告警配置的文件中获取所述预设告警策略,并将所述预设告警策略复制到所述新创建的实例中。
- 根据权利要求3所述的实例监控方法,其特征在于,所述新创建的实例还配置有对应的实例名;在获取所述告警数据后,从所述告警数据中筛选出与所述新创建的实例对应的所述监控数据,并根据所述对应的实例名将筛选后的所述监控数据上报至对应所述新创建的实例的租户;其中,所述监控数据包括所述预设可上报的监控项的监控数据及所述预设告警策略的数据,所述预设可上报的监控项的监控数据包括下述至少一项:CPU使用率、内存使用率、磁盘空间使用率,所述预设告警策略的数据包括最大警告次数和严重级别。
- 根据权利要求4所述的实例监控方法,其特征在于,还包括:对所述已有实例的监控类型进行分类并配置属性标识,所述属性标识包括主机类监控标识和应用类监控标识,所述属性标识对应的监控属性包括主机类监控和应用类监控;根据所述属性标识,对所述监控属性进行所述预定义告警配置。
- 根据权利要求5所述的实例监控方法,其特征在于,根据所述属性标识,对所述监控属性进行所述预定义告警配置,包括:获取到所述新创建的实例,根据所述新创建的实例携带的属性标识,查找所述监控系统中是否存在与所述新创建的实例携带一致的所述属性标识;若存在与所述新创建的实例携带一致的属性标识,则获取与所述新创建的实例携带一致的属性标识对应的所述预定义告警配置的文件,并将所述预定义告警配置的文件中的预设告警策略复制到所述新创建的实例中;若不存在与所述新创建的实例携带一致的属性标识,则在所述监控系统中创建新的监控类型及监控属性,对所述新的监控类型配置与所述新创建的实例携带一致的属性标识,并根据所述新创建的实例对所述新的监控属性配置新的预定义告警配置的文件。
- 一种实例监控装置,其特征在于,包括:实例获取模块,用于获取新创建的实例,所述新创建的实例配置有对应的监控类型;关联模块,用于根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,所述预设告警策略包括告警条件;判断模块,用于关联后,根据所述新创建的实例的告警策略,判断所述新创建的实例在运行过程中是否满足所述告警策略中的所述告警条件;告警模块,用于在满足所述告警策略中的所述告警条件时,触发自动告警功能,并获取告警数据,所述告警数据包括所述新创建的实例的监控类型及监控数据。
- 根据权利要求7所述的实例监控装置,其特征在于,还包括:第一告警配置模块,用于:在所述获取新创建的实例之前,获取所述监控系统监控的已有实例的监控类型,对所述监控类型进行预定义告警配置;其中,所述预定义告警配置包括下述至少一项:预设可上报的监控项、可上报的实例名、预设的告警策略;所述预设可上报的监控项包括下述至少一项:CPU、内存、磁盘空间。
- 根据权利要求8所述的实例监控装置,其特征在于,所述关联模块包括:查找单元,用于根据所述新创建的实例对应的所述监控类型,查找与所述监控系统中对应的所述监控类型;获取单元,用于根据预设映射表,获取与所述监控类型对应的所述预定义告警配置的文件;关联单元,从所述预定义告警配置的文件中获取所述预设告警策略,并将所述预设告警策略复制到所述新创建的实例中。
- 根据权利要求9所述的实例监控装置,其特征在于,所述新创建的实例还配置有对应的实例名,该装置还包括:监控数据筛选模块,用于在获取所述告警数据后,从所述告警数据中筛选出与所述新创建的实例对应的所述监控数据,并根据所述对应的实例名将筛选后的所述监控数据上报至对应所述新创建的实例的租户;其中,所述监控数据包括所述预设可上报的监控项的监控数据及所述预设告警策略的数据,所述预设可上报的监控项的监控数据包括下述至少一项:CPU使用率、内存使用率、磁盘空间使用率,所述预设告警策略的数据包括最大警告次数和严重级别。
- 根据权利要求10所述的实例监控装置,其特征在于,该装置还包括:属性配置模块,用于对所述已有实例的监控类型进行分类并配置属性标识,所述属性标识包括主机类监控标识和应用类监控标识,所述属性标识对应的监控属性包括主机类监控和应用类监控;第二告警配置模块,用于根据所述属性标识,对所述监控属性进行所述预定义告警配置。
- 根据权利要求11所述的实例监控装置,其特征在于,所述第二告警配置模块,包括:属性标识查找单元,用于获取到所述新创建的实例,根据所述新创建的实例携带的属性标识,查找所述监控系统中是否存在与所述新创建的实例携带一致的所述属性标识;告警配置单元,用于在存在与所述新创建的实例携带一致的属性标识时,获取与所述新创建的实例携带一致的属性标识对应的所述预定义告警配置的文件,并将所述预定义告警配置的文件中的预设告警策略复制到所述新创建的实例中;创建单元,用于在不存在与所述新创建的实例携带一致的属性标识时,在所述监控系统中创建新的监控类型及监控属性,对所述新的监控类型配置与所述新创建的实例携带一致的属性标识,并根据所述新创建的实例对所述新的监控属性配置新的预定义告警配置的文件。
- 一种终端设备,其特征在于,包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:获取新创建的实例,所述新创建的实例配置有对应的监控类型;根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,所述预设告警策略包括告警条件;关联后,根据所述新创建的实例的告警策略,判断所述新创建的实例在运行过程中是否满足所述告警策略中的所述告警条件;若满足所述告警策略中的所述告警条件,则触发自动告警功能,并获取告警数据,所述告警数据包括所述新创建的实例的监控类型及监控数据。
- 根据权利要求13所述的终端设备,其特征在于,在所述获取新创建的实例之前,包括:获取所述监控系统监控的已有实例的监控类型,对所述监控类型进行预定义告警配置;其中,所述预定义告警配置包括下述至少一项:预设可上报的监控项、可上报的实例名、预设的告警策略;所述预设可上报的监控项包括下述至少一项:CPU、内存、磁盘空间。
- 根据权利要求14所述的终端设备,其特征在于,根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,包括:根据所述新创建的实例对应的所述监控类型,查找与所述监控系统中对应的所述监控类型;根据预设映射表,获取与所述监控类型对应的所述预定义告警配置的文件;从所述预定义告警配置的文件中获取所述预设告警策略,并将所述预设告警策略复制到所述新创建的实例中。
- 根据权利要求15所述的终端设备,其特征在于,所述新创建的实例还配置有对应的实例名;在获取所述告警数据后,从所述告警数据中筛选出与所述新创建的实例对应的所述监控数据,并根据所述对应的实例名将筛选后的所述监控数据上报至对应所述新创建的实例的租户;其中,所述监控数据包括所述预设可上报的监控项的监控数据及所述预设告警策略的数据,所述预设可上报的监控项的监控数据包括下述至少一项:CPU使用率、内存使用率、磁盘空间使用率,所述预设告警策略的数据包括最大警告次数和严重级别。
- 根据权利要求16所述的终端设备,其特征在于,所述处理器执行所述计算机可读指令时还实现如下步骤:对所述已有实例的监控类型进行分类并配置属性标识,所述属性标识包括主机类监控标识和应用类监控标识,所述属性标识对应的监控属性包括主机类监控和应用类监控;根据所述属性标识,对所述监控属性进行所述预定义告警配置。
- 根据权利要求17所述的终端设备,其特征在于,根据所述属性标识,对所述监控属性进行所述预定义告警配置,包括:获取到所述新创建的实例,根据所述新创建的实例携带的属性标识,查找所述监控系统中是否存在与所述新创建的实例携带一致的所述属性标识;若存在与所述新创建的实例携带一致的属性标识,则获取与所述新创建的实例携带一致的属性标识对应的所述预定义告警配置的文件,并将所述预定义告警配置的文件中的预设告警策略复制到所述新创建的实例中;若不存在与所述新创建的实例携带一致的属性标识,则在所述监控系统中创建新的监控类型及监控属性,对所述新的监控类型配置与所述新创建的实例携带一致的属性标识,并根据所述新创建的实例对所述新的监控属性配置新的预定义告警配置的文件。
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被至少一个处理器执行时实现如下步骤:获取新创建的实例,所述新创建的实例配置有对应的监控类型;根据所述新创建的实例对应的所述监控类型,将所述新创建的实例与监控系统中存储的所述监控类型的预设告警策略进行关联,所述预设告警策略包括告警条件;关联后,根据所述新创建的实例的告警策略,判断所述新创建的实例在运行过程中是否满足所述告警策略中的所述告警条件;若满足所述告警策略中的所述告警条件,则触发自动告警功能,并获取告警数据,所述告警数据包括所述新创建的实例的监控类型及监控数据。
- 根据权利要求19所述的计算机可读存储介质,其特征在于,在所述获取新创建的实例之前,包括:获取所述监控系统监控的已有实例的监控类型,对所述监控类型进行预定义告警配置;其中,所述预定义告警配置包括下述至少一项:预设可上报的监控项、可上报的实例名、预设的告警策略;所述预设可上报的监控项包括下述至少一项:CPU、内存、磁盘空间。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810788598.3A CN109240876B (zh) | 2018-07-18 | 2018-07-18 | 实例监控方法、计算机可读存储介质和终端设备 |
| CN201810788598.3 | 2018-07-18 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020015092A1 true WO2020015092A1 (zh) | 2020-01-23 |
Family
ID=65072045
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/105056 Ceased WO2020015092A1 (zh) | 2018-07-18 | 2018-09-11 | 实例监控方法、装置、终端设备及介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109240876B (zh) |
| WO (1) | WO2020015092A1 (zh) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112019386A (zh) * | 2020-08-28 | 2020-12-01 | 北京浪潮数据技术有限公司 | 一种基于云平台的分布式集群告警方法、装置及设备 |
| CN113064800A (zh) * | 2021-04-19 | 2021-07-02 | 上海安畅网络科技股份有限公司 | 一种预警方法、装置、电子设备及可读存储介质 |
| CN114067524A (zh) * | 2021-11-23 | 2022-02-18 | 安徽富煌科技股份有限公司 | 一种策略恢复方案的电子站牌安全保护系统 |
| CN114764675A (zh) * | 2021-01-14 | 2022-07-19 | 京东科技控股股份有限公司 | 智能投顾系统的监控方法、装置、电子设备和存储介质 |
| CN117112604A (zh) * | 2023-09-06 | 2023-11-24 | 河南中原消费金融股份有限公司 | 一种数据监控告警方法、装置、设备及存储介质 |
| CN117155772A (zh) * | 2023-10-27 | 2023-12-01 | 广州嘉为科技有限公司 | 一种告警信息丰富方法、装置、设备及存储介质 |
| CN119382993A (zh) * | 2024-11-05 | 2025-01-28 | 贵州电网有限责任公司 | 一种基于国产化服务器的端口扫描监测方法及系统 |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112532404B (zh) * | 2019-09-17 | 2023-09-22 | 中国移动通信集团广东有限公司 | 一种数据监控方法、装置及电子设备 |
| CN110708197B (zh) * | 2019-09-27 | 2022-10-11 | 招商局金融科技有限公司 | 监控装置、监控装置的监控策略的设置方法及存储介质 |
| CN111193609B (zh) * | 2019-11-20 | 2021-09-28 | 腾讯科技(深圳)有限公司 | 应用异常的反馈方法、装置及应用异常的监控系统 |
| CN114661539B (zh) * | 2020-12-24 | 2025-10-03 | 顺丰科技有限公司 | 运维监控处理方法、装置、设备和介质 |
| CN113704049B (zh) * | 2021-04-13 | 2026-02-27 | 腾讯科技(深圳)有限公司 | 服务器电源故障监控方法、装置及电子设备 |
| CN116185761A (zh) * | 2022-12-29 | 2023-05-30 | 中国联合网络通信集团有限公司 | 一种数据监控方法、装置、电子设备及存储介质 |
| CN118445134A (zh) * | 2023-01-29 | 2024-08-06 | 华为云计算技术有限公司 | 一种云监控服务的配置方法、装置及系统 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080263556A1 (en) * | 2007-04-17 | 2008-10-23 | Michael Zoll | Real-time system exception monitoring tool |
| CN104065510A (zh) * | 2014-06-27 | 2014-09-24 | 北京思特奇信息技术股份有限公司 | 一种基于PetriNet的系统运维监控方法及系统 |
| CN104252485A (zh) * | 2013-06-29 | 2014-12-31 | 北京新媒传信科技有限公司 | 一种数据库管理平台 |
| CN104408059A (zh) * | 2014-10-29 | 2015-03-11 | 中国建设银行股份有限公司 | 一种故障处理的方法及装置 |
| CN106936620A (zh) * | 2015-12-31 | 2017-07-07 | 北京神州泰岳软件股份有限公司 | 一种告警事件的处理方法和处理装置 |
| CN108259193A (zh) * | 2016-12-28 | 2018-07-06 | 华为技术有限公司 | 一种网络管理方法、网络管理系统和网元管理系统 |
| CN108270726A (zh) * | 2016-12-30 | 2018-07-10 | 杭州华为数字技术有限公司 | 应用实例部署方法及装置 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106681882A (zh) * | 2015-11-06 | 2017-05-17 | 上海瑞致软件有限公司 | 基于Apriori算法的IT服务集中监控管理系统 |
| CN107562599A (zh) * | 2017-08-04 | 2018-01-09 | 无锡天脉聚源传媒科技有限公司 | 一种参数检测方法及装置 |
| CN108011880A (zh) * | 2017-12-04 | 2018-05-08 | 郑州云海信息技术有限公司 | 云数据系统中监控的管理方法和计算机可读存储介质 |
-
2018
- 2018-07-18 CN CN201810788598.3A patent/CN109240876B/zh active Active
- 2018-09-11 WO PCT/CN2018/105056 patent/WO2020015092A1/zh not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080263556A1 (en) * | 2007-04-17 | 2008-10-23 | Michael Zoll | Real-time system exception monitoring tool |
| CN104252485A (zh) * | 2013-06-29 | 2014-12-31 | 北京新媒传信科技有限公司 | 一种数据库管理平台 |
| CN104065510A (zh) * | 2014-06-27 | 2014-09-24 | 北京思特奇信息技术股份有限公司 | 一种基于PetriNet的系统运维监控方法及系统 |
| CN104408059A (zh) * | 2014-10-29 | 2015-03-11 | 中国建设银行股份有限公司 | 一种故障处理的方法及装置 |
| CN106936620A (zh) * | 2015-12-31 | 2017-07-07 | 北京神州泰岳软件股份有限公司 | 一种告警事件的处理方法和处理装置 |
| CN108259193A (zh) * | 2016-12-28 | 2018-07-06 | 华为技术有限公司 | 一种网络管理方法、网络管理系统和网元管理系统 |
| CN108270726A (zh) * | 2016-12-30 | 2018-07-10 | 杭州华为数字技术有限公司 | 应用实例部署方法及装置 |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112019386A (zh) * | 2020-08-28 | 2020-12-01 | 北京浪潮数据技术有限公司 | 一种基于云平台的分布式集群告警方法、装置及设备 |
| CN112019386B (zh) * | 2020-08-28 | 2022-12-06 | 北京浪潮数据技术有限公司 | 一种基于云平台的分布式集群告警方法、装置及设备 |
| CN114764675A (zh) * | 2021-01-14 | 2022-07-19 | 京东科技控股股份有限公司 | 智能投顾系统的监控方法、装置、电子设备和存储介质 |
| CN113064800A (zh) * | 2021-04-19 | 2021-07-02 | 上海安畅网络科技股份有限公司 | 一种预警方法、装置、电子设备及可读存储介质 |
| CN113064800B (zh) * | 2021-04-19 | 2023-03-24 | 上海安畅网络科技股份有限公司 | 一种预警方法、装置、电子设备及可读存储介质 |
| CN114067524A (zh) * | 2021-11-23 | 2022-02-18 | 安徽富煌科技股份有限公司 | 一种策略恢复方案的电子站牌安全保护系统 |
| CN117112604A (zh) * | 2023-09-06 | 2023-11-24 | 河南中原消费金融股份有限公司 | 一种数据监控告警方法、装置、设备及存储介质 |
| CN117155772A (zh) * | 2023-10-27 | 2023-12-01 | 广州嘉为科技有限公司 | 一种告警信息丰富方法、装置、设备及存储介质 |
| CN117155772B (zh) * | 2023-10-27 | 2024-01-30 | 广州嘉为科技有限公司 | 一种告警信息丰富方法、装置、设备及存储介质 |
| CN119382993A (zh) * | 2024-11-05 | 2025-01-28 | 贵州电网有限责任公司 | 一种基于国产化服务器的端口扫描监测方法及系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109240876A (zh) | 2019-01-18 |
| CN109240876B (zh) | 2022-05-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020015092A1 (zh) | 实例监控方法、装置、终端设备及介质 | |
| EP2933973B1 (en) | Data protection method, apparatus and system | |
| US10108634B1 (en) | Identification and removal of duplicate event records from a security information and event management database | |
| WO2021012568A1 (zh) | 一种数据处理方法及相关设备 | |
| WO2021051878A1 (zh) | 基于用户权限的云资源获取方法、装置及计算机设备 | |
| CN108053863A (zh) | 适合大小文件的海量医疗数据存储系统及数据存储方法 | |
| EP3488346B1 (en) | Anomaly detection using sequences of system calls | |
| CN107622084A (zh) | 日志管理方法、系统以及计算机可读存储介质 | |
| US20220229657A1 (en) | Extensible resource compliance management | |
| CN106844165A (zh) | 告警方法及装置 | |
| US20220138188A1 (en) | Generic scheduling | |
| WO2023273529A1 (zh) | 业务日志监控方法、装置、存储介质及电子设备 | |
| CN114860432B (zh) | 一种内存故障的信息确定方法及装置 | |
| US20240430273A1 (en) | Machine learning techniques for identifying anomalous vulnerability data | |
| CN109388671B (zh) | 数据处理方法、装置、设备及存储介质 | |
| CN112306700A (zh) | 一种异常rpc请求的诊断方法和装置 | |
| JP2020140250A (ja) | 異常検知装置、異常検知方法および異常検知プログラム | |
| CN110278101A (zh) | 一种资源管理方法及设备 | |
| WO2020015098A1 (zh) | 数据管理方法、终端设备及介质 | |
| CN113094224B (zh) | 服务器资产管理方法、装置、计算机设备和存储介质 | |
| CN115208671B (zh) | 防火墙配置方法、装置、电子设备和存储介质 | |
| US8676844B2 (en) | Graph authorization | |
| JP4807173B2 (ja) | セキュリティ管理システムおよびその方法 | |
| CN116955079A (zh) | 分布式监控方法、装置、设备及计算机可读存储介质 | |
| CN115801588A (zh) | 网络连接的动态拓扑处理方法及系统 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18927110 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18927110 Country of ref document: EP Kind code of ref document: A1 |