Resource use data display method and device

By displaying the resource usage of each node, virtual machine, and physical machine of the target application in the form of a honeycomb diagram on the front-end page, the problem of unintuitive resource usage data in the existing technology is solved, and users can gain a profound understanding of resource distribution and usage. Understanding and easy location of problems.

CN118550649APending Publication Date: 2024-08-27INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410697884.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The display of resource usage data in the existing technology is not intuitive enough to meet users' needs for understanding complex digital information, and the resource distribution of each node is independent of each other, making it difficult to troubleshoot and locate problems conveniently.

Method used

By receiving the display request, the application topology link information of the target application is obtained, the containers, virtual machines and physical machines of each node are determined, the resource usage information is obtained in real time, and each node, virtual machine and physical machine are displayed in the form of a honeycomb diagram on the front-end page. Machine resource usage, supporting real-time dynamic display and early warning.

Benefits of technology

It achieves clear visualization of resource usage, helps users quickly understand resource distribution and usage, identify trends, outliers and potential problems in data, and facilitates resource management and optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The invention relates to the technical field of data visualization, and particularly discloses a resource use data display method and device.The method comprises the steps that a display request is received; in response to the display request, obtaining application topology link information of the target application; based on the application topology link information, determining a container corresponding to each node in a plurality of nodes of the target application and a virtual machine and a physical machine associated with the target application; obtaining resource use information of a container corresponding to each node in a plurality of nodes of the target application and resource use information of a virtual machine and a physical machine associated with the target application; and respectively displaying the resource use condition of the container corresponding to each node of the target application, the resource use condition of the virtual machine associated with the target application and the resource use condition of the physical machine associated with the target application on a front-end page in a cellular graph form. According to the scheme, the resource use condition associated with the target application can be visually displayed in the form of the cellular graph, and a user can conveniently understand and analyze data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data visualization technology, and in particular to a method and device for displaying resource usage data. Background Art

[0002] Currently, enterprises and other institutions use various tools and technologies to monitor and manage their resources and systems, and most of them still use charts to display data. This method has problems: first, the data display is not intuitive enough and cannot meet the user's need to understand complex digital information; second, the resource distribution of each node is displayed independently, which cannot provide convenience for users to troubleshoot and locate problems.

[0003] To address the above problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present specification provide a method and device for displaying resource usage data to solve the problem that the display of resource usage data in the prior art is not intuitive enough to meet user needs.

[0005] The embodiment of this specification provides a method for displaying resource usage data, including:

[0006] receiving a display request, wherein the display request carries an identifier of a target application;

[0007] In response to the display request, obtaining application topology link information of the target application; based on the application topology link information, determining a container corresponding to each of a plurality of nodes of the target application and a virtual machine and a physical machine associated with the target application;

[0008] Obtain resource usage information of a container corresponding to each of the multiple nodes of the target application and resource usage information of a virtual machine and a physical machine associated with the target application;

[0009] According to the resource usage information of the containers corresponding to each node and the resource usage information of the virtual machines and physical machines associated with the target application, the resource usage of the containers corresponding to each node of the target application, the resource usage of the virtual machines associated with the target application, and the resource usage of the physical machines associated with the target application are respectively displayed on the front-end page in the form of a honeycomb diagram.

[0010] In one embodiment, resource usage information of a container corresponding to each of the multiple nodes of the target application and resource usage information of a virtual machine and a physical machine associated with the target application are obtained in real time, so that the resource usage of the container corresponding to each node of the target application, the resource usage of the virtual machine associated with the target application, and the resource usage of the physical machine associated with the target application are dynamically displayed in the form of a honeycomb diagram on the front-end page.

[0011] In one embodiment, the method further comprises:

[0012] Based on the resource usage information of the containers corresponding to each node in the multiple nodes of the target application and the resource usage information of the virtual machines and physical machines associated with the target application obtained in real time, the containers, virtual machines and / or physical machines that do need to be warned are identified, and the cellular units corresponding to the containers, virtual machines and / or physical machines that need to be warned are highlighted on the front-end page.

[0013] In one embodiment, the front page at least includes: a first area, a second area and a third area; the first area includes a plurality of sub-areas, and the plurality of sub-areas correspond to the plurality of nodes one by one;

[0014] Correspondingly, according to the resource usage information of the containers corresponding to the nodes and the resource usage information of the virtual machines and physical machines associated with the target application, the resource usage of the containers corresponding to the nodes of the target application, the resource usage of the virtual machines associated with the target application, and the resource usage of the physical machines associated with the target application are respectively displayed on the front-end page in the form of a honeycomb diagram, including:

[0015] Each of the multiple sub-areas of the first area displays the resource usage of the container corresponding to each node in the form of a honeycomb diagram; the honeycomb unit in the honeycomb diagram displayed in each sub-area is used to represent the resource usage of the container of the corresponding node;

[0016] Displaying resource usage of the virtual machine associated with the target application in the form of a honeycomb diagram in the second area; the honeycomb unit displayed in the second area is used to represent the resource usage of the corresponding virtual machine;

[0017] The resource usage of the physical machine associated with the target application is displayed in the third area in the form of a honeycomb diagram; the honeycomb units displayed in the third area are used to represent the resource usage of the corresponding physical machine.

