Virtual machine index data monitoring method, device, equipment and medium

By obtaining the initial indicator data of virtual machines from the virtual data platform and performing unified processing, the problems of virtual machine monitoring resource consumption and deployment failure are solved, and an efficient monitoring method is implemented.

CN119557052BActive Publication Date: 2025-10-10BEIJING PACTERA JINXIN TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411709211.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-10-10
Estimated Expiration
2044-11-26

AI Technical Summary

Technical Problem

In the prior art, virtual machine monitoring methods require software to be installed on the virtual machine, which increases resource consumption and has the risk of software deployment failure, resulting in low flexibility.

Method used

By obtaining the initial indicator data of the virtual machine from the manufacturer's virtual data platform, using the application programming interface for data transmission, and unifying the initial indicator data, the monitoring indicator data is finally uploaded to the monitoring data service platform for monitoring.

Benefits of technology

There is no need to deploy software on virtual machines, which saves resources, improves monitoring flexibility, and avoids the situation where indicator data cannot be collected due to software deployment failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119557052B_ABST
    Figure CN119557052B_ABST
Patent Text Reader

Abstract

The application provides a virtual machine index data monitoring method, device and equipment and medium, and relates to the technical field of computers.The method comprises the following steps: obtaining initial index data of a virtual machine from a virtual data platform of each manufacturer; the virtual data platform is used for collecting the initial index data of the virtual machine; uniformly processing the initial index data corresponding to all virtual data platforms to obtain monitoring index data corresponding to all initial index data; and uploading the monitoring index data to a monitoring data service platform for monitoring.The technical scheme of the application obtains the initial index data of the virtual machine from the virtual data platform of the manufacturer, does not need to arrange software on the virtual machine, saves virtual machine resources, improves monitoring flexibility, and avoids the situation that index data cannot be collected due to software deployment failure.
Need to check novelty before this filing date? Find Prior Art

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 existing technology, 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 installing software on virtual machines, which increases the resource consumption of virtual machines and may cause software deployment failures due to the security policies of virtual machines. At the same time, reliance on software provided by manufacturers also has a negative impact on monitoring flexibility. Summary of the Invention

[0005] The present invention provides a method, device, equipment and medium for monitoring virtual machine indicator data, which is 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 may cause software deployment failure. The technical solution of the present invention obtains the initial indicator data of the virtual machine from the manufacturer's virtual data platform, eliminates the 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 each virtual data platform of multiple manufacturers, initial indicator data of the virtual machine is obtained from the virtual data platform; 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;

[0008] 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;

[0009] The monitoring indicator data is uploaded to the monitoring data service platform for monitoring.

[0010] According to a virtual machine indicator data monitoring method provided by the present invention, obtaining initial indicator data of the virtual machine from the virtual data platform includes:

[0011] A data transmission request is sent to the virtual data platform through an application programming interface; and initial indicator data of the virtual machine sent by the virtual data platform is received.

[0012] The data transmission request is used to instruct the virtual data platform to send initial indicator data of the virtual machine.

[0013] 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:

[0014] For each of the initial indicator data, performing unified processing on the initial indicator data according to a preset template to obtain unified indicator data corresponding to the initial indicator data;

[0015] Based on all the unified indicator data, the monitoring indicator data corresponding to the initial indicator data is determined.

[0016] 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:

[0017] Analyze the initial indicator data based on the tool library to obtain analyzed data;

[0018] The parsed data is uniformly processed according to the preset template to obtain the unified indicator data.

[0019] According to a virtual machine indicator data monitoring method provided by the present invention, the unified processing of the parsed data according to the preset template to obtain the unified indicator data includes:

[0020] The data name, data precision and data format corresponding to the parsed data are respectively unified according to the data name template, data precision template and data format template in the preset template to obtain the unified indicator data.

[0021] According to a method for monitoring virtual machine indicator data provided by the present invention, the method further includes:

[0022] A storage visual instruction is sent to the monitoring data service platform, where the storage visual instruction is used to instruct the monitoring data service platform to store and visualize the monitoring indicator data.

[0023] The present invention also provides a virtual machine indicator data monitoring device, comprising the following modules:

[0024] an acquisition module, configured to acquire initial indicator data of a virtual machine from a virtual data platform of each of multiple vendors; the virtual data platform is configured 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 number of transmission control protocol connections, and initial bandwidth corresponding to the virtual machine;

[0025] A unification module, configured 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;

[0026] The monitoring module is used to upload the monitoring indicator data to the monitoring data service platform for monitoring.

[0027] 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.

[0028] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described methods for monitoring virtual machine indicator data.

