CN109062699A - A kind of resource monitoring method, device, server and storage medium - Google Patents
A kind of resource monitoring method, device, server and storage medium Download PDFInfo
- Publication number
- CN109062699A CN109062699A CN201810928515.6A CN201810928515A CN109062699A CN 109062699 A CN109062699 A CN 109062699A CN 201810928515 A CN201810928515 A CN 201810928515A CN 109062699 A CN109062699 A CN 109062699A
- Authority
- CN
- China
- Prior art keywords
- monitoring
- item
- monitored
- resource
- current
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
- G06F9/5077—Logical partitioning of resources; Management or configuration of virtualized resources
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明公开了一种资源监控方法、装置、服务器及存储介质,所述方法包括:按照预设周期获取当前待监控资源对应的至少一个监控项以及各个监控项对应的配置信息;根据各个监控项目对应的配置信息采集各个监控项目对应的监控数据;根据各个监控项对应的监控数据对所述当前待监控资源进行监控。不仅可以提高监控效率,而且还可以降低监控成本。
The invention discloses a resource monitoring method, device, server and storage medium. The method includes: acquiring at least one monitoring item corresponding to a resource to be monitored currently and configuration information corresponding to each monitoring item according to a preset cycle; The corresponding configuration information collects monitoring data corresponding to each monitoring item; and monitors the current resources to be monitored according to the monitoring data corresponding to each monitoring item. Not only can the monitoring efficiency be improved, but also the monitoring cost can be reduced.
Description
技术领域technical field
本发明涉及虚拟机技术领域,尤指一种资源监控方法、装置、服务器及存储介质。The invention relates to the technical field of virtual machines, in particular to a resource monitoring method, device, server and storage medium.
背景技术Background technique
Openstack作为知名的云计算管理平台,功能丰富,稳定性高,已被各个云计算厂商融合到自己的云数据中心管理平台中。基于Openstack可以实现主机的管理,并在相应的主机上创建虚拟机进行应用。另外,还可以创建服务供租户使用。As a well-known cloud computing management platform, Openstack has rich functions and high stability, and has been integrated into its own cloud data center management platform by various cloud computing vendors. Host management can be realized based on Openstack, and virtual machines can be created on corresponding hosts for application. Additionally, services can be created for use by tenants.
随着Openstack集群规模的不断扩大,Openstack中资源数量不断增多,监控系统所监控的资源数量不断增大,监控项目也不断增多,给监控系统造成的压力越来越大。现有的资源监控方法,通常是通过定时任务,对每一个资源的信息进行定时地采集。With the continuous expansion of the Openstack cluster, the number of resources in the Openstack is increasing, the number of resources monitored by the monitoring system is increasing, and the number of monitoring items is also increasing, which puts more and more pressure on the monitoring system. The existing resource monitoring method usually collects the information of each resource periodically through a scheduled task.
在实现本发明的过程中,发明人发现现有技术中至少存在如下问题:In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art:
在现有的资源监控方法中,由于服务器按照预设周期对当前待监控资源对应的全部监控项同时进行监控,当单个资源对应的监测项越来越多时,服务器采集任务执行的时间则会延长;并且,当服务器采集数据的频率提高时,往往会造成任务的阻塞。另外,对于不同的资源,用户所关注的不一定是所有的监控项。对每个资源都进行所有监控项的采集,一定程度上也造成了系统资源的浪费。由此可见,现有的资源监控方法,不仅监控效率较低,而且监控成本较高。In the existing resource monitoring method, since the server monitors all the monitoring items corresponding to the current resource to be monitored at the same time according to the preset cycle, when there are more and more monitoring items corresponding to a single resource, the execution time of the server collection task will be extended ; Moreover, when the frequency of data collection by the server increases, it often causes task blocking. In addition, for different resources, users do not necessarily pay attention to all monitoring items. Collecting all monitoring items for each resource also causes a waste of system resources to a certain extent. It can be seen that the existing resource monitoring method not only has low monitoring efficiency, but also has high monitoring cost.
发明内容Contents of the invention
为了解决上述技术问题,本发明提供了一种资源监控方法、装置、服务器及存储介质,不仅可以提高监控效率,而且还可以降低监控成本。In order to solve the above technical problems, the present invention provides a resource monitoring method, device, server and storage medium, which can not only improve monitoring efficiency, but also reduce monitoring cost.
为了达到本发明目的,第一方面,本发明提供了一种资源监控方法,所述方法包括:In order to achieve the purpose of the present invention, in a first aspect, the present invention provides a resource monitoring method, the method comprising:
按照预设周期获取当前待监控资源对应的至少一个监控项以及各个监控项对应的配置信息;Obtain at least one monitoring item corresponding to the current resource to be monitored and configuration information corresponding to each monitoring item according to a preset period;
根据各个监控项目对应的配置信息采集各个监控项目对应的监控数据;Collect the monitoring data corresponding to each monitoring item according to the configuration information corresponding to each monitoring item;
根据各个监控项对应的监控数据对所述当前待监控资源进行监控。The current resource to be monitored is monitored according to the monitoring data corresponding to each monitoring item.
在上述实施例中,所述按照预设周期获取当前待监控资源对应的至少一个待监控项以及各个待监控项对应的配置信息,包括:In the above embodiment, the acquisition of at least one item to be monitored corresponding to the current resource to be monitored and configuration information corresponding to each item to be monitored according to a preset period includes:
按照预设周期在云管理平台中获取所述当前待监控资源对应的至少一个监控项;Obtain at least one monitoring item corresponding to the current resource to be monitored in the cloud management platform according to a preset period;
在预先设置的数据库中获取各个监控项对应的配置信息;其中,所述配置信息至少包括:采集周期、采集频率或者采集时长。The configuration information corresponding to each monitoring item is obtained from a preset database; wherein, the configuration information at least includes: collection period, collection frequency or collection duration.
在上述实施例中,所述根据各个监控项目对应的配置信息采集各个待监控项目对应的监控数据,包括:In the above embodiment, the collection of monitoring data corresponding to each item to be monitored according to configuration information corresponding to each monitoring item includes:
根据各个待监控项目对应的配置信息确定各个待监控项目对应的数据采集接口;Determine the data collection interface corresponding to each item to be monitored according to the configuration information corresponding to each item to be monitored;
通过各个待监控项目对应的数据采集接口采集各个待监控项目对应的监控数据。The monitoring data corresponding to each item to be monitored is collected through the data collection interface corresponding to each item to be monitored.
在上述实施例中,所述根据各个监控项对应的监控数据对所述当前待监控资源进行监控,包括:In the above embodiment, the monitoring of the current resource to be monitored according to the monitoring data corresponding to each monitoring item includes:
根据各个监控项对应的监控数据确定所述当前待监控资源对应的当前监控结果;其中,所述当前监控结果至少包括:正常监控结果或者非正常监控结果;Determine the current monitoring result corresponding to the current resource to be monitored according to the monitoring data corresponding to each monitoring item; wherein, the current monitoring result at least includes: a normal monitoring result or an abnormal monitoring result;
将所述当前待监控资源对应的当前监控结果保存在与其对应的存储区域中。The current monitoring result corresponding to the current to-be-monitored resource is stored in a corresponding storage area.
第二方面,本发明还提供了一种资源监控装置,所述装置包括:获取模块、采集模块和监控模块;其中,In the second aspect, the present invention also provides a resource monitoring device, which includes: an acquisition module, a collection module, and a monitoring module; wherein,
所述获取模块,用于按照预设周期获取当前待监控资源对应的至少一个监控项以及各个监控项对应的配置信息;The acquisition module is configured to acquire at least one monitoring item corresponding to the current resource to be monitored and configuration information corresponding to each monitoring item according to a preset period;
所述采集模块,用于根据各个监控项目对应的配置信息采集各个监控项目对应的监控数据;The collection module is configured to collect monitoring data corresponding to each monitoring item according to configuration information corresponding to each monitoring item;
所述监控模块,用于根据各个监控项对应的监控数据对所述当前待监控资源进行监控。The monitoring module is configured to monitor the current resource to be monitored according to the monitoring data corresponding to each monitoring item.
在上述实施例中,所述获取模块,具体用于按照预设周期在云管理平台中获取所述当前待监控资源对应的至少一个监控项;在预先设置的数据库中获取各个监控项对应的配置信息;其中,所述配置信息至少包括:采集周期、采集频率或者采集时长。In the above embodiment, the obtaining module is specifically configured to obtain at least one monitoring item corresponding to the current resource to be monitored in the cloud management platform according to a preset period; obtain the configuration corresponding to each monitoring item in a preset database information; wherein, the configuration information at least includes: collection period, collection frequency or collection duration.
在上述实施例中,所述采集模块包括:确定子模块和采集子模块;其中,In the above embodiment, the collection module includes: a determination submodule and a collection submodule; wherein,
所述确定子模块,用于根据各个待监控项目对应的配置信息确定各个待监控项目对应的数据采集接口;The determining submodule is used to determine the data collection interface corresponding to each item to be monitored according to the configuration information corresponding to each item to be monitored;
所述采集子模块,用于通过各个待监控项目对应的数据采集接口采集各个待监控项目对应的监控数据。The acquisition sub-module is used to collect monitoring data corresponding to each item to be monitored through a data acquisition interface corresponding to each item to be monitored.
在上述实施例中,所述监控模块包括:监控子模块和存储子模块;其中,In the above embodiment, the monitoring module includes: a monitoring submodule and a storage submodule; wherein,
所述监控子模块,用于根据各个监控项对应的监控数据确定所述当前待监控资源对应的当前监控结果;其中,所述当前监控结果至少包括:正常监控结果或者非正常监控结果;The monitoring sub-module is configured to determine the current monitoring result corresponding to the current resource to be monitored according to the monitoring data corresponding to each monitoring item; wherein, the current monitoring result at least includes: a normal monitoring result or an abnormal monitoring result;
所述存储子模块,用于将所述当前待监控资源对应的当前监控结果保存在与其对应的存储区域中。The storage submodule is configured to store the current monitoring result corresponding to the current resource to be monitored in a corresponding storage area.
第三方面,本发明实施例提供了一种服务器,包括:In a third aspect, an embodiment of the present invention provides a server, including:
一个或多个处理器;one or more processors;
存储器,用于存储一个或多个程序,memory for storing one or more programs,
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本发明任意实施例所述的资源监控方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the resource monitoring method in any embodiment of the present invention.
第四方面,本发明实施例提供了一种存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明任意实施例所述的资源监控方法。In a fourth aspect, an embodiment of the present invention provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the resource monitoring method described in any embodiment of the present invention is implemented.
本发明实施例提出了一种资源监控方法、装置、服务器及存储介质,先按照预设周期获取当前待监控资源对应的至少一个监控项以及各个监控项对应的配置信息;然后根据各个监控项目对应的配置信息采集各个监控项目对应的监控数据;最后根据各个监控项对应的监控数据对当前待监控资源进行监控。也就是说,在本发明的技术方案中,可以按照预设周期获取当前待监控资源对应的至少一个监控项以及各个监控项对应的配置信息,从而实现对当前待监控资源进行监控。而在现有的资源监控方法中,按照预设周期对当前待监控资源对应的全部监控项同时进行监控。因此,和现有技术相比,本发明实施例提出的资源监控方法、装置、服务器及存储介质,不仅可以提高监控效率,而且还可以降低监控成本;并且,本发明实施例的技术方案实现简单方便、便于普及,适用范围更广。Embodiments of the present invention propose a resource monitoring method, device, server, and storage medium. First, at least one monitoring item corresponding to the current resource to be monitored and configuration information corresponding to each monitoring item are obtained according to a preset period; The monitoring data corresponding to each monitoring item is collected according to the configuration information of each monitoring item; finally, the current resources to be monitored are monitored according to the monitoring data corresponding to each monitoring item. That is to say, in the technical solution of the present invention, at least one monitoring item corresponding to the current to-be-monitored resource and configuration information corresponding to each monitoring item can be acquired according to a preset period, so as to monitor the current to-be-monitored resource. However, in the existing resource monitoring method, all monitoring items corresponding to the current resource to be monitored are simultaneously monitored according to a preset period. Therefore, compared with the prior art, the resource monitoring method, device, server, and storage medium proposed by the embodiments of the present invention can not only improve monitoring efficiency, but also reduce monitoring costs; moreover, the technical solutions of the embodiments of the present invention are simple to implement It is convenient, easy to popularize, and has a wider scope of application.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
附图说明Description of drawings
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present invention, and constitute a part of the description, and are used together with the embodiments of the application to explain the technical solution of the present invention, and do not constitute a limitation to the technical solution of the present invention.
图1为本发明实施例一提供的资源监控方法的流程示意图;FIG. 1 is a schematic flowchart of a resource monitoring method provided by Embodiment 1 of the present invention;
图2为本发明实施例二提供的资源监控方法的流程示意图;FIG. 2 is a schematic flowchart of a resource monitoring method provided in Embodiment 2 of the present invention;
图3为本发明实施例三提供的资源监控方法的流程示意图;FIG. 3 is a schematic flowchart of a resource monitoring method provided in Embodiment 3 of the present invention;
图4为本发明实施例四提供的资源监控装置的第一结构示意图;FIG. 4 is a schematic diagram of a first structure of a resource monitoring device provided in Embodiment 4 of the present invention;
图5为本发明实施例四提供的资源监控装置的第二结构示意图;FIG. 5 is a second structural schematic diagram of a resource monitoring device provided in Embodiment 4 of the present invention;
图6为本发明实施例五提供的服务器的结构示意图。FIG. 6 is a schematic structural diagram of a server provided in Embodiment 5 of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
实施例一Embodiment one
图1为本发明实施例一提供的资源监控方法的流程示意图,该方法可以由资源监控装置或者服务器来执行,该装置或者服务器可以由软件和/或硬件的方式实现,该装置或者服务器可以集成在任何具有网络通信功能的智能设备中。如图1所示,资源监控方法可以包括以下步骤:Fig. 1 is a schematic flowchart of a resource monitoring method provided in Embodiment 1 of the present invention, the method can be executed by a resource monitoring device or server, the device or server can be implemented by software and/or hardware, and the device or server can be integrated In any smart device with network communication function. As shown in Figure 1, the resource monitoring method may include the following steps:
步骤101、按照预设周期获取当前待监控资源对应的至少一个监控项以及各个监控项对应的配置信息。Step 101. Obtain at least one monitoring item corresponding to the current resource to be monitored and configuration information corresponding to each monitoring item according to a preset period.
在本发明的具体实施例中,服务器可以按照预设周期获取当前待监控资源对应的至少一个监控项以及各个监控项对应的配置信息。具体地,服务器可以按照预设周期在云管理平台中获取当前待监控资源对应的至少一个监控项;然后服务器还可以在预先设置的数据库中获取各个监控项对应的配置信息;其中,该配置信息至少包括:采集周期、采集频率或者采集时长。In a specific embodiment of the present invention, the server may acquire at least one monitoring item corresponding to the current resource to be monitored and configuration information corresponding to each monitoring item according to a preset period. Specifically, the server can obtain at least one monitoring item corresponding to the resource to be monitored currently in the cloud management platform according to a preset period; then the server can also obtain configuration information corresponding to each monitoring item in a preset database; wherein, the configuration information At least include: collection period, collection frequency or collection duration.
步骤102、根据各个监控项目对应的配置信息采集各个监控项目对应的监控数据。Step 102: Collect monitoring data corresponding to each monitoring item according to configuration information corresponding to each monitoring item.
在本发明的具体实施例中,服务器可以根据各个监控项目对应的配置信息采集各个监控项目对应的监控数据。具体地,服务器可以根据各个待监控项目对应的配置信息确定各个待监控项目对应的数据采集接口;然后通过各个待监控项目对应的数据采集接口采集各个待监控项目对应的监控数据。In a specific embodiment of the present invention, the server may collect monitoring data corresponding to each monitoring item according to configuration information corresponding to each monitoring item. Specifically, the server may determine the data collection interface corresponding to each to-be-monitored item according to the configuration information corresponding to each to-be-monitored item; and then collect the monitoring data corresponding to each to-be-monitored item through the data collection interface corresponding to each to-be-monitored item.
步骤103、根据各个监控项对应的监控数据对当前待监控资源进行监控。Step 103, monitor the current resource to be monitored according to the monitoring data corresponding to each monitoring item.
在本发明的具体实施例中,服务器可以根据各个监控项对应的监控数据对当前待监控资源进行监控。具体地,服务器可以根据各个监控项对应的监控数据确定当前待监控资源对应的当前监控结果;其中,当前监控结果至少包括:正常监控结果或者非正常监控结果;然后服务器可以将当前待监控资源对应的当前监控结果保存在与其对应的存储区域中。In a specific embodiment of the present invention, the server can monitor the current resource to be monitored according to the monitoring data corresponding to each monitoring item. Specifically, the server can determine the current monitoring result corresponding to the current resource to be monitored according to the monitoring data corresponding to each monitoring item; wherein, the current monitoring result at least includes: a normal monitoring result or an abnormal monitoring result; The current monitoring results of are stored in the corresponding storage area.
本发明实施例提出的资源监控方法,先按照预设周期获取当前待监控资源对应的至少一个监控项以及各个监控项对应的配置信息;然后根据各个监控项目对应的配置信息采集各个监控项目对应的监控数据;最后根据各个监控项对应的监控数据对当前待监控资源进行监控。也就是说,在本发明的技术方案中,可以按照预设周期获取当前待监控资源对应的至少一个监控项以及各个监控项对应的配置信息,从而实现对当前待监控资源进行监控。而在现有的资源监控方法中,按照预设周期对当前待监控资源对应的全部监控项同时进行监控。因此,和现有技术相比,本发明实施例提出的资源监控方法,不仅可以提高监控效率,而且还可以降低监控成本;并且,本发明实施例的技术方案实现简单方便、便于普及,适用范围更广。The resource monitoring method proposed by the embodiment of the present invention first obtains at least one monitoring item corresponding to the current resource to be monitored and the configuration information corresponding to each monitoring item according to a preset period; then collects the corresponding monitoring item according to the configuration information corresponding to each monitoring item. Monitoring data; finally, monitor the current resources to be monitored according to the monitoring data corresponding to each monitoring item. That is to say, in the technical solution of the present invention, at least one monitoring item corresponding to the current to-be-monitored resource and configuration information corresponding to each monitoring item can be acquired according to a preset period, so as to monitor the current to-be-monitored resource. However, in the existing resource monitoring method, all monitoring items corresponding to the current resource to be monitored are simultaneously monitored according to a preset period. Therefore, compared with the prior art, the resource monitoring method proposed by the embodiment of the present invention can not only improve the monitoring efficiency, but also reduce the monitoring cost; moreover, the technical solution of the embodiment of the present invention is simple and convenient to implement, easy to popularize, and the scope of application wider.
实施例二Embodiment two
图2为本发明实施例二提供的资源监控方法的流程示意图。如图2所示,资源监控方法可以包括以下步骤:FIG. 2 is a schematic flowchart of a resource monitoring method provided by Embodiment 2 of the present invention. As shown in Figure 2, the resource monitoring method may include the following steps:
步骤201、按照预设周期在云管理平台中获取当前待监控资源对应的至少一个监控项。Step 201: Obtain at least one monitoring item corresponding to the current resource to be monitored on the cloud management platform according to a preset period.
在本发明的具体实施例中,服务器可以按照预设周期在云管理平台中获取当前待监控资源对应的至少一个监控项。具体地,用户可以根据自己的需求,在云管理平台给当前待监控资源添加监控项,服务器会根据监控项的设置,对每个监控项开启定时任务。服务器可以根据任务管理,对具体的监控项进行采集并存储。由于系统任务可以并行执行,监控数据的采集通过监控项信息的划分,增加了并发度,提高了数据采集的速率。本发明从监控数据的采集上更加关注用户的需求,并且提升了系统性能。同时,通过任务设置,同一个资源的监控数据采集也可以并发执行,提高了数据采集的效率。In a specific embodiment of the present invention, the server may obtain at least one monitoring item corresponding to the current resource to be monitored from the cloud management platform according to a preset period. Specifically, users can add monitoring items to the current resources to be monitored on the cloud management platform according to their own needs, and the server will start a scheduled task for each monitoring item according to the settings of the monitoring items. The server can collect and store specific monitoring items according to task management. Since system tasks can be executed in parallel, the collection of monitoring data increases the degree of concurrency and the rate of data collection through the division of monitoring item information. The invention pays more attention to the needs of users from the collection of monitoring data, and improves the system performance. At the same time, through task setting, the monitoring data collection of the same resource can also be executed concurrently, which improves the efficiency of data collection.
步骤202、在预先设置的数据库中获取各个监控项对应的配置信息。Step 202, acquiring configuration information corresponding to each monitoring item from a preset database.
在本发明的具体实施例中,服务器可以在预先设置的数据库中获取各个监控项对应的配置信息。由于用户可以预先在数据库中添加当前待监控资源对应的配置信息,因此,服务器可以在预先设置的数据库中获取各个监控项对应的配置信息。具体地,服务器可以在预先设置的数据库中获取各个监控项对应的采集周期、采集频率或者采集时长。In a specific embodiment of the present invention, the server may obtain configuration information corresponding to each monitoring item from a preset database. Since the user can pre-add the configuration information corresponding to the current resource to be monitored in the database, the server can obtain the configuration information corresponding to each monitoring item in the preset database. Specifically, the server may acquire the collection period, collection frequency, or collection duration corresponding to each monitoring item from a preset database.
步骤203、根据各个待监控项目对应的配置信息确定各个待监控项目对应的数据采集接口。Step 203: Determine the data collection interface corresponding to each item to be monitored according to the configuration information corresponding to each item to be monitored.
在本发明的具体实施例中,服务器可以根据各个待监控项目对应的配置信息确定各个待监控项目对应的数据采集接口。具体地,对每一个检测项,服务器会根据其采集条目设置任务所调用的采集接口,并将采集接口添加到任务中执行;然后通过任务系统对任务进行调度,不同监控项任务可以并发执行;监测项任务通过任务调度系统执行任务,通过接口调用获取数据,并保存在与其对应的存储区域中。In a specific embodiment of the present invention, the server may determine the data collection interface corresponding to each item to be monitored according to the configuration information corresponding to each item to be monitored. Specifically, for each detection item, the server will set the collection interface called by the task according to its collection item, and add the collection interface to the task for execution; then schedule the task through the task system, and the tasks of different monitoring items can be executed concurrently; The task of the monitoring item is executed through the task scheduling system, the data is obtained through the interface call, and stored in the corresponding storage area.
步骤204、通过各个待监控项目对应的数据采集接口采集各个待监控项目对应的监控数据。Step 204, collect monitoring data corresponding to each item to be monitored through the data collection interface corresponding to each item to be monitored.
在本发明的具体实施例中,服务器可以通过各个待监控项目对应的数据采集接口采集各个待监控项目对应的监控数据。具体地,对每一个检测项,服务器会根据其采集条目设置任务所调用的采集接口,并将采集接口添加到任务中执行;然后通过任务系统对任务进行调度,不同监控项任务可以并发执行;监测项任务通过任务调度系统执行任务,通过接口调用获取数据,并保存在与其对应的存储区域中。In a specific embodiment of the present invention, the server may collect monitoring data corresponding to each item to be monitored through a data collection interface corresponding to each item to be monitored. Specifically, for each detection item, the server will set the collection interface called by the task according to its collection item, and add the collection interface to the task for execution; then schedule the task through the task system, and the tasks of different monitoring items can be executed concurrently; The task of the monitoring item is executed through the task scheduling system, the data is obtained through the interface call, and stored in the corresponding storage area.
步骤205、根据各个监控项对应的监控数据对当前待监控资源进行监控。Step 205, monitor the current resource to be monitored according to the monitoring data corresponding to each monitoring item.
在本发明的具体实施例中,服务器可以根据各个监控项对应的监控数据对当前待监控资源进行监控。具体地,服务器可以根据各个监控项对应的监控数据确定当前待监控资源对应的当前监控结果;其中,当前监控结果至少包括:正常监控结果或者非正常监控结果;然后服务器可以将当前待监控资源对应的当前监控结果保存在与其对应的存储区域中。In a specific embodiment of the present invention, the server can monitor the current resource to be monitored according to the monitoring data corresponding to each monitoring item. Specifically, the server can determine the current monitoring result corresponding to the current resource to be monitored according to the monitoring data corresponding to each monitoring item; wherein, the current monitoring result at least includes: a normal monitoring result or an abnormal monitoring result; The current monitoring results of are stored in the corresponding storage area.
本发明实施例提出的资源监控方法,先按照预设周期获取当前待监控资源对应的至少一个监控项以及各个监控项对应的配置信息;然后根据各个监控项目对应的配置信息采集各个监控项目对应的监控数据;最后根据各个监控项对应的监控数据对当前待监控资源进行监控。也就是说,在本发明的技术方案中,可以按照预设周期获取当前待监控资源对应的至少一个监控项以及各个监控项对应的配置信息,从而实现对当前待监控资源进行监控。而在现有的资源监控方法中,按照预设周期对当前待监控资源对应的全部监控项同时进行监控。因此,和现有技术相比,本发明实施例提出的资源监控方法,不仅可以提高监控效率,而且还可以降低监控成本;并且,本发明实施例的技术方案实现简单方便、便于普及,适用范围更广。The resource monitoring method proposed by the embodiment of the present invention first obtains at least one monitoring item corresponding to the current resource to be monitored and the configuration information corresponding to each monitoring item according to a preset period; then collects the corresponding monitoring item according to the configuration information corresponding to each monitoring item. Monitoring data; finally, monitor the current resources to be monitored according to the monitoring data corresponding to each monitoring item. That is to say, in the technical solution of the present invention, at least one monitoring item corresponding to the current to-be-monitored resource and configuration information corresponding to each monitoring item can be acquired according to a preset period, so as to monitor the current to-be-monitored resource. However, in the existing resource monitoring method, all monitoring items corresponding to the current resource to be monitored are simultaneously monitored according to a preset period. Therefore, compared with the prior art, the resource monitoring method proposed by the embodiment of the present invention can not only improve the monitoring efficiency, but also reduce the monitoring cost; moreover, the technical solution of the embodiment of the present invention is simple and convenient to implement, easy to popularize, and the scope of application wider.
实施例三Embodiment Three
图3为本发明实施例三提供的资源监控方法的流程示意图。如图3所示,资源监控方法可以包括以下步骤:FIG. 3 is a schematic flowchart of a resource monitoring method provided by Embodiment 3 of the present invention. As shown in Figure 3, the resource monitoring method may include the following steps:
步骤301、按照预设周期在云管理平台中获取当前待监控资源对应的至少一个监控项。Step 301: Obtain at least one monitoring item corresponding to the current resource to be monitored on the cloud management platform according to a preset period.
在本发明的具体实施例中,服务器可以按照预设周期在云管理平台中获取当前待监控资源对应的至少一个监控项。具体地,用户可以根据自己的需求,在云管理平台给当前待监控资源添加监控项,服务器会根据监控项的设置,对每个监控项开启定时任务。服务器可以根据任务管理,对具体的监控项进行采集并存储。由于系统任务可以并行执行,监控数据的采集通过监控项信息的划分,增加了并发度,提高了数据采集的速率。本发明从监控数据的采集上更加关注用户的需求,并且提升了系统性能。同时,通过任务设置,同一个资源的监控数据采集也可以并发执行,提高了数据采集的效率。In a specific embodiment of the present invention, the server may obtain at least one monitoring item corresponding to the current resource to be monitored from the cloud management platform according to a preset period. Specifically, users can add monitoring items to the current resources to be monitored on the cloud management platform according to their own needs, and the server will start a scheduled task for each monitoring item according to the settings of the monitoring items. The server can collect and store specific monitoring items according to task management. Since system tasks can be executed in parallel, the collection of monitoring data increases the degree of concurrency and the rate of data collection through the division of monitoring item information. The invention pays more attention to the needs of users from the collection of monitoring data, and improves the system performance. At the same time, through task setting, the monitoring data collection of the same resource can also be executed concurrently, which improves the efficiency of data collection.
步骤302、在预先设置的数据库中获取各个监控项对应的配置信息。Step 302, acquiring configuration information corresponding to each monitoring item from a preset database.
在本发明的具体实施例中,服务器可以在预先设置的数据库中获取各个监控项对应的配置信息。由于用户可以预先在数据库中添加当前待监控资源对应的配置信息,因此,服务器可以在预先设置的数据库中获取各个监控项对应的配置信息。具体地,服务器可以在预先设置的数据库中获取各个监控项对应的采集周期、采集频率或者采集时长。In a specific embodiment of the present invention, the server may obtain configuration information corresponding to each monitoring item from a preset database. Since the user can pre-add the configuration information corresponding to the current resource to be monitored in the database, the server can obtain the configuration information corresponding to each monitoring item in the preset database. Specifically, the server may acquire the collection period, collection frequency, or collection duration corresponding to each monitoring item from a preset database.
步骤303、根据各个待监控项目对应的配置信息确定各个待监控项目对应的数据采集接口。Step 303: Determine the data collection interface corresponding to each item to be monitored according to the configuration information corresponding to each item to be monitored.
在本发明的具体实施例中,服务器可以根据各个待监控项目对应的配置信息确定各个待监控项目对应的数据采集接口。具体地,对每一个检测项,服务器会根据其采集条目设置任务所调用的采集接口,并将采集接口添加到任务中执行;然后通过任务系统对任务进行调度,不同监控项任务可以并发执行;监测项任务通过任务调度系统执行任务,通过接口调用获取数据,并保存在与其对应的存储区域中。In a specific embodiment of the present invention, the server may determine the data collection interface corresponding to each item to be monitored according to the configuration information corresponding to each item to be monitored. Specifically, for each detection item, the server will set the collection interface called by the task according to its collection item, and add the collection interface to the task for execution; then schedule the task through the task system, and the tasks of different monitoring items can be executed concurrently; The task of the monitoring item is executed through the task scheduling system, the data is obtained through the interface call, and stored in the corresponding storage area.
步骤304、通过各个待监控项目对应的数据采集接口采集各个待监控项目对应的监控数据。Step 304, collect monitoring data corresponding to each item to be monitored through the data collection interface corresponding to each item to be monitored.
在本发明的具体实施例中,服务器可以通过各个待监控项目对应的数据采集接口采集各个待监控项目对应的监控数据。具体地,对每一个检测项,服务器会根据其采集条目设置任务所调用的采集接口,并将采集接口添加到任务中执行;然后通过任务系统对任务进行调度,不同监控项任务可以并发执行;监测项任务通过任务调度系统执行任务,通过接口调用获取数据,并保存在与其对应的存储区域中。In a specific embodiment of the present invention, the server may collect monitoring data corresponding to each item to be monitored through a data collection interface corresponding to each item to be monitored. Specifically, for each detection item, the server will set the collection interface called by the task according to its collection item, and add the collection interface to the task for execution; then schedule the task through the task system, and the tasks of different monitoring items can be executed concurrently; The task of the monitoring item is executed through the task scheduling system, the data is obtained through the interface call, and stored in the corresponding storage area.
步骤305、根据各个监控项对应的监控数据确定当前待监控资源对应的当前监控结果。Step 305: Determine the current monitoring result corresponding to the current resource to be monitored according to the monitoring data corresponding to each monitoring item.
在本发明的具体实施例中,服务器可以根据各个监控项对应的监控数据确定当前待监控资源对应的当前监控结果;其中,当前监控结果包括:正常监控结果或者非正常监控结果。具体地,服务器在采集到各个监控项对应的监控数据之后,服务器可以判断各个监控项对应的监控数据是否在预先设定的正常范围内,若各个监控项对应的监控数据在预先设定的正常范围内,则服务器可以确定当前待监控资源对应的当前监控结果为正常监控结果;反之,若各个监控项对应的监控数据不在预先设定的正常范围内,则服务器可以确定当前待监控资源对应的当前监控结果为非正常监控结果。In a specific embodiment of the present invention, the server may determine the current monitoring result corresponding to the current resource to be monitored according to the monitoring data corresponding to each monitoring item; wherein, the current monitoring result includes: normal monitoring result or abnormal monitoring result. Specifically, after the server collects the monitoring data corresponding to each monitoring item, the server can determine whether the monitoring data corresponding to each monitoring item is within the preset normal range, if the monitoring data corresponding to each monitoring item is within the preset normal range range, the server can determine that the current monitoring result corresponding to the current resource to be monitored is a normal monitoring result; on the contrary, if the monitoring data corresponding to each monitoring item is not within the preset normal range, the server can determine the The current monitoring result is an abnormal monitoring result.
步骤306、将当前待监控资源对应的当前监控结果保存在与其对应的存储区域中。Step 306: Save the current monitoring result corresponding to the current resource to be monitored in the corresponding storage area.
在本发明的具体实施例中,服务器可以将当前待监控资源对应的当前监控结果保存在与其对应的存储区域中。In a specific embodiment of the present invention, the server may save the current monitoring result corresponding to the current resource to be monitored in a corresponding storage area.
本发明实施例提出的资源监控方法,先按照预设周期获取当前待监控资源对应的至少一个监控项以及各个监控项对应的配置信息;然后根据各个监控项目对应的配置信息采集各个监控项目对应的监控数据;最后根据各个监控项对应的监控数据对当前待监控资源进行监控。也就是说,在本发明的技术方案中,可以按照预设周期获取当前待监控资源对应的至少一个监控项以及各个监控项对应的配置信息,从而实现对当前待监控资源进行监控。而在现有的资源监控方法中,按照预设周期对当前待监控资源对应的全部监控项同时进行监控。因此,和现有技术相比,本发明实施例提出的资源监控方法,不仅可以提高监控效率,而且还可以降低监控成本;并且,本发明实施例的技术方案实现简单方便、便于普及,适用范围更广。The resource monitoring method proposed by the embodiment of the present invention first obtains at least one monitoring item corresponding to the current resource to be monitored and the configuration information corresponding to each monitoring item according to a preset period; then collects the corresponding monitoring item according to the configuration information corresponding to each monitoring item. Monitoring data; finally, monitor the current resources to be monitored according to the monitoring data corresponding to each monitoring item. That is to say, in the technical solution of the present invention, at least one monitoring item corresponding to the current to-be-monitored resource and configuration information corresponding to each monitoring item can be acquired according to a preset period, so as to monitor the current to-be-monitored resource. However, in the existing resource monitoring method, all monitoring items corresponding to the current resource to be monitored are simultaneously monitored according to a preset period. Therefore, compared with the prior art, the resource monitoring method proposed by the embodiment of the present invention can not only improve the monitoring efficiency, but also reduce the monitoring cost; moreover, the technical solution of the embodiment of the present invention is simple and convenient to implement, easy to popularize, and the scope of application wider.
实施例四Embodiment four
图4为本发明实施例四提供的资源监控装置的第一结构示意图。如图4所示,本发明实施例所述的资源监控装置可以包括:获取模块401、采集模块402和监控模块403;其中,FIG. 4 is a schematic diagram of a first structure of a resource monitoring device provided in Embodiment 4 of the present invention. As shown in FIG. 4, the resource monitoring device according to the embodiment of the present invention may include: an acquisition module 401, a collection module 402, and a monitoring module 403; wherein,
所述获取模块401,用于按照预设周期获取当前待监控资源对应的至少一个监控项以及各个监控项对应的配置信息;The acquisition module 401 is configured to acquire at least one monitoring item corresponding to the current resource to be monitored and configuration information corresponding to each monitoring item according to a preset period;
所述采集模块402,用于根据各个监控项目对应的配置信息采集各个监控项目对应的监控数据;The collection module 402 is configured to collect monitoring data corresponding to each monitoring item according to configuration information corresponding to each monitoring item;
所述监控模块403,用于根据各个监控项对应的监控数据对所述当前待监控资源进行监控。The monitoring module 403 is configured to monitor the current resource to be monitored according to the monitoring data corresponding to each monitoring item.
进一步的,所述获取模块401,具体用于按照预设周期在云管理平台中获取所述当前待监控资源对应的至少一个监控项;在预先设置的数据库中获取各个监控项对应的配置信息;其中,所述配置信息至少包括:采集周期、采集频率或者采集时长。Further, the obtaining module 401 is specifically configured to obtain at least one monitoring item corresponding to the current to-be-monitored resource in the cloud management platform according to a preset period; obtain configuration information corresponding to each monitoring item in a preset database; Wherein, the configuration information at least includes: collection period, collection frequency or collection duration.
图5为本发明实施例四提供的资源监控装置的第二结构示意图。如图4所示,所述采集模块402包括:确定子模块4021和采集子模块4022;其中,FIG. 5 is a schematic diagram of a second structure of a resource monitoring device according to Embodiment 4 of the present invention. As shown in Figure 4, the collection module 402 includes: a determination sub-module 4021 and a collection sub-module 4022; wherein,
所述确定子模块4021,用于根据各个待监控项目对应的配置信息确定各个待监控项目对应的数据采集接口;The determination sub-module 4021 is used to determine the data collection interface corresponding to each item to be monitored according to the configuration information corresponding to each item to be monitored;
所述采集子模块4022,用于通过各个待监控项目对应的数据采集接口采集各个待监控项目对应的监控数据。The collection sub-module 4022 is configured to collect monitoring data corresponding to each item to be monitored through a data collection interface corresponding to each item to be monitored.
进一步的,所述监控模块403包括:监控子模块4031和存储子模块4032;其中,Further, the monitoring module 403 includes: a monitoring submodule 4031 and a storage submodule 4032; wherein,
所述监控子模块4031,用于根据各个监控项对应的监控数据确定所述当前待监控资源对应的当前监控结果;其中,所述当前监控结果至少包括:正常监控结果或者非正常监控结果;The monitoring sub-module 4031 is configured to determine the current monitoring result corresponding to the current resource to be monitored according to the monitoring data corresponding to each monitoring item; wherein, the current monitoring result at least includes: a normal monitoring result or an abnormal monitoring result;
所述存储子模块4032,用于将所述当前待监控资源对应的当前监控结果保存在与其对应的存储区域中。The storage sub-module 4032 is configured to save the current monitoring result corresponding to the current resource to be monitored in a corresponding storage area.
上述资源监控装置可执行本发明任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明任意实施例提供的资源监控方法。The above resource monitoring device can execute the method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in this embodiment, refer to the resource monitoring method provided in any embodiment of the present invention.
实施例五Embodiment five
图6为本发明实施例五提供的服务器的结构示意图。图6示出了适于用来实现本发明实施方式的示例性服务器的框图。图6显示的服务器12仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 6 is a schematic structural diagram of a server provided in Embodiment 5 of the present invention. Figure 6 shows a block diagram of an exemplary server suitable for use in implementing embodiments of the present invention. The server 12 shown in FIG. 6 is only an example, and should not limit the functions and scope of use of this embodiment of the present invention.
如图6所示,服务器12以通用计算设备的形式表现。服务器12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。As shown in FIG. 6, server 12 takes the form of a general-purpose computing device. Components of server 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, bus 18 connecting various system components including system memory 28 and processing unit 16.
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus structures. These architectures include, by way of example, but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect ( PCI) bus.
服务器12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被服务器12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by server 12 and include both volatile and nonvolatile media, removable and non-removable media.
系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存存储器32。服务器12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图6未显示,通常称为“硬盘驱动器”)。尽管图6中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32 . The server 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in FIG. 6, a disk drive for reading and writing to removable nonvolatile disks (e.g., "floppy disks") may be provided, as well as for removable nonvolatile optical disks (e.g., CD-ROM, DVD-ROM). or other optical media) CD-ROM drive. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present invention.
具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如存储器28中,这样的程序模块42包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本发明所描述的实施例中的功能和/或方法。A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data , each or some combination of these examples may include implementations of network environments. Program modules 42 generally perform the functions and/or methodologies of the described embodiments of the invention.
服务器12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该服务器12交互的设备通信,和/或与使得该服务器12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口22进行。并且,服务器12还可以通过网络适配器20与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器20通过总线18与服务器12的其它模块通信。应当明白,尽管图中未示出,可以结合服务器12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。Server 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), and may also communicate with one or more devices that enable users to interact with Server 12 is capable of communicating with any device (eg, network card, modem, etc.) that communicates with one or more other computing devices. Such communication may occur through input/output (I/O) interface 22 . Moreover, the server 12 can also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN) and/or a public network, such as the Internet) through the network adapter 20 . As shown, network adapter 20 communicates with other modules of server 12 via bus 18 . It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and Data backup storage system, etc.
处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的资源监控方法。The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28 , such as realizing the resource monitoring method provided by the embodiment of the present invention.
实施例六Embodiment six
本发明实施例六提供了一种计算机存储介质。Embodiment 6 of the present invention provides a computer storage medium.
本发明实施例的计算机可读存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer-readable storage medium in the embodiments of the present invention may use any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connections with one or more leads, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including - but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of the present invention may be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods or computer program products. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810928515.6A CN109062699A (en) | 2018-08-15 | 2018-08-15 | A kind of resource monitoring method, device, server and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810928515.6A CN109062699A (en) | 2018-08-15 | 2018-08-15 | A kind of resource monitoring method, device, server and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109062699A true CN109062699A (en) | 2018-12-21 |
Family
ID=64686139
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810928515.6A Pending CN109062699A (en) | 2018-08-15 | 2018-08-15 | A kind of resource monitoring method, device, server and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109062699A (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109829205A (en) * | 2019-01-08 | 2019-05-31 | 北京国电智深控制技术有限公司 | A kind of scene creation method, apparatus and computer readable storage medium |
| CN110138603A (en) * | 2019-04-28 | 2019-08-16 | 深兰科技(上海)有限公司 | A kind of method and device monitoring internet of things equipment |
| CN110221950A (en) * | 2019-06-18 | 2019-09-10 | 杭州朗和科技有限公司 | Processing method, medium, device and the calculating equipment of monitoring data |
| CN110309028A (en) * | 2019-06-19 | 2019-10-08 | 北京奇艺世纪科技有限公司 | Monitoring information acquisition methods, service monitoring method, apparatus and system |
| CN111143214A (en) * | 2019-12-26 | 2020-05-12 | 上海米哈游天命科技有限公司 | Game performance monitoring method, device, server and storage medium |
| CN111901405A (en) * | 2020-07-21 | 2020-11-06 | 国云科技股份有限公司 | Multi-node monitoring method and device, electronic equipment and storage medium |
| CN112597130A (en) * | 2020-12-22 | 2021-04-02 | 天聚地合(苏州)数据股份有限公司 | Data early warning method and device, electronic equipment and storage medium |
| CN113297030A (en) * | 2021-04-29 | 2021-08-24 | 上海淇玥信息技术有限公司 | Data delay output monitoring method and device and electronic equipment |
| CN115168042A (en) * | 2022-07-18 | 2022-10-11 | 中国电信股份有限公司 | Management method and device of monitoring cluster, computer storage medium and electronic equipment |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110131335A1 (en) * | 2009-05-08 | 2011-06-02 | Cloudkick, Inc. | Methods and systems for cloud computing management |
| CN103092738A (en) * | 2012-12-26 | 2013-05-08 | 杭州华为数字技术有限公司 | Method and device of resource visualization |
| CN105049298A (en) * | 2015-08-27 | 2015-11-11 | 浪潮集团有限公司 | Method and system for monitoring cloud resource |
| CN106998265A (en) * | 2017-03-14 | 2017-08-01 | 中国银联股份有限公司 | A kind of monitoring method and its device |
| CN108268355A (en) * | 2016-12-31 | 2018-07-10 | 中国移动通信集团四川有限公司 | For the monitoring system and method for data center |
-
2018
- 2018-08-15 CN CN201810928515.6A patent/CN109062699A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110131335A1 (en) * | 2009-05-08 | 2011-06-02 | Cloudkick, Inc. | Methods and systems for cloud computing management |
| CN103092738A (en) * | 2012-12-26 | 2013-05-08 | 杭州华为数字技术有限公司 | Method and device of resource visualization |
| CN105049298A (en) * | 2015-08-27 | 2015-11-11 | 浪潮集团有限公司 | Method and system for monitoring cloud resource |
| CN108268355A (en) * | 2016-12-31 | 2018-07-10 | 中国移动通信集团四川有限公司 | For the monitoring system and method for data center |
| CN106998265A (en) * | 2017-03-14 | 2017-08-01 | 中国银联股份有限公司 | A kind of monitoring method and its device |
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109829205A (en) * | 2019-01-08 | 2019-05-31 | 北京国电智深控制技术有限公司 | A kind of scene creation method, apparatus and computer readable storage medium |
| CN110138603A (en) * | 2019-04-28 | 2019-08-16 | 深兰科技(上海)有限公司 | A kind of method and device monitoring internet of things equipment |
| CN110221950A (en) * | 2019-06-18 | 2019-09-10 | 杭州朗和科技有限公司 | Processing method, medium, device and the calculating equipment of monitoring data |
| CN110309028A (en) * | 2019-06-19 | 2019-10-08 | 北京奇艺世纪科技有限公司 | Monitoring information acquisition methods, service monitoring method, apparatus and system |
| CN110309028B (en) * | 2019-06-19 | 2023-04-28 | 北京奇艺世纪科技有限公司 | Monitoring information acquisition method, service monitoring method, device and system |
| CN111143214A (en) * | 2019-12-26 | 2020-05-12 | 上海米哈游天命科技有限公司 | Game performance monitoring method, device, server and storage medium |
| CN111901405A (en) * | 2020-07-21 | 2020-11-06 | 国云科技股份有限公司 | Multi-node monitoring method and device, electronic equipment and storage medium |
| CN111901405B (en) * | 2020-07-21 | 2023-05-05 | 国云科技股份有限公司 | Multi-node monitoring method and device, electronic equipment and storage medium |
| CN112597130A (en) * | 2020-12-22 | 2021-04-02 | 天聚地合(苏州)数据股份有限公司 | Data early warning method and device, electronic equipment and storage medium |
| CN113297030A (en) * | 2021-04-29 | 2021-08-24 | 上海淇玥信息技术有限公司 | Data delay output monitoring method and device and electronic equipment |
| CN113297030B (en) * | 2021-04-29 | 2023-06-27 | 上海淇玥信息技术有限公司 | Data delay output monitoring method and device and electronic equipment |
| CN115168042A (en) * | 2022-07-18 | 2022-10-11 | 中国电信股份有限公司 | Management method and device of monitoring cluster, computer storage medium and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109062699A (en) | A kind of resource monitoring method, device, server and storage medium | |
| US9710300B2 (en) | Flow topology of computer transactions | |
| WO2022103575A1 (en) | Techniques for modifying cluster computing environments | |
| CN102722431B (en) | process monitoring method and device | |
| CN111045911B (en) | Performance test method, performance test device, storage medium and electronic equipment | |
| CN111563014A (en) | Interface service performance testing method, apparatus, equipment and storage medium | |
| WO2020232871A1 (en) | Method and device for microservice dependency analysis | |
| CN109152061B (en) | Channel deployment method, device, server and storage medium | |
| WO2021190659A1 (en) | System data acquisition method and apparatus, and medium and electronic device | |
| US9442817B2 (en) | Diagnosis of application server performance problems via thread level pattern analysis | |
| CN109104491A (en) | A kind of micro services call method, device, server and storage medium | |
| CN106030456A (en) | Automatic asynchronous handoff identification | |
| CN109189555A (en) | A kind of implementation method of Port Mirroring, device, server and storage medium | |
| CN103455363A (en) | Command processing method, device and physical host of virtual machine | |
| CN107958018A (en) | Data-updating method, device and computer-readable medium in caching | |
| CN110033242B (en) | Working time determining method, device, equipment and medium | |
| CN114238391A (en) | Data paging query method and device, electronic equipment and storage medium | |
| US12566639B2 (en) | Techniques for auto-tuning compute load resources | |
| CN115269308A (en) | Kafka monitoring method and system, computer equipment and medium | |
| CN107861821B (en) | Mining method and device for module call relation and computer readable medium | |
| WO2022267438A1 (en) | Performance parameter recording method and apparatus, inverter, air conditioning device, and storage medium | |
| CN107656999B (en) | Call history tracing method and device, electronic equipment and storage medium | |
| US20240211306A1 (en) | Techniques for handling polling frequency in event delivery network (edn) | |
| CN111376255B (en) | Robot data acquisition method and device and terminal equipment | |
| CN112000491B (en) | Application program interface calling method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181221 |