[0018] In one embodiment, the method further comprises:

[0019] receiving a first trigger operation on a target cellular unit within the first area, wherein the first trigger operation carries a target container identifier;

[0020] Determine a corresponding target virtual machine identifier and a target physical machine identifier according to the target container identifier and the application topology link information;

[0021] The resource usage of the target virtual machine corresponding to the target virtual machine identifier is displayed in the second area, and the resource usage of the physical machine corresponding to the target physical machine identifier is displayed in the third area.

[0022] In one embodiment, the front-end page further includes a node selection control;

[0023] Accordingly, the resource usage data display method further includes:

[0024] receiving a second trigger operation of the user on the node selection control, wherein the second trigger operation carries a target node identifier;

[0025] Determine, according to the target node identifier and the application topology link information, a container corresponding to the target node identifier and a virtual machine and a physical machine associated with the target node identifier;

[0026] In response to the second trigger operation, the resource usage of the container corresponding to the target node identifier, the resource usage of the virtual machine associated with the target node identifier, and the resource usage of the physical machine associated with the target node identifier are displayed in the form of a honeycomb diagram on the front-end page.

[0027] In one embodiment, the resource usage includes multiple resource usages; the front-end page also includes a resource selection control;

[0028] Accordingly, the resource usage data display method further includes:

[0029] receiving a third trigger operation of the user on the resource selection control, wherein the third trigger operation carries a target resource identifier;

[0030] In response to the third trigger operation, the target resource usage corresponding to the target resource identifier of the container corresponding to each node in the multiple nodes of the target application, the resource usage corresponding to the target resource identifier of the virtual machine associated with the target application, and the resource usage corresponding to the target resource identifier of the physical machine associated with the target application are displayed on the front-end page in the form of a honeycomb diagram.

[0031] The embodiment of this specification also provides a resource usage data display device, including:

[0032] A receiving module, configured to receive a display request, wherein the display request carries an identifier of a target application;

[0033] A determination module, configured to obtain application topology link information of the target application in response to the display request; and further configured to determine, based on the application topology link information, a container corresponding to each of a plurality of nodes of the target application and a virtual machine and a physical machine associated with the target application;

[0034] An acquisition module, used to acquire resource usage information of a container corresponding to each of a plurality of nodes of the target application and resource usage information of a virtual machine and a physical machine associated with the target application;

[0035] A display module is used to display the resource usage of the containers corresponding to each node of the target application, the resource usage of the virtual machines associated with the target application, and the resource usage of the physical machines associated with the target application in the form of a honeycomb diagram on the front-end page according to the resource usage information of the containers corresponding to each node and the resource usage information of the virtual machines and physical machines associated with the target application.

[0036] An embodiment of the present specification also provides a computer device, including a processor and a memory for storing processor-executable instructions, wherein when the processor executes the instructions, the steps of the resource usage data display method described in any of the above embodiments are implemented.

[0037] The embodiments of the present specification also provide a computer-readable storage medium on which computer instructions are stored. When the instructions are executed, the steps of the resource usage data display method described in any of the above embodiments are implemented.

[0038] The embodiments of the present specification also provide a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the resource usage data display method described in any of the above embodiments.

[0039] In an embodiment of the present specification, a resource usage data display method is provided, and a client may receive a display request, wherein the display request carries an identifier of a target application. In response to the display request, the client may obtain application topology link information of the target application from a server or a database. The application topology link information may include node information of multiple nodes of the target application and information on how the nodes of the target application are connected and interacted. Through the application topology link information, the dependency relationship and communication path between the nodes of the target application may be determined. The node information of multiple nodes may include multiple node identifiers and container identifiers of multiple containers corresponding to each of the multiple nodes. Through the container identifiers of the multiple containers, the virtual machine identifier and the physical machine identifier corresponding to the container identifier of each of the multiple containers may be determined, so that the virtual machine and the physical machine associated with the target application may be determined. Afterwards, the client may obtain the resource usage information of the container corresponding to each of the multiple nodes of the target application and the resource usage information of the virtual machine and the physical machine associated with the target application. Afterwards, the client can display the resource usage of the containers corresponding to each node of the target application, the resource usage of the virtual machines associated with the target application, and the resource usage of the physical machines associated with the target application in the form of a honeycomb diagram on the front-end page, based on the resource usage information of the containers corresponding to each node and the resource usage information of the virtual machines and physical machines associated with the target application. Through the above scheme, the resource usage of the containers corresponding to each of the multiple nodes of the target application can be displayed on the front-end page, and the resource usage of the virtual machines and physical machines associated with the target application can also be displayed, so that users can quickly understand the distribution and usage of resources, and better identify trends, outliers and potential problems in the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The drawings described herein are used to provide a further understanding of this specification, constitute a part of this specification, and do not constitute a limitation of this specification. In the drawings:

[0041] Figure 1 A schematic diagram showing an application scenario of a method for displaying resource usage data in an embodiment of this specification;

[0042] Figure 2 A flow chart showing a method for displaying resource usage data in an embodiment of this specification is shown;

[0043] Figure 3 A schematic diagram showing a front-end page displayed by a resource usage data display method in an embodiment of this specification;