[0029] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned methods for monitoring virtual machine indicator data.

[0030] The virtual machine indicator data monitoring method, apparatus, device, and medium provided by the present invention obtain initial indicator data for virtual machines from the virtual data platforms of multiple manufacturers, then unify the initial indicator data corresponding to all virtual data platforms to obtain monitoring indicator data corresponding to all initial indicator data, and further upload the monitoring indicator data to a monitoring data service platform for monitoring. The technical solution of the present invention obtains initial indicator data for virtual machines from the manufacturer's virtual data platform. 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

[0031] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to 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 any creative work.

[0032] Figure 1 It is a flow chart of the virtual machine indicator data monitoring method provided by the present invention.

[0033] Figure 2 It is a structural diagram of the virtual machine indicator data monitoring device provided by the present invention.

[0034] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0035] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0036] In response to the above-mentioned 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 embodiments of the present invention are 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 This 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:

[0037] Step 110: For virtual data platforms of multiple manufacturers, obtain initial indicator data of the virtual machine from the virtual data platform; 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.

[0038] Specifically, multiple vendors each have their own virtual data platform, each of which is connected to multiple virtual machines. The virtual data platform can collect initial metric data for the corresponding virtual machines. For each of the vendors' virtual data platforms, initial metric data for the virtual machines can be obtained from the virtual data platform. This initial metric data includes initial processor data, initial memory data, initial disk data, initial node data, initial load, initial number of Transmission Control Protocol connections, and initial bandwidth for the virtual machines. The initial processor can be, for example, a central processing unit (CPU). Initial processor data can include CPU utilization, which refers to the CPU workload when running programs and is typically expressed as a percentage. Initial memory data can include memory utilization, which indicates the percentage of memory used. Initial disk data can include disk utilization, disk read / write speed, and disk read / write counts. Disk utilization refers to the percentage of disk usage and is typically expressed as a percentage. Disk read / write speed represents the data transfer rate and can be measured in kilobits per second (kb / s). Disk read / write counts represent the number of disk input and output operations per second. Initial node data may include inode usage, which represents the ratio of used inodes to the total number of inodes. Initial load represents the load on the virtual machine. Initial TCP connections represent the maximum number of TCP connections that can be established simultaneously on the virtual machine. Initial bandwidth may be, for example, the intranet bandwidth.

[0039] In one embodiment, obtaining initial indicator data of the virtual machine from the virtual data platform includes:

[0040] A data transmission request is sent to the virtual data platform through an application programming interface; and initial indicator data of the virtual machine sent by the virtual data platform is received.

[0041] The data transmission request is used to instruct the virtual data platform to send initial indicator data of the virtual machine.

[0042] Specifically, the data transmission request can be sent to the virtual data platform through an application programming interface (API), which can be an HTTP request sent through an OKHttpClient (an open-source Hypertext Transfer Protocol (HTTP) client library) or other formats of data transmission requests, which are not limited in the embodiments of the present application. 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 application. 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.

[0043] In the above embodiment, the 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, so that the initial indicator data of the virtual machine can be obtained without installing software on the virtual machine.

[0044] Step 120: uniformly processing all the initial indicator data corresponding to the virtual data platforms to obtain monitoring indicator data corresponding to all the initial indicator data.

[0045] Specifically, the initial indicator data corresponding to all the virtual data platforms can be uniformly processed to obtain monitoring indicator data corresponding to all the initial indicator data. Since the initial indicator data of each manufacturer is different, uniform processing of the initial indicator data can improve the efficiency of subsequent data integration and analysis.

[0046] In one embodiment, the uniform processing of all the initial indicator data corresponding to the virtual data platforms to obtain monitoring indicator data corresponding to all the initial indicator data comprises:

[0047] For each initial indicator data, the initial indicator data is uniformly processed according to a preset template to obtain uniform indicator data corresponding to the initial indicator data;

[0048] Based on all the uniform indicator data, the monitoring indicator data corresponding to the initial indicator data is determined.

[0049] 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 does not make specific limitations here. Furthermore, 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.

[0050] In the above embodiment, for each 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, and the monitoring indicator data is determined based on all the unified indicator data, so that the monitoring indicator data has been unified and integrated with the indicator data of multiple manufacturers, which facilitates data analysis.

[0051] In one embodiment, the unifying process of the initial indicator data according to a preset template to obtain unified indicator data corresponding to the initial indicator data includes:

[0052] Analyze the initial indicator data based on the tool library to obtain analyzed data;

[0053] The parsed data is uniformly processed according to the preset template to obtain the unified indicator data.

