Link information display method and device, equipment and medium
By identifying and configuring leaf and non-leaf nodes in tree structure data, and adding a collapse function to link information display, the problem of difficulty in viewing complex link information is solved, and convenient visualization and rapid troubleshooting of link information is achieved.
Patent Information
- Application Number
- CN202411836659.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-04-29
AI Technical Summary
When there are many link levels or many nodes, it becomes difficult to view link information, affecting troubleshooting efficiency.
By determining the tree structure data required for link display, identify leaf nodes and non-leaf nodes, and adding effect configurations to each node, including the expansion and collapse function of non-leaf nodes, draw the link and display label information.
The visual display of link information is realized, allowing personnel to easily view link information, thereby accelerating the link troubleshooting process.
Smart Images

Figure CN119902952A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data visualization technology, and in particular to a link information display method, device, equipment and medium. Background Art
[0002] Each service requested by the client must be provided by multiple device nodes, so the access link of this service includes multiple nodes (also called span nodes). For each service request, the system needs to record the corresponding link information to facilitate personnel to check and troubleshoot. However, when there are many link levels or many nodes in the link, it is troublesome to check the link information, which in turn affects the efficiency of link troubleshooting. Summary of the invention
[0003] The embodiments of the present application provide a link information display method, device, equipment and medium to achieve visual display of link information, so that personnel can view link information more conveniently, thereby further achieving rapid troubleshooting of the link.
[0004] A link information display method provided in an embodiment of the present application includes:
[0005] When a link information visualization display request is received, tree structure data required for link display is determined; wherein the tree structure data includes information of multiple nodes of the link to be displayed;
[0006] Analyze the tree structure data to identify leaf nodes and non-leaf nodes in the tree structure data;
[0007] For each of the leaf nodes and non-leaf nodes, add effect configurations that need to be displayed, including adding expansion and collapse functions for non-leaf nodes;
[0008] Based on the configuration, a link is drawn, and the drawn link is displayed through a preset link display area on a link information display interface, and label information corresponding to the link is output and displayed through a preset label information display area on the link information display interface; wherein the label information includes link details.
[0009] In the method described in the embodiment of the present application, when a request for visual display of link information is received, the tree structure data required for link display is determined; wherein the tree structure data includes information of multiple nodes of the link to be displayed; the tree structure data is analyzed to identify leaf nodes and non-leaf nodes in the tree structure data; for each of the leaf nodes and non-leaf nodes, the effect configuration to be displayed is added respectively, including adding an expand and collapse function for the non-leaf nodes, so as to avoid the information of all nodes being displayed together in a crowded manner; further, based on the configuration, a link is drawn, and the drawn link is displayed through a preset link display area on the link information display interface, and the label information corresponding to the link is output and displayed through a preset label information display area on the link information display interface; wherein the label information includes link details, thereby realizing a visual display of the link information, allowing personnel to view the link information more conveniently, thereby further realizing rapid troubleshooting of the link.
[0010] In some embodiments, the link details include basic information and / or extended information of the link;
[0011] The basic information includes one or a combination of the following information:
[0012] The link’s start time, end time, client, server, IP, application protocol, request resource, response status, and spanID;
[0013] The extended information includes one or a combination of the following information:
[0014] The link's error code, response code, request method, server IP, and requested resource.
[0015] In some embodiments, the tag information further includes host information, and the host information includes one or a combination of the following information:
[0016] CPU usage, single-core CPU average load, memory usage, memory usage;
[0017] The CPU usage includes one or a combination of the following information:
[0018] CPU usage, CPU user usage, CPU system usage, percentage of CPU consumed by disk I / O, and the names and identifiers of multiple applications with the highest CPU usage;
[0019] The single-core CPU average load includes one or a combination of the following information:
[0020] The average single-core CPU load within the first preset time, the average single-core CPU load within the second preset time, and the average single-core CPU load within the third preset time; wherein the first preset time is less than the second preset time, and the second preset time is less than the third preset time;
[0021] The memory usage includes one or a combination of the following information:
[0022] Total memory, used memory, remaining memory.
[0023] In some embodiments, the tag information also includes log information and / or process information;
[0024] The process information includes one or a combination of the following information:
[0025] CPU usage, memory usage, number of threads, number of open file descriptors.
[0026] In some embodiments, the method further comprises:
[0027] Outputting and displaying the filtering conditions corresponding to the link information through the preset filtering area on the link information display interface;
[0028] The screening condition includes link overview and / or link details.
[0029] In some embodiments, for each of the leaf nodes and non-leaf nodes, an effect configuration to be displayed is added respectively, further comprising one or a combination of the following configurations:
[0030] Add animation display effects for leaf nodes;
[0031] Add a highlight effect to the currently selected node.
[0032] In some embodiments, the link full-text search interface includes an input window for one or a combination of the following search information: request time, link ID, service name;
[0033] The link full-text search interface also includes a search result display area;
[0034] The search result display area displays the following information:
[0035] Link ID, link request time, service name, service IP, requested resources, duration, status, and application protocol.
[0036] In some embodiments, determining the tree structure data required for link presentation includes:
[0037] Get the link data reported by the service;
[0038] The link data reported by the service is converted into tree structure data required for link display.
[0039] A link information display device provided in an embodiment of the present application includes:
[0040] The first unit is used to determine the tree structure data required for link display when receiving a link information visualization display request; wherein the tree structure data includes information of multiple nodes of the link to be displayed;
[0041] A second unit is used to analyze the tree structure data and identify leaf nodes and non-leaf nodes in the tree structure data;
[0042] The third unit is used to add effect configurations to be displayed for each of the leaf nodes and non-leaf nodes, including adding expansion and collapse functions for non-leaf nodes;
[0043] The fourth unit is used to draw a link based on the configuration, and display the drawn link through a preset link display area on the link information display interface, and output and display the label information corresponding to the link through a preset label information display area on the link information display interface; wherein the label information includes link details.
[0044] Another embodiment of the present application provides an electronic device, which includes a memory and a processor, wherein the memory is used to store program instructions, and the processor is used to call the program instructions stored in the memory and execute any of the above methods according to the obtained program.
[0045] Another embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute any of the above methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 A flowchart of a link information display method provided in an embodiment of the present application;
[0048] Figure 2 A schematic diagram of a link full-text search interface provided in an embodiment of the present application;
[0049] Figure 3A schematic diagram of a link information display interface provided in an embodiment of the present application;
[0050] Figure 4 A schematic diagram of host information in the label information display area on the link information display interface provided in an embodiment of the present application;
[0051] Figure 5 A schematic diagram of log information in the tag information display area on the link information display interface provided in an embodiment of the present application;
[0052] Figure 6 A schematic diagram of process information in the label information display area on the link information display interface provided in an embodiment of the present application;
[0053] Figure 7 A schematic diagram of another link information display interface provided in an embodiment of the present application;
[0054] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0055] Fig. 9 A schematic diagram of the structure of a link information display device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0057] The embodiments of the present application provide a link information display method, device, equipment and medium to achieve visual display of link information, so that personnel can view link information more conveniently, thereby further achieving rapid troubleshooting of the link.
[0058] Among them, the method and the device, equipment, and medium are based on the same application concept. Since the principles of solving problems by the method and the device, equipment, and medium are similar, the implementation of the device, equipment, medium, and method can refer to each other, and the repeated parts will not be repeated.
[0059] The terms "first", "second", etc. (if any) in the specification and claims of the embodiments of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than the content illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0060] The following examples and embodiments are to be understood as illustrative examples only. Although this specification may refer to "one", "an" or "some" examples or embodiments in several places, this does not mean that each such reference relates to the same example or embodiment, nor does it mean that the feature applies only to a single example or embodiment. Individual features of different embodiments may also be combined to provide other embodiments. In addition, terms such as "including" and "comprising" should be understood as not limiting the described embodiments to only those features that have been mentioned; such examples and embodiments may also include features, structures, units, modules, etc. that are not specifically mentioned.
[0061] The following is a detailed description of each embodiment of the present application in conjunction with the accompanying drawings. It should be noted that the display order of the embodiments of the present application only represents the order of the embodiments, and does not represent the advantages and disadvantages of the technical solutions provided by the embodiments.
[0062] See also Figure 1 , a link information display method provided in an embodiment of the present application includes:
[0063] S101. When a link information visualization display request is received, determine tree structure data required for link display; wherein the tree structure data includes information of multiple nodes of the link to be displayed;
[0064] The link full-text search interface, for example Figure 2 As shown, in some embodiments, the link full-text search interface includes an input window for one or a combination of the following search information:
[0065] Request time, link ID, service name;
[0066] The link full-text search interface also includes a search result display area;
[0067] The search result display area displays the following information:
[0068] Link ID, link request time, service name, service IP, requested resources, duration, status, and application protocol.
[0069] The link information visualization display request is, for example, a link ID displayed in the search result display area on the full-text search interface of the link when the user clicks the mouse. When the user clicks on any link ID, the link data requested by the user can be found through the link ID (traceID), and then the found link data can be classified and grouped according to spanId, and the relevant link folding and expanding functions can be implemented, and the link can be expanded, folded, dragged up and down, etc. with one click (specific expansion instructions will be given later).
[0070] In some embodiments, determining the tree structure data required for link presentation includes:
[0071] Get the link data reported by the service;
[0072] The link data reported by the service is converted into tree structure data required for link display.
[0073] The link data, for example, includes: link spanID (node identification), link request start time, end time, link status code (used to indicate whether the link is normal) and other indicator information.
[0074] The link data reported by the service is converted into the tree structure data required for link display, for example, including converting the link data reported by the service according to the component format (rendering name, duration and other attribute fields). How to convert the tree structure data can be determined according to actual needs and is not limited in the embodiments of the present application.
[0075] S102, analyzing the tree structure data to identify leaf nodes and non-leaf nodes in the tree structure data;
[0076] For example, the node information may be judged based on whether there is a "children" field. A node with a "children" field is a non-leaf node, and a node without a "children" field is a leaf node.
[0077] S103, for each of the leaf nodes and non-leaf nodes, respectively add effect configurations to be displayed, including adding an expand / collapse function for the non-leaf nodes;
[0078] In an embodiment of the present application, by classifying and screening the nodes in the link, leaf nodes and non-leaf nodes are identified, so that different display effects can be set for different nodes. For example, for non-leaf nodes, an expand and collapse function can be added to realize the expansion and contraction of link nodes, realize link layering and group rendering, and realize the expansion and contraction function of parent-child links, so as to avoid the information of all nodes being displayed crowdedly together, so that people can view the link information more conveniently.
[0079] Specifically, for example, by traversing the tree structure data, the link nodes can be grouped through the relationship between each spanID, and the link hierarchy can be set. After the setting is completed, all nodes in the link can be traversed, the sub-node sorting can be set (for example, sorting by request time), and the expansion and collapse functions can be set. Finally, the link diagram that needs to be displayed can be rendered on the link information display interface.
[0080] S104. Based on the configuration, draw a link, and display the drawn link through a preset link display area on the link information display interface, and output and display label information corresponding to the link through a preset label information display area on the link information display interface; wherein the label information includes link details.
[0081] The link information display interface, for example, see Figure 3 As shown, the drawn link can be displayed in the link display area, and the link display area can be dragged up and down to achieve expansion and contraction of the area; and the label information corresponding to the link can be displayed in the label information display area below, and the label information display area can also be expanded or collapsed to achieve full display or hiding of the information in the label information display area.
[0082] The specific tag information can be set according to actual needs and is not limited in the embodiments of the present application. For example, there may also be:
[0083] RabbitMQ information (if included in the link occurrence, it will be displayed, otherwise it will not be displayed): CPU usage, memory usage, memory usage, number of client connections, number of rejected connections and other indicator information;
[0084] redis information (if included in the link occurrence, it will be displayed, otherwise it will not be displayed): number of connections, number of channels, number of queues, number of consumers, message rate and other indicator information) and other indicator information.
[0085] In the embodiment of the present application, for example, based on the deepest level tracing algorithm of the link, after finding the link data corresponding to the current traceID, the deepest level of the link is first obtained, for example Figure 3 The deepest level shown is two levels.
[0086] Furthermore, in some embodiments, after obtaining the deepest level of the link, the request time and display position of the link are displayed by setting the ratio of the request time. For example, the start time and end time of different links are different, and the total request time is also different. Therefore, when drawing links according to different traceIDs, the position and ratio of the link display are different.
[0087] In some embodiments, for example Figure 3 As shown, the method also includes:
[0088] Outputting and displaying the filtering conditions corresponding to the link information through the preset filtering area on the link information display interface;
[0089] The screening conditions include link overview and / or link details, such as Figure 3 As shown, the user can click on the link details and choose to view the detailed information of the link.
[0090] In some embodiments, for example Figure 3 As shown, the link information display interface can also display one or a combination of the following information:
[0091] Link status, link request time, time consumption, link ID.
[0092] In some embodiments, for example Figure 3 As shown, on the link information display interface, above the link display area, you can also display:
[0093] Link mode filter conditions: Detailed (when clicking this button, a more detailed link is displayed), Simplified (when clicking this button, a more simplified link is displayed, for example Figure 3 shown), fusion (between simplification and detail);
[0094] Link status filtering conditions: All (when this button is clicked, all link information is displayed), Error link (when this button is clicked, only error link information is displayed);
[0095] In some embodiments, for example Figure 3 As shown, the link details include basic information and / or extended information of the link;
[0096] The basic information includes one or a combination of the following information:
[0097] The link’s start time, end time, client, server, IP, application protocol, requested resource (such as requested URL address), response status, and spanID;
[0098] The extended information includes one or a combination of the following information:
[0099] The error code of the link (the code defined by the back-end database), response code (404, 401, 403, 500, 520, etc.), request method (get, post, put, etc.), server IP (may be inconsistent with the IP in the basic information. The IP in the extended information is not a fixed field. Different field information is returned for display according to the different service specifications of the back-end docking), request resources (may be inconsistent with the request resources in the basic information), client IP, request mode, etc.
[0100] In some embodiments, the tag information also includes host information, such as Figure 4 As shown (only the label information display area is shown), the host information includes one or a combination of the following information:
[0101] CPU usage, single-core CPU average load, memory usage, memory usage;
[0102] The CPU usage rate includes one or a combination of the following information (such as Figure 4 As shown, it can be displayed in a pop-up window):
[0103] CPU usage, CPU user usage, CPU system usage, percentage of CPU consumed by disk I / O, names and identifiers of multiple applications with the highest CPU usage (e.g., top five);
[0104] The single-core CPU average load includes one or a combination of the following information:
[0105] The average single-core CPU load within a first preset time, the average single-core CPU load within a second preset time, and the average single-core CPU load within a third preset time; wherein the first preset time is less than the second preset time, and the second preset time is less than the third preset time; the first preset time, the second preset time, and the third preset time are, for example, 1 minute, 5 minutes, and 15 minutes, respectively;
[0106] The memory usage includes one or a combination of the following information:
[0107] Total memory, used memory, remaining memory.
[0108] In some embodiments, the tag information also includes log information and / or process information;
[0109] The log information, such as Figure 5 As shown (only the label information display area is shown), including:
[0110] Operation time and log content.
[0111] Above the log information display area, there are also filter conditions for log information: operation time, log level, log source, keywords, etc., which can facilitate users to view log information in a targeted manner.
[0112] The process information, such as Figure 6 As shown (only the label information display area is shown), it includes one or a combination of the following information:
[0113] CPU usage, memory usage, number of threads, number of open file descriptors.
[0114] In some embodiments, for each of the leaf nodes and non-leaf nodes, an effect configuration to be displayed is added respectively, further comprising one or a combination of the following configurations:
[0115] Add animation display effects for leaf nodes;
[0116] Add a highlight effect to the currently selected node, for example Figure 7 As shown, assuming that the spanID of the currently selected node is 36959d82566d6974, which corresponds to the basic video-device management service node, this node is highlighted, and, further, when the mouse moves to the node, a pop-up window can be displayed to display its more detailed information (or core data information): request mode, request method, request time, status (normal or abnormal). Thus, full-link tracking of link information can be achieved.
[0117] The link drawing in the embodiment of the present application can, for example, convert the link data into the tree structure data required for link drawing based on the deepest level tracing algorithm of the link, and expand it based on the graphics drawing API of D3.js to draw the above-mentioned various information to be displayed by the link.
[0118] To summarize, the embodiments of the present application can track the full-link information at any node, and visually display information such as the status of the full-link of the link node currently selected by the user; and can construct the system platform link in layers, classify and filter the link nodes, and realize the expansion and contraction functions of the link nodes; and can customize different service components (link details, host, log, process, redis, rabbitMQ and other information) according to the service type, and render the links in layers and groups; especially for the filtering of erroneous links, the cause of the link error can be quickly located, for example, compared with the method of locating link error information through the terminal log mode, the embodiments of the present application can save a lot of time and greatly improve the efficiency of link troubleshooting.
[0119] The following is an introduction to the equipment or device provided in the embodiments of the present application, in which the explanations or examples of technical features that are the same or corresponding to those described in the above method will not be repeated later.
[0120] An electronic device provided in an embodiment of the present application, see Figure 8 , for example:
[0121] The processor 600 is used to read the program in the memory 620 and execute the following process:
[0122] When a link information visualization display request is received, tree structure data required for link display is determined; wherein the tree structure data includes information of multiple nodes of the link to be displayed;
[0123] Analyze the tree structure data to identify leaf nodes and non-leaf nodes in the tree structure data;
[0124] For each of the leaf nodes and non-leaf nodes, add effect configurations that need to be displayed, including adding expansion and collapse functions for non-leaf nodes;
[0125] Based on the configuration, a link is drawn, and the drawn link is displayed through a preset link display area on a link information display interface, and label information corresponding to the link is output and displayed through a preset label information display area on the link information display interface; wherein the label information includes link details.
[0126] In some embodiments, the link details include basic information and / or extended information of the link;
[0127] The basic information includes one or a combination of the following information:
[0128] The link’s start time, end time, client, server, IP, application protocol, request resource, response status, and spanID;
[0129] The extended information includes one or a combination of the following information:
[0130] The link's error code, response code, request method, server IP, and requested resource.
[0131] In some embodiments, the tag information further includes host information, and the host information includes one or a combination of the following information:
[0132] CPU usage, single-core CPU average load, memory usage, memory usage;
[0133] The CPU usage includes one or a combination of the following information:
[0134] CPU usage, CPU user usage, CPU system usage, percentage of CPU consumed by disk I / O, and the names and identifiers of multiple applications with the highest CPU usage;
[0135] The single-core CPU average load includes one or a combination of the following information:
[0136] The average single-core CPU load within the first preset time, the average single-core CPU load within the second preset time, and the average single-core CPU load within the third preset time; wherein the first preset time is less than the second preset time, and the second preset time is less than the third preset time;
[0137] The memory usage includes one or a combination of the following information:
[0138] Total memory, used memory, remaining memory.
[0139] In some embodiments, the tag information also includes log information and / or process information;
[0140] The process information includes one or a combination of the following information:
[0141] CPU usage, memory usage, number of threads, number of open file descriptors.
[0142] In some embodiments, the processor 600 is further configured to read a program in the memory 620 and execute the following process:
[0143] Outputting and displaying the filtering conditions corresponding to the link information through the preset filtering area on the link information display interface;
[0144] The screening condition includes link overview and / or link details.
[0145] In some embodiments, for each of the leaf nodes and non-leaf nodes, an effect configuration to be displayed is added respectively, further comprising one or a combination of the following configurations:
[0146] Add animation display effects for leaf nodes;
[0147] Add a highlight effect to the currently selected node.
[0148] In some embodiments, the link full-text search interface includes an input window for one or a combination of the following search information: request time, link ID, service name;
[0149] The link full-text search interface also includes a search result display area;
[0150] The search result display area displays the following information:
[0151] Link ID, link request time, service name, service IP, requested resources, duration, status, and application protocol.
[0152] In some embodiments, determining the tree structure data required for link presentation includes:
[0153] Get the link data reported by the service;
[0154] The link data reported by the service is converted into tree structure data required for link display.
[0155] The transceiver 610 is configured to receive and send data under the control of the processor 600 .
[0156] Among them, Figure 8 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 600 and various circuits of memory represented by memory 620 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 610 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, including wireless channels, wired channels, optical cables, and other transmission media. For different user devices, the user interface 630 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
[0157] The processor 600 is responsible for managing the bus architecture and general processing, and the memory 620 can store data used by the processor 600 when performing operations.
[0158] In some embodiments, the processor 600 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or a CPLD (Complex Programmable Logic Device), and the processor may also adopt a multi-core architecture.
[0159] The processor calls the computer program stored in the memory to execute any of the methods provided in the embodiments of the present application according to the obtained executable instructions. The processor and the memory can also be arranged physically separately.
[0160] It should be noted here that the above-mentioned device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be described in detail here.
[0161] See also Fig. 9 , a link information display device provided in an embodiment of the present application includes:
[0162] The first unit 11 is used to determine the tree structure data required for link display when receiving a link information visualization display request; wherein the tree structure data includes information of multiple nodes of the link to be displayed;
[0163] The second unit 12 is used to analyze the tree structure data and identify leaf nodes and non-leaf nodes in the tree structure data;
[0164] The third unit 13 is used to add effect configurations to be displayed for each of the leaf nodes and non-leaf nodes, including adding expansion and collapse functions for non-leaf nodes;
[0165] The fourth unit 14 is used to draw a link based on the configuration, and display the drawn link through a preset link display area on the link information display interface, and output and display the label information corresponding to the link through a preset label information display area on the link information display interface; wherein the label information includes link details.
[0166] In some embodiments, the link details include basic information and / or extended information of the link;
[0167] The basic information includes one or a combination of the following information:
[0168] The link’s start time, end time, client, server, IP, application protocol, request resource, response status, and spanID;
[0169] The extended information includes one or a combination of the following information:
[0170] The link's error code, response code, request method, server IP, and requested resource.
[0171] In some embodiments, the tag information further includes host information, and the host information includes one or a combination of the following information:
[0172] CPU usage, single-core CPU average load, memory usage, memory usage;
[0173] The CPU usage includes one or a combination of the following information:
[0174] CPU usage, CPU user usage, CPU system usage, percentage of CPU consumed by disk I / O, and the names and identifiers of multiple applications with the highest CPU usage;
[0175] The single-core CPU average load includes one or a combination of the following information:
[0176] The average single-core CPU load within the first preset time, the average single-core CPU load within the second preset time, and the average single-core CPU load within the third preset time; wherein the first preset time is less than the second preset time, and the second preset time is less than the third preset time;
[0177] The memory usage includes one or a combination of the following information:
[0178] Total memory, used memory, remaining memory.
[0179] In some embodiments, the tag information also includes log information and / or process information;
[0180] The process information includes one or a combination of the following information:
[0181] CPU usage, memory usage, number of threads, number of open file descriptors.
[0182] In some embodiments, the fourth unit 14 is further configured to:
[0183] Outputting and displaying the filtering conditions corresponding to the link information through the preset filtering area on the link information display interface;
[0184] The screening condition includes link overview and / or link details.
[0185] In some embodiments, for each of the leaf nodes and non-leaf nodes, an effect configuration to be displayed is added respectively, further comprising one or a combination of the following configurations:
[0186] Add animation display effects for leaf nodes;
[0187] Add a highlight effect to the currently selected node.
[0188] In some embodiments, the link full-text search interface includes an input window for one or a combination of the following search information: request time, link ID, service name;
[0189] The link full-text search interface also includes a search result display area;
[0190] The search result display area displays the following information:
[0191] Link ID, link request time, service name, service IP, requested resources, duration, status, and application protocol.
[0192] In some embodiments, determining the tree structure data required for link presentation includes:
[0193] Get the link data reported by the service;
[0194] The link data reported by the service is converted into tree structure data required for link display.
[0195] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0196] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0197] Any of the devices or apparatuses provided in the embodiments of the present application may specifically be a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (PDA), etc. It may include a central processing unit (CPU), a memory, an input / output device, etc. The input device may include a keyboard, a mouse, a touch screen, etc. The output device may include a display device, such as a liquid crystal display (LCD), a cathode ray tube (CRT), etc.
[0198] The memory may include a read-only memory (ROM) and a random access memory (RAM), and provides the processor with program instructions and data stored in the memory. In an embodiment of the present application, the memory may be used to store the program of any of the methods provided in the embodiments of the present application.
[0199] The processor calls the program instructions stored in the memory, and the processor is used to execute any of the methods provided in the embodiments of the present application according to the obtained program instructions.
[0200] The present application embodiment also provides a computer program product or computer program, which includes a computer instruction, which is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction so that the computer device executes any of the methods described in the above embodiments. The program product can use any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0201] The embodiment of the present application provides a computer-readable storage medium for storing computer program instructions used by the apparatus provided in the embodiment of the present application, which includes a program for executing any of the methods provided in the embodiment of the present application. The computer-readable storage medium may be a non-transitory computer-readable medium.
[0202] The computer-readable storage medium can be any available medium or data storage device that can be accessed by a computer, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0203] It should be understood that:
[0204] The access technology through which entities in the communication network transmit traffic can be any suitable current or future technology, such as WLAN (Wireless Local Access Network), WiMAX (Worldwide Interoperability for Microwave Access), LTE, LTE-A, 5G, Bluetooth, infrared, etc.; in addition, the embodiments can also apply wired technology, for example, IP-based access technology, such as a wired network or a fixed line.
[0205] Embodiments suitable for being implemented as software code or a portion thereof and running using a processor or processing functionality are independent of the software code and may be specified using any known or future developed programming language, such as a high-level programming language such as objective-C, C, C++, C#, Java, Python, Javascript, other scripting languages, etc., or a low-level programming language such as machine language or assembler.
[0206] The implementation of the embodiments is hardware independent and may be implemented using any known or future developed hardware technology or any mixture thereof, such as a microprocessor or CPU (central processing unit), MOS (metal oxide semiconductor), CMOS (complementary MOS), BiMOS (bipolar MOS), BiCMOS (bipolar CMOS), ECL (emitter coupled logic) and / or TTL (transistor-transistor logic).
[0207] Embodiments may be implemented as separate devices, apparatuses, units, components, or functions, or in a distributed manner, for example, one or more processors or processing functions may be used or shared in a process, or one or more processing segments or processing portions may be used and shared in a process, wherein one physical processor or more than one physical processor may be used to implement one or more processing portions dedicated to a specific process as described.
[0208] The device may be implemented by a semiconductor chip, a chipset, or a (hardware) module including such a chip or chipset.
[0209] The embodiments may also be implemented as any combination of hardware and software, such as ASIC (Application Specific IC (Integrated Circuit)) components, FPGA (Field Programmable Gate Array) or CPLD (Complex Programmable Logic Device) components or DSP (Digital Signal Processor) components.
[0210] The embodiments may also be implemented as a computer program product including a computer usable medium having computer readable program code embodied therein, the computer readable program code being adapted to perform the processes as described in the embodiments, wherein the computer usable medium may be a non-transitory medium.
[0211] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0212] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0213] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0214] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0215] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A link information display method, characterized in that: The method comprises: When a link information visualization display request is received, tree structure data required for link display is determined; wherein the tree structure data includes information of multiple nodes of the link to be displayed; Analyze the tree structure data to identify leaf nodes and non-leaf nodes in the tree structure data; For each of the leaf nodes and non-leaf nodes, add effect configurations that need to be displayed, including adding expansion and collapse functions for non-leaf nodes; Based on the configuration, a link is drawn, and the drawn link is displayed through a link display area preset on a link information display interface, and label information corresponding to the link is displayed through a label information display area preset on the link information display interface; wherein the label information includes link details.
2. The method according to claim 1, characterized in that The link details include basic information and / or extended information of the link; The basic information includes one or a combination of the following information: The link’s start time, end time, client, server, IP, application protocol, request resource, response status, and spanID; The extended information includes one or a combination of the following information: The link's error code, response code, request method, server IP, and requested resource.
3. The method according to claim 1, characterized in that The tag information also includes host information, and the host information includes one or a combination of the following information: CPU usage, single-core CPU average load, memory usage, memory usage; The CPU usage includes one or a combination of the following information: CPU usage, CPU user usage, CPU system usage, percentage of CPU consumed by disk I / O, and the names and identifiers of multiple applications with the highest CPU usage; The single-core CPU average load includes one or a combination of the following information: The average single-core CPU load within the first preset time, the average single-core CPU load within the second preset time, and the average single-core CPU load within the third preset time; wherein the first preset time is less than the second preset time, and the second preset time is less than the third preset time; The memory usage includes one or a combination of the following information: Total memory, used memory, remaining memory.
4. The method according to claim 1, characterized in that: The tag information also includes log information and / or process information; The process information includes one or a combination of the following information: CPU usage, memory usage, number of threads, number of open file descriptors.
5. The method according to claim 1, characterized in that The method further comprises: Outputting and displaying the filtering conditions corresponding to the link information through the preset filtering area on the link information display interface; The screening condition includes link overview and / or link details.
6. The method according to claim 1, characterized in that For each leaf node and non-leaf node, add the effect configuration to be displayed, which also includes one or a combination of the following configurations: Add animation display effects for leaf nodes; Add a highlight effect to the currently selected node.
7. The method according to claim 1, characterized in that The link full-text search interface includes an input window for one or a combination of the following search information: request time, link ID, service name; The link full-text search interface also includes a search result display area; The search result display area displays the following information: Link ID, link request time, service name, service IP, requested resources, duration, status, and application protocol.
8. A link information display device, characterized in that: The device comprises: The first unit is used to determine the tree structure data required for link display when receiving a link information visualization display request; wherein the tree structure data includes information of multiple nodes of the link to be displayed; A second unit is used to analyze the tree structure data and identify leaf nodes and non-leaf nodes in the tree structure data; The third unit is used to add effect configurations to be displayed for each of the leaf nodes and non-leaf nodes, including adding expansion and collapse functions for non-leaf nodes; The fourth unit is used to draw a link based on the configuration, and display the drawn link through a preset link display area on the link information display interface, and output and display the label information corresponding to the link through a preset label information display area on the link information display interface; wherein the label information includes link details.
9. An electronic device, characterized in that: include: A memory for storing program instructions; A processor, configured to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 7 according to the obtained program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the method according to any one of claims 1 to 7.