[0044] Figure 4 A schematic diagram showing a front-end page displayed by a resource usage data display method in an embodiment of this specification;

[0045] Figure 5 A schematic diagram showing a front-end page displayed by a resource usage data display method in an embodiment of this specification;

[0046] Figure 6 A schematic diagram showing a resource usage data display device in an embodiment of this specification is shown;

[0047] Figure 7 A schematic diagram of a computer device in an embodiment of the present specification is shown. DETAILED DESCRIPTION

[0048] The principles and spirit of this specification will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement this specification, and are not intended to limit the scope of this specification in any way. On the contrary, these embodiments are provided to make this specification more thorough and complete, and to fully convey the scope of this disclosure to those skilled in the art.

[0049] Those skilled in the art will appreciate that the embodiments of this specification may be implemented as a system, device, method, or computer program product. Therefore, this specification may be implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0050] The embodiments of this specification provide a method for displaying resource usage data. Figure 1 A schematic diagram showing an application scenario of a resource usage data display method in an embodiment of this specification is shown. In an example scenario, Figure 1As shown, the client can receive a display request, and the display request carries the identifier of the target application. In response to the display request, the client can obtain the application topology link information of the target application from the server or database. The application topology link information may include node information of multiple nodes (i.e., internal components) of the target application and information on how the nodes of the target application are connected and interacted. Through the application topology link information, the dependencies and communication paths between the various parts of the target application (such as services, microservices, databases, message queues, etc.) can be determined. Through the application topology link information of the target application, the overall architecture and implementation of the target application and the association between each node can be understood. The node information may include a node identifier and a container identifier of multiple containers corresponding to the node. Through the container identifiers of multiple containers, the virtual machine identifier and the physical machine identifier corresponding to the container identifier of each container in the multiple containers can be determined, so that the virtual machine and physical machine associated with the target application can be determined. Afterwards, the client can obtain the resource usage information of the container corresponding to each node in the multiple nodes of the target application and the resource usage information of the virtual machine and physical machine associated with the target application. Afterwards, the client can display the resource usage of the containers corresponding to each node of the target application, the resource usage of the virtual machines associated with the target application, and the resource usage of the physical machines associated with the target application in the form of a honeycomb diagram on the front-end page based on the resource usage information of the containers corresponding to each node and the resource usage information of the virtual machines and physical machines associated with the target application.

[0051] The server may be a single server, a server cluster, or a cloud server, etc., and the specific composition is not limited in this application. The client may be a desktop computer, a notebook, a mobile terminal, a PDA, etc., as long as it can display content to users or business personnel and receive operation instructions. The client presentation is not limited in this application.

[0052] Figure 2 A flow chart of a resource usage data display method in an embodiment of this specification is shown. Although this specification provides method operation steps or device structures as shown in the following embodiments or drawings, more or fewer operation steps or module units may be included in the method or device based on routine or no creative labor. In steps or structures that do not logically have a necessary causal relationship, the execution order of these steps or the module structure of the device is not limited to the execution order or module structure described in the embodiments of this specification and shown in the drawings. When the method or module structure described is applied to an actual device or terminal product, it can be connected according to the method or module structure shown in the embodiments or drawings for sequential execution or parallel execution (for example, a parallel processor or a multi-threaded processing environment, or even a distributed processing environment).

[0053] Specifically, if Figure 2 As shown, a resource usage data display method provided by an embodiment of this specification may include the following steps.

[0054] Step S201: receiving a display request, wherein the display request carries an identifier of a target application.

[0055] Step S202, in response to the display request, obtaining application topology link information of the target application; based on the application topology link information, determining a container corresponding to each node in a plurality of nodes of the target application and a virtual machine and a physical machine associated with the target application.

[0056] The method in this embodiment can be applied to a client. The client can receive a display request. In one embodiment, the display request can be triggered by a user on the client. The display request can carry an identifier of a target application. The identifier of the target application can be used to uniquely identify the target application. In response to the display request, the client can obtain application topology link information of the target application. In one embodiment, the application topology link information of the target application can be stored locally on the client. In other embodiments, the application topology link information of the target application can be stored in a server or a database.

[0057] The application topology link information may include node information of multiple nodes of the target application and information on how the nodes of the target application are connected and interacted with each other. Through the application topology link information, the dependencies and communication paths between the nodes of the target application can be determined. Through the application topology link information of the target application, the overall architecture and implementation of the target application, as well as the association between each node, can be understood. The node information may include a node identifier and container identifiers of multiple containers corresponding to the node. Through the container identifiers of multiple containers, the virtual machine identifier and physical machine identifier corresponding to the container identifier of each container in the multiple containers can be determined, so that the virtual machine and physical machine associated with the target application can be determined.

[0058] Step S203, obtaining resource usage information of a container corresponding to each node among the multiple nodes of the target application and resource usage information of a virtual machine and a physical machine associated with the target application.

[0059] Step S204, based on the resource usage information of the containers corresponding to the nodes and the resource usage information of the virtual machines and physical machines associated with the target application, the resource usage of the containers corresponding to the nodes of the target application, the resource usage of the virtual machines associated with the target application, and the resource usage of the physical machines associated with the target application are respectively displayed on the front-end page in the form of a honeycomb diagram.