[0054] Specifically, because the initial indicator data is relatively complex, it can be parsed using a tool library to obtain parsed data, thereby simplifying the complexity of the initial indicator data. This tool library can be, for example, the hutool library (a Java tool library), and the initial indicator data can be formatted in JSON (JavaScript Object Notation), an open standard file format and data exchange format. Furthermore, after obtaining the parsed data, it can be standardized according to a preset template to obtain unified indicator data.

[0055] 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.

[0056] In one embodiment, the unifying processing of the parsed data according to the preset template to obtain the unified indicator data includes:

[0057] The data name, data precision and data format corresponding to the parsed data are respectively unified according to the data name template, data precision template and data format template in the preset template to obtain the unified indicator data.

[0058] 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 be used to uniformly 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 1000, 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 base 1000, then the data format corresponding to the parsed data can be uniformly modified to megabits per second. Furthermore, 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.

[0059] 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.

[0060] Step 130: Upload the monitoring indicator data to a monitoring data service platform for monitoring.

[0061] In one embodiment, uploading the monitoring indicator data to a monitoring data service platform for monitoring includes:

[0062] 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.

[0063] 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 the 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.

[0064] Optionally, the user can query the monitoring indicator data on the monitoring data service platform for monitoring, or determine whether the monitoring indicator data is within a preset threshold range, and issue a monitoring alarm when the monitoring indicator data is not within the preset threshold range. The embodiment of the present invention does not specifically limit the monitoring method.

[0065] 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.

[0066] In one embodiment, the virtual machine indicator data monitoring method further includes:

[0067] A storage visual instruction is sent to the monitoring data service platform, where the storage visual instruction is used to instruct the monitoring data service platform to store and visualize the monitoring indicator data.

[0068] Specifically, the monitoring indicator data can be uploaded to a monitoring data service platform. A storage visualization instruction can also be sent to the monitoring data service platform. After receiving the monitoring indicator data and the storage visualization 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 corresponding view of the monitoring indicator data to facilitate monitoring of the monitoring indicator data. The monitoring data service platform can, for example, be Prometheus (an open source monitoring and alerting tool) or another monitoring data service platform, and this is not specifically limited in the embodiments of the present invention.

[0069] In the above embodiment, the monitoring data service platform is used to store and visualize monitoring indicator data, which facilitates the monitoring of virtual machines.

[0070] The virtual machine indicator data monitoring method provided by the present invention obtains initial indicator data for virtual machines from the virtual data platforms of multiple manufacturers. It then unifies the initial indicator data corresponding to all virtual data platforms to obtain monitoring indicator data corresponding to all initial indicator data. The monitoring indicator data is then uploaded to a monitoring data service platform for monitoring. The technical solution of the present invention obtains initial indicator data for virtual machines from the manufacturer's virtual data platform. By using the virtual data platform, there is no need to deploy software on the virtual machines, thus conserving virtual machine resources, improving monitoring flexibility, and avoiding situations where indicator data cannot be collected due to software deployment failures.

[0071] 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.

[0072] Figure 2 This is a structural diagram of the virtual machine indicator data monitoring device provided by the present invention. Figure 2 As shown, the virtual machine indicator data monitoring device 200 includes the following modules:

[0073] An acquisition module 210 is configured to acquire initial indicator data of a virtual machine from a virtual data platform of each of multiple vendors; the virtual data platform is configured 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 number of transmission control protocol connections, and initial bandwidth corresponding to the virtual machine;

[0074] The unification module 220 is configured 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;

[0075] The monitoring module 230 is used to upload the monitoring indicator data to the monitoring data service platform for monitoring.

[0076] In one embodiment, the acquisition module 210 is specifically configured to:

[0077] A data transmission request is sent to the virtual data platform through an application programming interface; and initial indicator data of the virtual machine sent by the virtual data platform is received.

[0078] The data transmission request is used to instruct the virtual data platform to send initial indicator data of the virtual machine.

[0079] In one embodiment, the unification module 220 is specifically configured to:

[0080] For each of the initial indicator data, performing unified processing on the initial indicator data according to a preset template to obtain unified indicator data corresponding to the initial indicator data;

[0081] Based on all the unified indicator data, the monitoring indicator data corresponding to the initial indicator data is determined.

[0082] In one embodiment, the unification module 220 is further configured to:

[0083] Analyze the initial indicator data based on the tool library to obtain analyzed data;

[0084] The parsed data is uniformly processed according to the preset template to obtain the unified indicator data.

[0085] In one embodiment, the unification module 220 is further configured to:

