Virtual machine index data monitoring method and device, equipment and medium
By obtaining the initial indicator data of the virtual machine from the virtual data platform, the resource consumption and flexibility problems caused by the installation of software on the virtual machine are solved, and efficient and flexible monitoring effects are achieved.
Patent Information
- Application Number
- CN202411709211.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-11-26
AI Technical Summary
In the prior art, software needs to be installed on virtual machines, resulting in increased resource consumption, low flexibility, and software deployment failure, affecting monitoring effect.
By obtaining the initial metric data of the virtual machine from the manufacturer's virtual data platform, there is no need to arrange software on the virtual machine, save resources, improve monitoring flexibility, and avoid the situation where the metric data cannot be collected due to failure of software deployment.
It realizes saving virtual machine resources, improves monitoring flexibility, and avoids the inability to collect indicator data due to failure of software deployment, and improves monitoring efficiency and reliability.
Smart Images

Figure CN119557052A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and medium for monitoring virtual machine indicator data. Background Art
[0002] In the operation and management of data centers, monitoring virtual machine data is the key to ensuring system stability and performance.
[0003] In the prior art, it is usually necessary to rely on software provided by the manufacturer, install the software directly on the virtual machine, and implement monitoring by collecting indicator data of the virtual machine.
[0004] However, the above methods in the prior art require software to be installed on the virtual machine, which increases the resource consumption of the virtual machine, and there is a situation where software deployment fails due to the security policy of the virtual machine. At the same time, relying on software provided by the manufacturer also has a negative impact on monitoring flexibility. Summary of the invention
[0005] The present invention provides a virtual machine indicator data monitoring method, device, equipment and medium, which are used to solve the defects in the prior art that software needs to be installed on the virtual machine, which increases the resource consumption of the virtual machine, has low flexibility, and the software may fail to deploy. The technical solution of the present invention obtains the initial indicator data of the virtual machine from the manufacturer's virtual data platform, does not need to deploy software on the virtual machine, saves virtual machine resources, improves monitoring flexibility, and avoids the situation where indicator data cannot be collected due to software deployment failure.
[0006] The present invention provides a method for monitoring virtual machine indicator data, comprising the following steps.
[0007] For virtual data platforms of multiple manufacturers, initial indicator data of virtual machines are obtained from the virtual data platforms; the virtual data platforms are used to collect the initial indicator data of the virtual machines; the initial indicator data include initial processor data, initial memory data, initial disk data, initial node data, initial load, initial transmission control protocol connection number and initial bandwidth corresponding to the virtual machines; Performing unified processing on the initial indicator data corresponding to all the virtual data platforms to obtain monitoring indicator data corresponding to all the initial indicator data; The monitoring indicator data is uploaded to the monitoring data service platform for monitoring.
[0008] According to a virtual machine indicator data monitoring method provided by the present invention, the initial indicator data of the virtual machine is obtained from the virtual data platform, including: Send a data transmission request to the virtual data platform through an application programming interface; and receive initial indicator data of the virtual machine sent by the virtual data platform.
[0009] The data transmission request is used to instruct the virtual data platform to send initial indicator data of the virtual machine.
[0010] According to a virtual machine indicator data monitoring method provided by the present invention, the initial indicator data corresponding to all the virtual data platforms are uniformly processed to obtain monitoring indicator data corresponding to all the initial indicator data, including: For each of the initial indicator data, the initial indicator data is unified according to a preset template to obtain unified indicator data corresponding to the initial indicator data; Based on all the unified indicator data, the monitoring indicator data corresponding to the initial indicator data is determined.
[0011] According to a virtual machine indicator data monitoring method provided by the present invention, the initial indicator data is uniformly processed according to a preset template to obtain unified indicator data corresponding to the initial indicator data, including: Parsing the initial indicator data based on the tool library to obtain parsed data; The parsed data is processed in a unified manner according to the preset template to obtain the unified indicator data.
[0012] According to a virtual machine indicator data monitoring method provided by the present invention, the parsed data is uniformly processed according to the preset template to obtain the unified indicator data, including: According to the data name template, data precision template and data format template in the preset template, the data name, data precision and data format corresponding to the analyzed data are respectively unified to obtain the unified indicator data.
[0013] According to a virtual machine indicator data monitoring method provided by the present invention, the method further includes: A storage visual instruction is sent to the monitoring data service platform, wherein the storage visual instruction is used to instruct the monitoring data service platform to store and visualize the monitoring indicator data.
[0014] The present invention also provides a virtual machine indicator data monitoring device, comprising the following modules: An acquisition module is used to acquire initial indicator data of a virtual machine from a virtual data platform of each of multiple manufacturers; the virtual data platform is used to collect the initial indicator data of the virtual machine; the initial indicator data includes initial processor data, initial memory data, initial disk data, initial node data, initial load, initial transmission control protocol connection number and initial bandwidth corresponding to the virtual machine; A unification module, used for performing unified processing on the initial indicator data corresponding to all the virtual data platforms to obtain monitoring indicator data corresponding to all the initial indicator data; The monitoring module is used to upload the monitoring indicator data to the monitoring data service platform for monitoring.
[0015] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for monitoring virtual machine indicator data as described above is implemented.
[0016] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for monitoring virtual machine indicator data as described in any one of the above is implemented.
[0017] The present invention also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned virtual machine indicator data monitoring methods.
[0018] The virtual machine indicator data monitoring method, device, equipment and medium provided by the present invention obtain the initial indicator data of the virtual machine from the virtual data platform for each virtual data platform of multiple manufacturers, and then unify the initial indicator data corresponding to all virtual data platforms to obtain the monitoring indicator data corresponding to all the initial indicator data, and further upload the monitoring indicator data to the monitoring data service platform for monitoring. The technical solution of the present invention obtains the initial indicator data of the virtual machine from the virtual data platform of the manufacturer, and through the virtual data platform, there is no need to deploy software on the virtual machine, which saves virtual machine resources, improves monitoring flexibility, and avoids the situation where indicator data cannot be collected due to software deployment failure. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 It is a flow chart of the virtual machine indicator data monitoring method provided by the present invention.
[0021] Figure 2 It is a structural schematic diagram of the virtual machine indicator data monitoring device provided by the present invention.
[0022] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] In view of the above problems in the prior art, the present invention provides a method for monitoring virtual machine indicator data. The execution subject of the method of the present invention can be a terminal, a server, or other electronic devices. The embodiment of the present invention is not specifically limited here. In addition, in order to improve the efficiency of parallel processing, the present invention can process parallel tasks through a thread pool. Figure 1 is a flow chart of the virtual machine indicator data monitoring method provided by the present invention, such as Figure 1 As shown, the method includes the following: Step 110: For virtual data platforms of multiple manufacturers respectively, initial indicator data of virtual machines are obtained from the virtual data platforms; the virtual data platform is used to collect the initial indicator data of the virtual machines; the initial indicator data includes initial processor data, initial memory data, initial disk data, initial node data, initial load, initial transmission control protocol connection number and initial bandwidth corresponding to the virtual machines.
[0025] Specifically, multiple manufacturers each have their own virtual data platform, each virtual data platform is connected to multiple virtual machines in communication, and the virtual data platform can collect the initial indicator data of the multiple virtual machines corresponding to it. For the virtual data platforms of multiple manufacturers, the initial indicator data of the virtual machine can be obtained from the virtual data platform. The initial indicator data includes the initial processor data, initial memory data, initial disk data, initial node data, initial load, initial transmission control protocol connection number and initial bandwidth corresponding to the virtual machine. Among them, the initial processor can be, for example, a central processing unit (CPU), and the initial processor data can include CPU usage, which refers to the workload of the CPU when running a program, usually expressed in percentage. The initial memory data can include memory usage, which indicates the percentage of memory already used. The initial disk data can include disk usage, disk read and write speed and disk read and write times; disk usage refers to the proportion of disk usage, usually expressed in percentage; disk read and write speed represents the data transmission rate, and the unit can be kilobits per second (kb / s); disk read and write times represent the number of input and output operations of the disk per second. The initial node data may include the inode usage rate, which represents the ratio of the number of used inodes to the total number of inodes. The initial load represents the load of the virtual machine. The initial number of transmission control protocol connections represents the maximum number of transmission control protocol (TCP) connections that can be established simultaneously on the virtual machine. The initial bandwidth may be, for example, the intranet bandwidth.
[0026] In one embodiment, the obtaining of initial indicator data of the virtual machine from the virtual data platform includes: Send a data transmission request to the virtual data platform through an application programming interface; and receive initial indicator data of the virtual machine sent by the virtual data platform.
[0027] The data transmission request is used to instruct the virtual data platform to send initial indicator data of the virtual machine.
[0028] Specifically, a data transmission request can be sent to the virtual data platform through an application programming interface (API). The data transmission request can be, for example, an HTTP request sent through OKHttpClient (an open source Hypertext Transfer Protocol (HTTP) client library), or a data transmission request in other formats. The embodiment of the present invention does not make specific limitations here. After receiving the data transmission request, the virtual data platform can send the initial indicator data of the virtual machine to the execution subject of the present invention. Further, the initial indicator data of the virtual machine sent by the virtual data platform can be received through the API. In the above data transmission process, the Secure Sockets Layer (SSL) protocol or the Transport Layer Security (TLS) protocol can be used. SSL and TLS are two security protocols that can provide encrypted communication and ensure data integrity.
[0029] In the above embodiment, a data transmission request is sent to the virtual data platform through the application programming interface, and the initial indicator data of the virtual machine sent by the virtual data platform is received through the application programming interface. The initial indicator data of the virtual machine can be obtained without installing software on the virtual machine.
[0030] Step 120: Perform unified processing on the initial indicator data corresponding to all the virtual data platforms to obtain monitoring indicator data corresponding to all the initial indicator data.
[0031] Specifically, the initial indicator data corresponding to all virtual data platforms can be processed in a unified manner to obtain monitoring indicator data corresponding to all initial indicator data. Since the initial indicator data of each manufacturer is different, the initial indicator data can be processed in a unified manner to improve the efficiency of subsequent data integration and analysis.
[0032] In one embodiment, the initial indicator data corresponding to all the virtual data platforms are uniformly processed to obtain monitoring indicator data corresponding to all the initial indicator data, including: For each of the initial indicator data, the initial indicator data is unified according to a preset template to obtain unified indicator data corresponding to the initial indicator data; Based on all the unified indicator data, the monitoring indicator data corresponding to the initial indicator data is determined.
[0033] Specifically, for each initial indicator data, the initial indicator data can be unified according to a preset template to obtain unified indicator data after unified processing. It is easy to understand that the preset template can be set as needed, and the embodiment of the present invention is not specifically limited here. Further, all unified indicator data can be integrated and determined as monitoring indicator data. It is easy to understand that the unified indicator data only corresponds to one virtual data platform, or the unified indicator data only corresponds to one manufacturer. The monitoring indicator data described in the present invention is unified monitoring indicator data for all manufacturers.
[0034] In the above embodiment, for each initial indicator data, the initial indicator data is uniformly processed according to a preset template to obtain unified indicator data corresponding to the initial indicator data, and monitoring indicator data is determined based on all unified indicator data, so that the monitoring indicator data has been uniformly processed and the indicator data of multiple manufacturers are integrated, which facilitates data analysis.
[0035] In one embodiment, the unifying process of the initial indicator data according to the preset template to obtain the unified indicator data corresponding to the initial indicator data includes: Parsing the initial indicator data based on the tool library to obtain parsed data; The parsed data is processed in a unified manner according to the preset template to obtain the unified indicator data.
[0036] Specifically, since the initial indicator data is relatively complex, the initial indicator data can be parsed based on a tool library to obtain parsed data to simplify the complexity of the initial indicator data. The tool library can be, for example, a hutool library (a Java tool library), and the initial indicator data can be, for example, data in JSON (JavaScript Object Notation) format, which is an open standard file format and data exchange format. Furthermore, after obtaining the parsed data, the parsed data can be uniformly processed according to a preset template to obtain unified indicator data.
[0037] In the above embodiment, the initial indicator data is parsed and processed based on the tool library to obtain parsed data, which reduces the complexity of the initial indicator data and facilitates the subsequent unified processing process.
[0038] In one embodiment, the unifying process of the parsed data according to the preset template to obtain the unified indicator data includes: According to the data name template, data precision template and data format template in the preset template, the data name, data precision and data format corresponding to the analyzed data are respectively unified to obtain the unified indicator data.
[0039] Specifically, the data names corresponding to the parsed data can be unified according to the data name template in the preset template. For example, the data name corresponding to a certain parsed data includes "processor usage rate". The unified processing can modify "processor usage rate" to "processor occupancy rate". The data precision corresponding to the parsed data can also be unified according to the data precision template in the preset template. For example, if the data precision template is base 10,000, and the data precision corresponding to a certain parsed data is base 10,000, then the data precision corresponding to the parsed data can be uniformly modified to base 10,000. The data format corresponding to the parsed data can also be unified according to the data format template in the preset template. For example, if the data format template is megabits per second, and the data format corresponding to a certain parsed data is kilobits per second, then the data format corresponding to the parsed data can be uniformly modified to megabits per second. Further, after the unified processing of the data name, data precision and data format corresponding to the parsed data is completed, unified indicator data can be obtained.
[0040] In the above embodiment, the data name, data precision and data format corresponding to the parsed data are unified according to the data name template, data precision template and data format template in the preset template to obtain unified indicator data, so that different indicator data among manufacturers are unified, which facilitates the monitoring of virtual machine indicator data.
[0041] Step 130: Upload the monitoring indicator data to a monitoring data service platform for monitoring.
[0042] In one embodiment, uploading the monitoring indicator data to a monitoring data service platform for monitoring includes: The monitoring processor data, monitoring memory data, monitoring disk data, monitoring node data, monitoring load, monitoring transmission control protocol connection number and monitoring bandwidth in the monitoring indicator data are uploaded to the monitoring data service platform for monitoring.
[0043] Specifically, the monitoring indicator data includes monitoring processor data, monitoring memory data, monitoring disk data, monitoring node data, monitoring load, monitoring transmission control protocol connection number and monitoring bandwidth. It should be noted that the monitoring indicator data includes data corresponding to multiple manufacturers. In addition, the data content of the monitoring indicator data is the same as the data content of multiple initial indicator data. After obtaining the monitoring indicator data, the monitoring processor data, monitoring memory data, monitoring disk data, monitoring node data, monitoring load, monitoring transmission control protocol connection number and monitoring bandwidth in the monitoring indicator data can be uploaded to the monitoring data service platform for monitoring.
[0044] Optionally, the user can query the monitoring index data on the monitoring data service platform for monitoring, or determine whether the monitoring index data is within a preset threshold range, and issue a monitoring alarm when the monitoring index data is not within the preset threshold range. The embodiment of the present invention does not specifically limit the monitoring method.
[0045] In the above embodiment, the monitoring processor data, monitoring memory data, monitoring disk data, monitoring node data, monitoring load, monitoring transmission control protocol connection number and monitoring bandwidth in the monitoring indicator data are uploaded to the monitoring data service platform for monitoring, which further improves the accuracy and efficiency of monitoring.
[0046] In one embodiment, the virtual machine indicator data monitoring method further includes: A storage visual instruction is sent to the monitoring data service platform, wherein the storage visual instruction is used to instruct the monitoring data service platform to store and visualize the monitoring indicator data.
[0047] Specifically, the monitoring indicator data can be uploaded to the monitoring data service platform. A storage visual instruction can also be sent to the monitoring data service platform. After receiving the monitoring indicator data and the storage visual instruction, the monitoring data service platform can store the monitoring indicator data. The monitoring data service platform can also visualize the monitoring indicator data to obtain a view corresponding to the monitoring indicator data to facilitate the monitoring of the monitoring indicator data. Among them, the monitoring data service platform can be, for example, Prometheus (an open source monitoring and alarm tool) or other monitoring data service platforms, and the embodiments of the present invention are not specifically limited here.
[0048] In the above embodiment, the monitoring data service platform is used to store and visualize the monitoring indicator data, which facilitates the monitoring of the virtual machine.
[0049] The virtual machine indicator data monitoring method provided by the present invention obtains the initial indicator data of the virtual machine from the virtual data platform for each virtual data platform of multiple manufacturers, and then performs unified processing on the initial indicator data corresponding to all virtual data platforms to obtain the monitoring indicator data corresponding to all the initial indicator data, and further uploads the monitoring indicator data to the monitoring data service platform for monitoring. The technical solution of the present invention obtains the initial indicator data of the virtual machine from the virtual data platform of the manufacturer, and through the virtual data platform, there is no need to deploy software on the virtual machine, which saves virtual machine resources, improves monitoring flexibility, and avoids the situation where indicator data cannot be collected due to software deployment failure.
[0050] The virtual machine indicator data monitoring device provided by the present invention is described below. The virtual machine indicator data monitoring device described below and the virtual machine indicator data monitoring method described above can be referenced to each other.
[0051] Figure 2 is a schematic diagram of the structure of the virtual machine indicator data monitoring device provided by the present invention, such as Figure 2 As shown, the virtual machine indicator data monitoring device 200 includes the following modules: The acquisition module 210 is used to acquire initial indicator data of the virtual machine from the virtual data platform of each of the multiple vendors; the virtual data platform is used to collect the initial indicator data of the virtual machine; the initial indicator data includes initial processor data, initial memory data, initial disk data, initial node data, initial load, initial transmission control protocol connection number and initial bandwidth corresponding to the virtual machine; A unification module 220 is used to perform unified processing on the initial indicator data corresponding to all the virtual data platforms to obtain monitoring indicator data corresponding to all the initial indicator data; The monitoring module 230 is used to upload the monitoring indicator data to the monitoring data service platform for monitoring.
[0052] In one embodiment, the acquisition module 210 is specifically used for: Send a data transmission request to the virtual data platform through an application programming interface; and receive initial indicator data of the virtual machine sent by the virtual data platform.
[0053] The data transmission request is used to instruct the virtual data platform to send initial indicator data of the virtual machine.
[0054] In one embodiment, the unification module 220 is specifically used for: For each of the initial indicator data, the initial indicator data is unified according to a preset template to obtain unified indicator data corresponding to the initial indicator data; Based on all the unified indicator data, the monitoring indicator data corresponding to the initial indicator data is determined.
[0055] In one embodiment, the unification module 220 is further configured to: Parsing the initial indicator data based on the tool library to obtain parsed data; The parsed data is processed in a unified manner according to the preset template to obtain the unified indicator data.
[0056] In one embodiment, the unification module 220 is further configured to: According to the data name template, data precision template and data format template in the preset template, the data name, data precision and data format corresponding to the analyzed data are respectively unified to obtain the unified indicator data.
[0057] In one embodiment, the monitoring module 230 is specifically used to: The monitoring processor data, monitoring memory data, monitoring disk data, monitoring node data, monitoring load, monitoring transmission control protocol connection number and monitoring bandwidth in the monitoring indicator data are uploaded to the monitoring data service platform for monitoring.
[0058] In one embodiment, the virtual machine indicator data monitoring device further includes a storage visualization module, which is specifically used to: A storage visual instruction is sent to the monitoring data service platform, wherein the storage visual instruction is used to instruct the monitoring data service platform to store and visualize the monitoring indicator data.
[0059] The virtual machine indicator data monitoring device provided by the present invention obtains the initial indicator data of the virtual machine from the virtual data platform for each virtual data platform of multiple manufacturers, and then performs unified processing on the initial indicator data corresponding to all virtual data platforms to obtain the monitoring indicator data corresponding to all the initial indicator data, and further uploads the monitoring indicator data to the monitoring data service platform for monitoring. The technical solution of the present invention obtains the initial indicator data of the virtual machine from the virtual data platform of the manufacturer, and through the virtual data platform, there is no need to deploy software on the virtual machine, which saves virtual machine resources, improves monitoring flexibility, and avoids the situation where indicator data cannot be collected due to software deployment failure.
[0060] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communications interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the virtual machine indicator data monitoring method, which includes: For virtual data platforms of multiple manufacturers, initial indicator data of virtual machines are obtained from the virtual data platforms; the virtual data platforms are used to collect the initial indicator data of the virtual machines; the initial indicator data include initial processor data, initial memory data, initial disk data, initial node data, initial load, initial transmission control protocol connection number and initial bandwidth corresponding to the virtual machines; Performing unified processing on the initial indicator data corresponding to all the virtual data platforms to obtain monitoring indicator data corresponding to all the initial indicator data; The monitoring indicator data is uploaded to the monitoring data service platform for monitoring.
[0061] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0062] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the virtual machine indicator data monitoring method provided by the above methods, the method includes: For virtual data platforms of multiple manufacturers, initial indicator data of virtual machines are obtained from the virtual data platforms; the virtual data platforms are used to collect the initial indicator data of the virtual machines; the initial indicator data include initial processor data, initial memory data, initial disk data, initial node data, initial load, initial transmission control protocol connection number and initial bandwidth corresponding to the virtual machines; Performing unified processing on the initial indicator data corresponding to all the virtual data platforms to obtain monitoring indicator data corresponding to all the initial indicator data; The monitoring indicator data is uploaded to the monitoring data service platform for monitoring.
[0063] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for monitoring virtual machine indicator data provided by the above methods is implemented, and the method includes: For virtual data platforms of multiple manufacturers, initial indicator data of virtual machines are obtained from the virtual data platforms; the virtual data platforms are used to collect the initial indicator data of the virtual machines; the initial indicator data include initial processor data, initial memory data, initial disk data, initial node data, initial load, initial transmission control protocol connection number and initial bandwidth corresponding to the virtual machines; Performing unified processing on the initial indicator data corresponding to all the virtual data platforms to obtain monitoring indicator data corresponding to all the initial indicator data; The monitoring indicator data is uploaded to the monitoring data service platform for monitoring.
[0064] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0065] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0066] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for monitoring virtual machine indicator data, characterized in that: include: For virtual data platforms of multiple manufacturers, initial indicator data of virtual machines are obtained from the virtual data platforms; the virtual data platforms are used to collect the initial indicator data of the virtual machines; the initial indicator data include initial processor data, initial memory data, initial disk data, initial node data, initial load, initial transmission control protocol connection number and initial bandwidth corresponding to the virtual machines; Performing unified processing on the initial indicator data corresponding to all the virtual data platforms to obtain monitoring indicator data corresponding to all the initial indicator data; The monitoring indicator data is uploaded to the monitoring data service platform for monitoring.
2. The method for monitoring virtual machine indicator data according to claim 1, characterized in that: The obtaining of initial indicator data of the virtual machine from the virtual data platform includes: Sending a data transmission request to the virtual data platform through an application programming interface; receiving initial indicator data of the virtual machine sent by the virtual data platform; The data transmission request is used to instruct the virtual data platform to send initial indicator data of the virtual machine.
3. The method for monitoring virtual machine indicator data according to claim 1, characterized in that: The unified processing of the initial indicator data corresponding to all the virtual data platforms to obtain the monitoring indicator data corresponding to all the initial indicator data includes: For each of the initial indicator data, the initial indicator data is unified according to a preset template to obtain unified indicator data corresponding to the initial indicator data; Based on all the unified indicator data, the monitoring indicator data corresponding to the initial indicator data is determined.
4. The method for monitoring virtual machine indicator data according to claim 3, characterized in that: The unifying the initial indicator data according to the preset template to obtain unified indicator data corresponding to the initial indicator data includes: Parsing the initial indicator data based on the tool library to obtain parsed data; The parsed data is processed in a unified manner according to the preset template to obtain the unified indicator data.
5. The method for monitoring virtual machine indicator data according to claim 4, characterized in that: The step of performing unified processing on the parsed data according to the preset template to obtain the unified indicator data includes: According to the data name template, data precision template and data format template in the preset template, the data name, data precision and data format corresponding to the analyzed data are respectively unified to obtain the unified indicator data.
6. The method for monitoring virtual machine indicator data according to any one of claims 1 to 5, characterized in that: The uploading of the monitoring indicator data to the monitoring data service platform for monitoring includes: The monitoring processor data, monitoring memory data, monitoring disk data, monitoring node data, monitoring load, monitoring transmission control protocol connection number and monitoring bandwidth in the monitoring indicator data are uploaded to the monitoring data service platform for monitoring.
7. The method for monitoring virtual machine indicator data according to claim 6, characterized in that: The method further comprises: A storage visual instruction is sent to the monitoring data service platform, wherein the storage visual instruction is used to instruct the monitoring data service platform to store and visualize the monitoring indicator data.
8. A virtual machine indicator data monitoring device, characterized in that: include: An acquisition module is used to acquire initial indicator data of a virtual machine from a virtual data platform of each of multiple manufacturers; the virtual data platform is used to collect the initial indicator data of the virtual machine; the initial indicator data includes initial processor data, initial memory data, initial disk data, initial node data, initial load, initial transmission control protocol connection number and initial bandwidth corresponding to the virtual machine; A unification module, used for performing unified processing on the initial indicator data corresponding to all the virtual data platforms to obtain monitoring indicator data corresponding to all the initial indicator data; The monitoring module is used to upload the monitoring indicator data to the monitoring data service platform for monitoring.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for monitoring virtual machine indicator data as described in any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for monitoring virtual machine indicator data as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Report generation method and generation device
CN103399844A
Host machine-based virtual machine performance monitoring method
CN105243008A
Method and device for monitoring physical machine hardware
CN108614759A
Virtual machine monitoring data acquisition method and device, and host machine
CN111625319A
Unified monitoring method and system for physical machine and virtual machine and electronic device
CN112383502A
Cited By
Virtual index data processing method and system
CN120198032A