[0060] After determining the container corresponding to each of the multiple nodes of the target application, the virtual machine and the physical machine associated with the target application, the client can obtain resource usage information of the container corresponding to each of the multiple nodes of the target application, and the resource usage information of the virtual machine and the physical machine associated with the target application. The resource usage information may include at least one of the following: CPU usage, memory usage, disk space usage, network traffic, etc.

[0061] Afterwards, the client can display the resource usage of the containers corresponding to each node of the target application, the resource usage of the virtual machines associated with the target application, and the resource usage of the physical machines associated with the target application in the form of a honeycomb diagram on the front-end page, based on the resource usage information of the containers corresponding to each node and the resource usage information of the virtual machines and physical machines associated with the target application. In one embodiment, the honeycomb diagram may include at least one honeycomb unit. A honeycomb unit is used to represent a container, a virtual machine, or a physical machine. In one embodiment, resource usage can be represented by the color depth, color type, fill pattern, fill size, etc. of the honeycomb unit.

[0062] In the above embodiment, the resource usage of the containers corresponding to each of the multiple nodes of the target application can be displayed on the front-end page, and the resource usage of the virtual machines and physical machines associated with the target application can also be displayed, so that users can quickly understand the distribution and usage of resources, and help users better identify trends, outliers and potential problems in the data.

[0063] In some embodiments of the present specification, the resource usage information of the container corresponding to each of the multiple nodes of the target application and the resource usage information of the virtual machines and physical machines associated with the target application are obtained in real time, so as to dynamically display the resource usage of the container corresponding to each node of the target application, the resource usage of the virtual machine associated with the target application, and the resource usage of the physical machine associated with the target application in the form of a honeycomb diagram on the front-end page. In this embodiment, the resource usage information of the container of each node of the target application and the resource usage information of the virtual machines and physical machines associated with the target application can be obtained in real time, so that the resource usage of the container corresponding to each node of the target application and the resource usage information of the associated virtual machines and physical machines can be dynamically displayed, so that users can easily and in real time identify trends, outliers and potential problems in the data.

[0064] In some embodiments of the present specification, the method may further include: according to the resource usage information of the container corresponding to each node in the multiple nodes of the target application obtained in real time and the resource usage information of the virtual machine and physical machine associated with the target application, the container, virtual machine and / or physical machine that really needs to be warned, and the cellular unit corresponding to the container, virtual machine and / or physical machine that needs to be warned for resource usage is highlighted on the front-end page. In this embodiment, after the resource usage information of the container of each node of the target application and the resource usage information of the virtual machine and physical machine associated with the target application are obtained in real time, the change trend of the resource usage of the container, virtual machine and / or physical machine can be determined according to the resource usage information obtained in real time, and it is determined whether it is necessary to warn the user. In an exemplary embodiment, when the CPU usage rate of the container continues to rise and exceeds the preset CPU usage rate, it can be determined that the container needs to be warned, and the cellular unit corresponding to the container can be highlighted. In one embodiment, highlighting the cellular unit can be bolding the border of the cellular unit. In another embodiment, highlighting the cellular unit can be highlighting the cellular unit. In another embodiment, highlighting the cellular unit can be flashing the cellular unit. Through the above method, the containers, virtual machines and / or physical machines that need to be warned can be determined according to the resource usage, and warnings can be issued, so that users can reallocate resources in time to improve resource utilization.

[0065] In some embodiments of the present specification, the front-end page may include at least: a first area, a second area, and a third area; the first area may include multiple sub-areas, and the multiple sub-areas correspond to the multiple nodes one by one; accordingly, according to the resource usage information of the containers corresponding to the nodes and the resource usage information of the virtual machines and physical machines associated with the target application, the resource usage of the containers corresponding to the nodes of the target application, the resource usage of the virtual machines associated with the target application, and the resource usage of the physical machines associated with the target application are displayed in the form of a honeycomb diagram on the front-end page, which may include: in each of the multiple sub-areas of the first area, the resource usage of the containers corresponding to the nodes is displayed in the form of a honeycomb diagram; the honeycomb cells in the honeycomb diagram displayed in each sub-area are used to represent the resource usage of the containers of the corresponding nodes; in the second area, the resource usage of the virtual machines associated with the target application is displayed in the form of a honeycomb diagram; the honeycomb cells displayed in the second area are used to represent the resource usage of the corresponding virtual machines; in the third area, the resource usage of the physical machines associated with the target application is displayed in the form of a honeycomb diagram; the honeycomb cells displayed in the third area are used to represent the resource usage of the corresponding physical machines.

[0066] Please refer to Figure 3 , which shows a schematic diagram of the front-end page in the embodiment of this specification. Figure 3 As shown, the front-end page may include a first area, a second area, and a third area. The first area may include multiple sub-areas. The multiple sub-areas may correspond one-to-one to multiple nodes of the target application. The resource usage of the containers of the corresponding nodes may be displayed in the multiple sub-areas. The honeycomb units displayed in the sub-areas may be used to represent the resource usage of the containers, and one honeycomb unit corresponds to one container. The resource usage of the virtual machine associated with the target application may be displayed in the second area, and one honeycomb unit corresponds to one virtual machine. The resource usage of the physical machine associated with the target application may be displayed in the third area, and one honeycomb unit corresponds to one physical machine. As shown Figure 3 As shown, the resource usage rate can be represented by the grayscale of the filling color of the honeycomb unit. In this way, the resource usage of containers of different nodes can be displayed in different areas, and the resource usage of virtual machines and physical machines associated with the target application can also be displayed in different areas, so that users can quickly understand the distribution of resources.