[0086] The data name, data precision and data format corresponding to the parsed data are respectively unified according to the data name template, data precision template and data format template in the preset template to obtain the unified indicator data.

[0087] In one embodiment, the monitoring module 230 is specifically configured to:

[0088] 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.

[0089] In one embodiment, the virtual machine indicator data monitoring device further includes a storage visualization module, which is specifically configured to:

[0090] A storage visual instruction is sent to the monitoring data service platform, where the storage visual instruction is used to instruct the monitoring data service platform to store and visualize the monitoring indicator data.

[0091] The virtual machine indicator data monitoring device provided by the present invention obtains initial indicator data for virtual machines from the virtual data platforms of multiple manufacturers. It then unifies the initial indicator data corresponding to all virtual data platforms to obtain monitoring indicator data corresponding to all initial indicator data. The monitoring indicator data is then uploaded to a monitoring data service platform for monitoring. The technical solution of the present invention obtains initial indicator data for virtual machines from the manufacturer's virtual data platform. By using the virtual data platform, there is no need to deploy software on the virtual machines, thus conserving virtual machine resources, improving monitoring flexibility, and avoiding situations where indicator data cannot be collected due to software deployment failures.

[0092] Figure 3 An example of a physical structure diagram of an electronic device is shown below. Figure 3 As 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 via 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:

[0093] For each virtual data platform of multiple manufacturers, initial indicator data of the virtual machine is obtained from the virtual data platform; 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;

[0094] 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;

[0095] The monitoring indicator data is uploaded to the monitoring data service platform for monitoring.

[0096] Furthermore, the logic instructions in the aforementioned memory 330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product, stored in a storage medium, includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0097] In another aspect, the present invention further provides a computer program product, comprising a computer program. The computer program may be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can perform the virtual machine indicator data monitoring method provided by each of the above methods, the method comprising:

[0098] For each virtual data platform of multiple manufacturers, initial indicator data of the virtual machine is obtained from the virtual data platform; 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;

[0099] 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;

[0100] The monitoring indicator data is uploaded to the monitoring data service platform for monitoring.

[0101] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. 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:

[0102] For each virtual data platform of multiple manufacturers, initial indicator data of the virtual machine is obtained from the virtual data platform; 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;

[0103] 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;

[0104] The monitoring indicator data is uploaded to the monitoring data service platform for monitoring.

[0105] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0106] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a necessary general-purpose hardware platform, or of course, hardware. Based on this understanding, the essence of the above technical solution, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for causing a computer device (such as a personal computer, server, or network device) to execute the methods described in each embodiment or certain portions of the embodiments.

[0107] 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 various embodiments of the present invention.

Claims

1. A method for monitoring virtual machine indicator data, characterized in that: include: For each virtual data platform of multiple manufacturers, initial indicator data of the virtual machine is obtained from the virtual data platform; 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; 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; wherein the unified processing includes: parsing the initial indicator data based on a tool library to obtain parsed data; and performing unified processing on the data name, data precision, and data format corresponding to the parsed data according to a data name template, a data precision template, and a data format template in a preset template to obtain unified indicator data; The monitoring indicator data is uploaded to the monitoring data service platform for monitoring.

2. The virtual machine indicator data monitoring method 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, wherein: The unified processing of the initial indicator data corresponding to all the virtual data platforms to obtain monitoring indicator data corresponding to all the initial indicator data includes: For each of the initial indicator data, performing unified processing on the initial indicator data 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 any one of claims 1 to 3, 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.

5. The method for monitoring virtual machine indicator data according to claim 4, wherein: The method further comprises: A storage visual instruction is sent to the monitoring data service platform, where the storage visual instruction is used to instruct the monitoring data service platform to store and visualize the monitoring indicator data.

6. A virtual machine indicator data monitoring device, characterized in that: include: an acquisition module, configured to acquire initial indicator data of a virtual machine from a virtual data platform of each of multiple vendors; the virtual data platform is configured 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 number of transmission control protocol connections, and initial bandwidth corresponding to the virtual machine; A unification module is configured 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; wherein the unified processing includes: parsing the initial indicator data based on a tool library to obtain parsed data; and performing unified processing on the data name, data precision, and data format corresponding to the parsed data according to a data name template, a data precision template, and a data format template in a preset template to obtain unified indicator data; The monitoring module is used to upload the monitoring indicator data to the monitoring data service platform for monitoring.

7. 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 according to any one of claims 1 to 5 is implemented.

8. 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 5 is implemented.

Citation Information

Patent Citations

  • Report generation method and generation device

    CN103399844A

  • Prometheus-based virtual machine monitoring method and tool, electronic equipment and storage medium

    CN112559296A