[0067] In some embodiments of the present specification, the method may also include: receiving a first trigger operation on a target cellular unit within the first area, the first trigger operation carrying a target container identifier; determining a corresponding target virtual machine identifier and a target physical machine identifier based on the target container identifier and the application topology link information; displaying resource usage of the target virtual machine corresponding to the target virtual machine identifier in the second area, and displaying resource usage of the physical machine corresponding to the target physical machine identifier in the third area.

[0068] Please refer to Figure 4 , which shows a schematic diagram of the front-end page in the embodiment of this specification. Figure 4 As shown, the client can receive a first trigger operation of the user on the target cellular unit in the first area. The first trigger operation can be an operation such as a touch, a single click, a right click or a double click of the user on the target cellular unit. Figure 4The outline of the selected cellular unit is displayed in bold. The first trigger operation may include a target container identifier corresponding to the target cellular unit. Afterwards, the corresponding target virtual machine identifier and target physical machine identifier may be determined based on the target container identifier and the application topology link information. After receiving the first trigger operation of the user on the target cellular unit in the first area, the resource usage of the target virtual machine corresponding to the target virtual machine identifier may be displayed in the second area, and the resource usage of the physical machine corresponding to the target physical machine identifier may be displayed in the third area. In this embodiment, after the user selects the cellular unit of the container in the first area, the second area and the third area may be displayed in linkage, so that the user can fully understand the resource usage of the container, the virtual machine, and the physical machine at the same time.

[0069] In some embodiments of the present specification, the front-end page may further include a node selection control; accordingly, the resource usage data display method may further include: receiving a second trigger operation of the user on the node selection control, the second trigger operation carrying a target node identifier; determining, based on the target node identifier and the application topology link information, a container corresponding to the target node identifier and a virtual machine and a physical machine associated with the target node identifier; in response to the second trigger operation, displaying the resource usage of the container corresponding to the target node identifier, the resource usage of the virtual machine associated with the target node identifier, and the resource usage of the physical machine associated with the target node identifier in the form of a honeycomb diagram on the front-end page.

[0070] Please refer to Figure 5 , which shows a schematic diagram of the front-end page in the embodiment of this specification. Figure 5 As shown, in this embodiment, the front-end page may also include a node selection control. The node selection control can be used to select the node of the target application. In one embodiment, the node selection control can be a drop-down option, which can be used to select the node of the target application by selecting the node in the drop-down option. Among them, the second trigger operation can be an operation such as a user touching, clicking, right-clicking or double-clicking the node selection control. The second trigger operation may include a target node identifier. After receiving the second trigger operation, the client can respond to the second trigger operation and display the resource usage of the container corresponding to the target node identifier, the resource usage of the virtual machine associated with the target node identifier, and the resource usage of the physical machine associated with the target node identifier in the form of a honeycomb diagram on the front-end page. In this way, the resource usage of the container, virtual machine and physical machine corresponding to the specified node of the target application can be displayed according to user needs.

[0071] In some embodiments of the present specification, the resource usage may include multiple resource usages; the front-end page may also include a resource selection control; accordingly, the resource usage data display method may also include: receiving a third trigger operation of the user on the resource selection control, the third trigger operation carrying a target resource identifier; in response to the third trigger operation, displaying on the front-end page in the form of a honeycomb diagram the target resource usage corresponding to the target resource identifier of the container corresponding to each node in the multiple nodes of the target application, the resource usage corresponding to the target resource identifier of the virtual machine associated with the target application, and the resource usage corresponding to the target resource identifier of the physical machine associated with the target application.

[0072] like Figures 3 to 5 As shown, the front-end page may also include a resource selection control. The resource selection control may be used to select a category of resource usage data. In one embodiment, the resource selection control may be a drop-down option, which is used to select a resource usage data category by selecting a resource usage data category in the drop-down option. Among them, the third trigger operation may be an operation such as a user touching, clicking, right-clicking or double-clicking the resource selection control. The third trigger operation may include a target resource identifier. After receiving the third trigger operation, the client may respond to the third trigger operation and display the target resource usage corresponding to the target resource identifier of the container corresponding to each node in the multiple nodes of the target application, the resource usage corresponding to the target resource identifier of the virtual machine associated with the target application, and the resource usage corresponding to the target resource identifier of the physical machine associated with the target application in the form of a honeycomb diagram on the front-end page. In the above manner, the resource usage of the container, virtual machine and physical machine corresponding to the specified resource usage data category of the target application can be displayed according to user needs.

[0073] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For details, please refer to the description of the above-mentioned related processing related embodiments, and no further description is given here.

[0074] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0075] The above method is described below in conjunction with a specific embodiment. However, it should be noted that the specific embodiment is only for better illustrating the present specification and does not constitute an improper limitation on the present specification.

[0076] The embodiments of this specification provide a method for displaying resource usage data, which provides clear visualization of resource distribution, helps users better understand the overall status of the project, and allows users to filter data according to their needs. In this way, users can focus more on the data they are interested in, so as to perform analysis more effectively.

[0077] First, the embodiment of this specification obtains application topology link information through a graph database and summarizes the link data of each node. For example, the graph database can be used to sort out the connection between the container corresponding to template A and the relevant host machine and physical machine. Once an abnormality occurs in a node, the problem can be sorted out and located promptly and quickly based on the link information. The node link information under specified conditions can be obtained through graph database query statements, etc.

[0078] Secondly, the embodiment of this specification combines the usage of each node resource obtained by Prometheus monitoring to form a visual panel to intuitively display the complex resource distribution in a concise and intuitive way. The CPU usage, memory usage, disk space, network traffic and other data of each node are displayed in the form of a visual panel. Among them, the node information obtained in the graph database query is used as one of the parameters, and the resource usage of each node can be obtained by combining Prometheus formulas.

[0079] Then, the present invention integrates the application topology link information with the resource usage of each node, for example, by querying all container and host data under node A through the graph database, and then organizing them into relevant PromQL query statements, and then obtaining detailed resource usage of containers and hosts, and then clearly displaying the resource distribution in the form of a honeycomb diagram, and configuring relevant sub-panels to display detailed node information. The honeycomb diagram display effect is achieved by creating each honeycomb unit, and then setting their size, position and color.

[0080] Finally, the embodiments of this specification also provide the function that the user front-end customizes different colors to clearly show the quantity, type, and relationship of resources, so that users can more easily understand and analyze data. For example, the embodiments of this specification allow users to filter node resource usage in different dimensions such as CPU usage, memory usage, disk space, and network traffic; it also supports users to customize different colors to clearly show the quantity, type, and relationship of resources, so that users can more easily understand and analyze data.

[0081] The embodiments of this specification are based on the link topology information obtained by the graph database and the usage of each node resource obtained by Prometheus monitoring, combined with the visualization panel formed by the honeycomb graph, so that users can quickly understand the distribution of resources and allow users to filter data according to their needs, so as to better identify trends, outliers and potential problems in the data.

[0082] Based on the same inventive concept, a resource usage data display device is also provided in the embodiments of this specification, as described in the following embodiments. Since the principle of solving the problem by the resource usage data display device is similar to that of the resource usage data display method, the implementation of the resource usage data display device can refer to the implementation of the resource usage data display method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements the predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable. Figure 6 is a structural block diagram of a resource usage data display device according to an embodiment of this specification, such as Figure 6 As shown, it includes: a receiving module 601, a determining module 602, an acquiring module 603 and a displaying module 604. The structure is described below.

[0083] The receiving module 601 is used to receive a display request, where the display request carries an identifier of a target application.

[0084] The determination module 602 is used to obtain application topology link information of the target application in response to the display request; and is also used to determine the container corresponding to each node in the multiple nodes of the target application and the virtual machine and physical machine associated with the target application based on the application topology link information.

[0085] The acquisition module 603 is used to acquire resource usage information of a container corresponding to each node among multiple nodes of the target application and resource usage information of a virtual machine and a physical machine associated with the target application.

[0086] The display module 604 is used to display the resource usage of the containers corresponding to each node of the target application, the resource usage of the virtual machines associated with the target application, and the resource usage of the physical machines associated with the target application in the form of a honeycomb diagram on the front-end page according to the resource usage information of the containers corresponding to each node and the resource usage information of the virtual machines and physical machines associated with the target application.

[0087] In some embodiments of the present specification, the acquisition module is used to acquire in real time the resource usage information of the container corresponding to each node among the multiple nodes of the target application and the resource usage information of the virtual machines and physical machines associated with the target application, and the display module is used to dynamically display the resource usage of the container corresponding to each node of the target application, the resource usage of the virtual machine associated with the target application, and the resource usage of the physical machine associated with the target application in the form of a honeycomb diagram on the front-end page.

[0088] In some embodiments of the present specification, the device may also include an early warning module, which is specifically used to: based on the resource usage information of the containers corresponding to each node in the multiple nodes of the target application obtained in real time and the resource usage information of the virtual machines and physical machines associated with the target application, the containers, virtual machines and / or physical machines that do need to be warned, and highlight the cellular units corresponding to the containers, virtual machines and / or physical machines that need resource usage warnings on the front-end page.

[0089] In some embodiments of the present specification, the front-end page may include at least: a first area, a second area and a third area; the first area may include multiple sub-areas, and the multiple sub-areas correspond one-to-one to the multiple nodes; accordingly, the display module is specifically used to: in each of the multiple sub-areas of the first area, respectively display the resource usage of the container corresponding to each node in the form of a honeycomb diagram; the honeycomb cells in the honeycomb diagram displayed in each sub-area are used to characterize the resource usage of the container of the corresponding node; in the second area, the resource usage of the virtual machine associated with the target application is displayed in the form of a honeycomb diagram; the honeycomb cells displayed in the second area are used to characterize the resource usage of the corresponding virtual machine; in the third area, the resource usage of the physical machine associated with the target application is displayed in the form of a honeycomb diagram; the honeycomb cells displayed in the third area are used to characterize the resource usage of the corresponding physical machine.

[0090] In some embodiments of the present specification, the display module is also specifically used to: receive a first trigger operation on a target cellular unit in the first area, the first trigger operation carrying a target container identifier; determine the corresponding target virtual machine identifier and target physical machine identifier based on the target container identifier and the application topology link information; display the resource usage of the target virtual machine corresponding to the target virtual machine identifier in the second area, and display the resource usage of the physical machine corresponding to the target physical machine identifier in the third area.

[0091] In some embodiments of the present specification, the front-end page may also include a node selection control; the display module is also specifically used to: receive a second trigger operation of the user on the node selection control, the second trigger operation carries a target node identifier; determine the container corresponding to the target node identifier and the virtual machine and physical machine associated with the target node identifier based on the target node identifier and the application topology link information; in response to the second trigger operation, display the resource usage of the container corresponding to the target node identifier, the resource usage of the virtual machine associated with the target node identifier, and the resource usage of the physical machine associated with the target node identifier in the form of a honeycomb diagram on the front-end page.

[0092] In some embodiments of the present specification, the resource usage may include multiple resource usages; the front-end page may also include a resource selection control; accordingly, the display module is also specifically used to: receive a third trigger operation of the user on the resource selection control, the third trigger operation carrying a target resource identifier; in response to the third trigger operation, displaying on the front-end page in the form of a honeycomb diagram the target resource usage corresponding to the target resource identifier of the container corresponding to each node in the multiple nodes of the target application, the resource usage corresponding to the target resource identifier of the virtual machine associated with the target application, and the resource usage corresponding to the target resource identifier of the physical machine associated with the target application.

[0093] From the above description, it can be seen that the embodiments of this specification achieve the following technical effects: the resource usage of the containers corresponding to each of the multiple nodes of the target application can be displayed on the front-end page, and the resource usage of the virtual machines and physical machines associated with the target application can also be displayed, so that users can quickly understand the distribution and usage of resources, and help users better identify trends, outliers and potential problems in the data.

[0094] This specification also provides a computer device, which can be found in Figure 7 The computer device structure diagram of the resource usage data display method provided by the embodiment of this specification is shown, and the computer device may specifically include an input device 71, a processor 72, and a memory 73. Among them, the memory 73 is used to store processor executable instructions. When the processor 72 executes the instructions, the steps of the resource usage data display method described in any of the above embodiments are implemented.

[0095] In this embodiment, the input device may specifically be one of the main devices for information exchange between the user and the computer system. The input device may include a keyboard, a mouse, a camera, a scanner, a light pen, a handwriting input board, a voice input device, etc.; the input device is used to input the original data and the program for processing these numbers into the computer. The input device can also obtain and receive data transmitted from other modules, units, and devices. The processor can be implemented in any appropriate manner. For example, the processor can take the form of a computer-readable medium, a logic gate, a switch, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable logic controller, and an embedded microcontroller, etc., such as a microprocessor or a processor and a computer-readable program code (such as software or firmware) that can be executed by the (micro) processor. The memory may specifically be a memory device used to store information in modern information technology. The memory may include multiple levels. In a digital system, anything that can store binary data can be a memory; in an integrated circuit, a circuit with a storage function without a physical form is also called a memory, such as a RAM, a FIFO, etc.; in a system, a storage device with a physical form is also called a memory, such as a memory stick, a TF card, etc.

[0096] In this embodiment, the functions and effects specifically realized by the computer device can be explained in comparison with other embodiments and will not be described in detail here.

[0097] The implementation manner of this specification also provides a computer storage medium based on the resource usage data display method, wherein the computer storage medium stores computer program instructions, and when the computer program instructions are executed, the steps of the resource usage data display method described in any of the above embodiments are implemented.

[0098] In this embodiment, the storage medium includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a cache, a hard disk (HDD) or a memory card. The memory may be used to store computer program instructions. The network communication unit may be an interface for network connection communication set in accordance with the standard specified by the communication protocol.

[0099] In this embodiment, the functions and effects specifically implemented by the program instructions stored in the computer storage medium can be explained in comparison with other embodiments and will not be repeated here.

[0100] The embodiments of the present specification also provide a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the resource usage data display method described in any of the above embodiments.

[0101] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of this specification can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of this specification are not limited to any specific combination of hardware and software.

[0102] It should be understood that the above description is for illustration and not for limitation. Many embodiments and many applications beyond the examples provided will be apparent to those skilled in the art upon reading the above description. Therefore, the scope of this specification should not be determined with reference to the above description, but should be determined with reference to the preceding claims and the full scope of equivalents to which these claims belong.

[0103] The above description is only the preferred embodiment of this specification and is not intended to limit this specification. For those skilled in the art, the embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in the protection scope of this specification.

Claims

1. A method for displaying resource usage data, characterized in that: include: receiving a display request, wherein the display request carries an identifier of a target application; In response to the display request, obtaining application topology link information of the target application; Based on the application topology link information, determine a container corresponding to each node in a plurality of nodes of the target application and a virtual machine and a physical machine associated with the target application; Obtain resource usage information of a container corresponding to each of the multiple nodes of the target application and resource usage information of a virtual machine and a physical machine associated with the target application; According to the resource usage information of the containers corresponding to each node and the resource usage information of the virtual machines and physical machines associated with the target application, the resource usage of the containers corresponding to each node of the target application, the resource usage of the virtual machines associated with the target application, and the resource usage of the physical machines associated with the target application are respectively displayed on the front-end page in the form of a honeycomb diagram.

2. The resource usage data display method according to claim 1, characterized in that: The resource usage information of the container corresponding to each of the multiple nodes of the target application and the resource usage information of the virtual machines and physical machines associated with the target application are obtained in real time, so as to dynamically display the resource usage of the container corresponding to each node of the target application, the resource usage of the virtual machine associated with the target application, and the resource usage of the physical machine associated with the target application in the form of a honeycomb diagram on the front-end page.

3. The resource usage data display method according to claim 2, characterized in that: Also includes: Based on the resource usage information of the containers corresponding to each node in the multiple nodes of the target application and the resource usage information of the virtual machines and physical machines associated with the target application obtained in real time, the containers, virtual machines and / or physical machines that do need to be warned are identified, and the cellular units corresponding to the containers, virtual machines and / or physical machines that need to be warned are highlighted on the front-end page.

4. The resource usage data display method according to claim 1, characterized in that: The front page at least includes: a first area, a second area and a third area; the first area includes a plurality of sub-areas, and the plurality of sub-areas correspond to the plurality of nodes one by one; Correspondingly, according to the resource usage information of the containers corresponding to the nodes and the resource usage information of the virtual machines and physical machines associated with the target application, the resource usage of the containers corresponding to the nodes of the target application, the resource usage of the virtual machines associated with the target application, and the resource usage of the physical machines associated with the target application are respectively displayed on the front-end page in the form of a honeycomb diagram, including: Each of the multiple sub-areas of the first area displays the resource usage of the container corresponding to each node in the form of a honeycomb diagram; the honeycomb unit in the honeycomb diagram displayed in each sub-area is used to represent the resource usage of the container of the corresponding node; Displaying resource usage of the virtual machine associated with the target application in the form of a honeycomb diagram in the second area; the honeycomb unit displayed in the second area is used to represent the resource usage of the corresponding virtual machine; The resource usage of the physical machine associated with the target application is displayed in the third area in the form of a honeycomb diagram; the honeycomb units displayed in the third area are used to represent the resource usage of the corresponding physical machine.

5. The resource usage data display method according to claim 4, characterized in that: Also includes: receiving a first trigger operation on a target cellular unit within the first area, wherein the first trigger operation carries a target container identifier; Determine a corresponding target virtual machine identifier and a target physical machine identifier according to the target container identifier and the application topology link information; The resource usage of the target virtual machine corresponding to the target virtual machine identifier is displayed in the second area, and the resource usage of the physical machine corresponding to the target physical machine identifier is displayed in the third area.

6. The resource usage data display method according to claim 1, characterized in that: The front-end page also includes a node selection control; Accordingly, the resource usage data display method further includes: receiving a second trigger operation of the user on the node selection control, wherein the second trigger operation carries a target node identifier; Determine, according to the target node identifier and the application topology link information, a container corresponding to the target node identifier and a virtual machine and a physical machine associated with the target node identifier; In response to the second trigger operation, the resource usage of the container corresponding to the target node identifier, the resource usage of the virtual machine associated with the target node identifier, and the resource usage of the physical machine associated with the target node identifier are displayed in the form of a honeycomb diagram on the front-end page.

7. The resource usage data display method according to claim 1, characterized in that: The resource usage includes multiple resource usages; the front-end page also includes a resource selection control; Accordingly, the resource usage data display method further includes: receiving a third trigger operation of the user on the resource selection control, wherein the third trigger operation carries a target resource identifier; In response to the third trigger operation, the target resource usage corresponding to the target resource identifier of the container corresponding to each node in the multiple nodes of the target application, the resource usage corresponding to the target resource identifier of the virtual machine associated with the target application, and the resource usage corresponding to the target resource identifier of the physical machine associated with the target application are displayed on the front-end page in the form of a honeycomb diagram.

8. A resource usage data display device, characterized in that: include: A receiving module, configured to receive a display request, wherein the display request carries an identifier of a target application; A determination module, configured to obtain application topology link information of the target application in response to the display request; and further configured to determine, based on the application topology link information, a container corresponding to each of a plurality of nodes of the target application and a virtual machine and a physical machine associated with the target application; An acquisition module, used to acquire resource usage information of a container corresponding to each of a plurality of nodes of the target application and resource usage information of a virtual machine and a physical machine associated with the target application; A display module is used to display the resource usage of the containers corresponding to each node of the target application, the resource usage of the virtual machines associated with the target application, and the resource usage of the physical machines associated with the target application in the form of a honeycomb diagram on the front-end page according to the resource usage information of the containers corresponding to each node and the resource usage information of the virtual machines and physical machines associated with the target application.

9. A computer device, characterized in that: The method comprises a processor and a memory for storing processor-executable instructions, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the instructions.

10. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Cluster information processing method and device, storage medium and program product

    CN120386691A