Data monitoring display method and device, electronic equipment and storage medium

By periodically monitoring and classifying the resource usage data of cluster nodes, the problems of messy resource usage data and low query efficiency are solved, and efficient and intuitive data display is achieved.

CN118939708AActive Publication Date: 2024-11-12SHENZHEN SMARTCITY TECH DEV GRP CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411420667.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2024-11-12
Estimated Expiration
2044-10-12

AI Technical Summary

Technical Problem

In existing technologies, monitoring and viewing resource usage data suffers from problems such as data clutter, excessively long query times, and low query efficiency. In particular, the diverse data types make it difficult for users to quickly obtain the information they need.

Method used

By periodically monitoring the resource usage data of cluster nodes, classifying and storing the data according to preset classification types, extracting resource usage groups that match the target classification type, processing the data, and displaying it.

Benefits of technology

It enables real-time and efficient querying of resource usage data, improves the efficiency of data processing and display, and enhances the intuitiveness of queries, ensuring that users can quickly obtain the data information they need.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939708A_ABST
    Figure CN118939708A_ABST
Patent Text Reader

Abstract

The invention discloses a data monitoring display method and device, electronic equipment and a storage medium, and relates to the technical field of data processing, and the method comprises the steps: regularly monitoring and obtaining initial resource use data of each node in cluster nodes, and then classifying and storing the initial resource use data according to a preset classification type, and finally, extracting a target resource use group included in a preset classification type matched with the target classification type from the plurality of resource use groups, performing data processing on the target resource use group, and displaying the target resource use group, so that data information required by query personnel is directly and intuitively displayed. The data query efficiency is improved; and the query intuition is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data monitoring and display method, device, electronic device and storage medium. Background Art

[0002] Conventional monitoring of resource usage data in each node mostly involves inserting a collection service into a single node to implement the monitoring function of each node, and storing the collected resource usage data directly on the monitored node. When the resource usage data needs to be viewed, all resource usage data stored on the node is directly pulled and displayed.

[0003] However, in actual monitoring and viewing applications, inquirers found that the resource usage data pulled and displayed through the above solution was rather messy. First, because all resource usage data stored on the node were directly pulled and displayed, there was a phenomenon of too much resource usage data due to the long pulling timeline; second, because the resource usage data contained multiple types of information, inquirers could not quickly query and obtain the required data information in the pulled and displayed resource usage data, resulting in low data query efficiency and intuitiveness.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present application is to provide a data monitoring and display method, device, electronic device and storage medium, aiming to solve the current technical problems of low efficiency and intuitiveness in querying resource usage data in each node.

[0006] To achieve the above purpose, the present application proposes a data monitoring and display method, which includes: Regularly monitor and obtain the initial resource usage data of each node in the cluster; Classify and store each initial resource usage data according to the preset classification type to obtain several resource usage groups; From the plurality of resource usage groups, target resource usage groups included in the preset classification type matching the target classification type are extracted, and data processing is performed on the target resource usage groups and the groups are displayed.

[0007] In one embodiment, the step of regularly monitoring and acquiring initial resource usage data of each node in the cluster includes: Control the timing http heartbeat request module to send an http heartbeat request to each node according to a preset monitoring time interval, so that each node responds to the http heartbeat request and sends the initial resource usage data in the target time period to the timing http heartbeat request module, wherein the target time period is the time range from the time point when each node sends the initial resource usage data to the timing http heartbeat request module to the current time point; The initial resource usage data transmitted by each node is obtained, and each initial resource usage data is sent to the data collection module via the timing http heartbeat request module.

[0008] In one embodiment, the steps of classifying and storing each initial resource usage data according to a preset classification type to obtain a plurality of resource usage groups include: Accessing each initial resource usage data through a data collection module, extracting resource usage information from each initial resource usage data, and determining the information type of each resource usage information; After determining a number of preset classification types according to the received data classification index, resource usage information whose information type matches the preset classification type is classified into one group to obtain a number of resource usage groups.

[0009] In one embodiment, after the step of determining a plurality of preset classification types according to the received data classification index, the step further includes: The data classification index is sent to the data display module, and the data display module is controlled to display the query icons corresponding to the preset classification types on the data display screen according to the preset classification types included in the data classification index.

[0010] In one embodiment, the step of extracting target resource usage groups included in preset classification types matching the target classification type from a plurality of groups of resource usage groups comprises: Determine the target classification type according to the preset classification type corresponding to the triggered query icon, and send the target classification type to the API receiving module; The control API receiving module selects several groups of resource usage groups stored in the data collection module according to the target classification type of the access, and obtains the target resource usage group that matches the target classification type, wherein the target resource usage group indicates that the preset classification type to which the resource usage group belongs is the same as the target classification type.

[0011] In one embodiment, the step of processing and displaying data on target resource usage groups includes: Obtain the data processing requirements passed in through the data display module, and send the data processing requirements and target resource usage groups to the data formatting and cleaning module; The control data formatting and cleaning module selects a target time period matching the required time period in the group period corresponding to the target resource usage group according to the required time period in the data processing requirement, and obtains the target resource usage data included in the target resource usage group in the target time period; According to the segmentation time interval in the data processing requirements, the target resource usage data in the target time period is segmented, and after obtaining multiple resource usage data segments, the data average value corresponding to each resource usage data segment is calculated; According to the conversion data unit in the data processing requirements, the unit of the data average is converted, and multiple target display data are output for display.

[0012] In one embodiment, the step of outputting a plurality of target display data for display includes: Obtain a preset display template from the data display module, import each target display data, the target time period corresponding to each target display data, the conversion data unit and the target classification type required for the target display data into the preset display template, and after obtaining the target display diagram, control the target display diagram for output display.

[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a data monitoring and display device, which includes: The data monitoring module is used to periodically monitor and obtain the initial resource usage data of each node in the cluster; A data classification storage module is used to classify and store each initial resource usage data according to a preset classification type to obtain a plurality of resource usage groups; The data processing and display module is used to extract target resource usage groups included in preset classification types matching the target classification types from a plurality of resource usage groupings, and perform data processing and display on the target resource usage groups.

[0014] In addition, to achieve the above objectives, the present application also proposes an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data monitoring and display method described above.

[0015] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the data monitoring and display method described above are implemented.

[0016] One or more technical solutions proposed in this application have at least the following technical effects: By periodically monitoring and acquiring the initial resource usage data of each node in the cluster, and then classifying and storing each initial resource usage data according to the preset classification type, several groups of resource usage groups are obtained. Finally, from the several groups of resource usage groups, the target resource usage groups included in the preset classification type that matches the target classification type are extracted, and the target resource usage groups are processed and displayed.

[0017] The present application ensures the real-time nature of the acquired initial resource usage data and avoids the phenomenon of excessive data due to a long timeline of the acquired initial resource usage data by synchronously and periodically monitoring each node in the cluster node and acquiring the corresponding initial resource usage data therein. The initial resource usage data are then classified according to a preset classification type so that the data corresponding to the target classification type required by the query personnel can be quickly extracted and processed, thereby improving the efficiency of data processing and display. Finally, data processing and display are performed by extracting the target resource usage grouping included in the preset classification type that matches the target classification type, thereby directly and intuitively displaying the data information required by the query personnel, thereby accelerating data query efficiency and improving query intuitiveness. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 A flow chart of an embodiment of the data monitoring and display method of the present application; Figure 2 This is a flow structure diagram of the data monitoring and display architecture for this application; Figure 3 A schematic diagram showing the target of this application; Figure 4 This is a schematic diagram of the module structure of the data monitoring and display device according to an embodiment of the present application; Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the data monitoring and display method in the embodiment of the present application.

[0021] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0022] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0023] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0024] The main solution of the embodiment of the present application is: regularly monitor and obtain the initial resource usage data of each node in the cluster node; classify and store each initial resource usage data according to the preset classification type to obtain several groups of resource usage groups; from the several groups of resource usage groups, extract the target resource usage groups included in the preset classification type that matches the target classification type, and perform data processing and display on the target resource usage groups.

[0025] In the existing process of monitoring and viewing the resource usage data in each node, the query personnel found that the resource usage data pulled and displayed by the above solution was rather messy. Firstly, because all the resource usage data stored on the node were directly pulled and displayed, there was a phenomenon of too much resource usage data due to the long pulling timeline; secondly, because the resource usage data contained multiple types of information, the query personnel could not quickly query and obtain the required data information in the pulled and displayed resource usage data, resulting in low data query efficiency and intuitiveness.

[0026] The present application provides a solution, which ensures the real-time nature of the acquired initial resource usage data and avoids the phenomenon of excessive data due to the long timeline of the acquired initial resource usage data by synchronously and periodically monitoring each node in the cluster node and acquiring the corresponding initial resource usage data therein, and then classifies each initial resource usage data according to a preset classification type so that the data corresponding to the target classification type required by the query personnel can be quickly extracted and processed, thereby improving the efficiency of data processing and display, and finally, by extracting the target resource usage grouping included in the preset classification type that matches the target classification type, data processing and display are performed, thereby directly and intuitively displaying the data information required by the query personnel, thereby accelerating the data query efficiency and improving the query intuitiveness.

[0027] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a terminal device, etc. capable of realizing the above functions. The following takes an electronic device as an example to illustrate this embodiment and the following embodiments.

[0028] Based on this, the present application embodiment provides a data monitoring display method, referring to Figure 1 , Figure 1This is a flow chart of an embodiment of the data monitoring and display method of the present application.

[0029] In this embodiment, the data monitoring and display method includes steps S10 to S30: Step S10: regularly monitor and obtain initial resource usage data of each node in the cluster.

[0030] It should be noted that this embodiment, by grouping the nodes that need to be monitored into a cluster, and by synchronously monitoring the nodes in the cluster and acquiring the initial resource usage data, is helpful to ensure that the initial resource usage data acquired is data for the same time period, and avoid the problem of low data output display efficiency caused by the inconsistency of the time of the acquired initial resource usage data and the need to add the step of determining the data time.

[0031] At the same time, the monitoring of each node in the cluster is set to a timing mode. Its purpose is to achieve effective monitoring and management control of massive initial resource usage data, so as to ensure the real-time nature of the initial resource usage data obtained from the node, and avoid the situation where the time line for monitoring the node and obtaining the initial resource usage data is too long when the monitoring acquisition operation is triggered, resulting in low reference value of the initial resource usage data.

[0032] Step S20: classify and store each initial resource usage data according to a preset classification type to obtain a plurality of resource usage groups.

[0033] Furthermore, in order to improve data processing efficiency and enhance the readability of the output displayed data, the present embodiment proposes to classify and store the acquired initial resource usage data. Specifically, after acquiring the initial resource usage data, the initial resource usage data are classified according to a preset classification type, and the initial resource usage data belonging to the same preset classification type are grouped into the same group to obtain several groups of resource usage groups.

[0034] Among them, the preset classification types may include CPU (Central Processing Unit) usage, memory usage, storage usage, network traffic, number of processes, number of threads and other classification types. The preset classification types can be set by the operator to facilitate the subsequent output display of the required classification types, so that the query personnel can quickly query and obtain the required data information.

[0035] Step S30: extracting target resource usage groups included in preset classification types matching the target classification type from the plurality of resource usage group groups, performing data processing on the target resource usage groups, and displaying the same.

[0036] The target classification type is set by the inquirer. According to the target classification type input by the inquirer, the target resource usage grouping included in the preset classification type matching the target classification type is extracted from several groups of resource usage groups, and then the target resource usage grouping is processed and displayed. In this way, the data information included in the classification type required by the inquirer is directly and intuitively displayed, which speeds up the data query efficiency and improves the query intuitiveness, avoiding the inconvenience of the inquirer having to search in the output data information.

[0037] It should be noted that the target classification type may be single or multiple. According to the number of the input target classification types, multiple steps S30 may be executed simultaneously to realize intuitive display of the data information included in the multiple required classification types.

[0038] In this embodiment, by synchronously and periodically monitoring each node in the cluster node and obtaining the corresponding initial resource usage data therein, the real-time nature of the obtained initial resource usage data is ensured, and the phenomenon of excessive data due to a long timeline of the obtained initial resource usage data is avoided. Each initial resource usage data is then classified according to a preset classification type so that the data corresponding to the target classification type required by the inquirer can be quickly extracted and processed, thereby improving the efficiency of data processing and display. Finally, data processing and display are performed by extracting the target resource usage grouping included in the preset classification type that matches the target classification type, thereby directly and intuitively displaying the data information required by the inquirer, thereby accelerating data query efficiency and improving query intuitiveness.

[0039] In a feasible implementation, step S10 may include steps S11-S12: Step S11, controls the timing http heartbeat request module to send an http heartbeat request to each node according to a preset monitoring time interval, so that each node responds to the http heartbeat request respectively and sends the initial resource usage data in the target time period to the timing http heartbeat request module, wherein the target time period is the time range from the time point when each node sends the initial resource usage data to the current time point.

[0040] It should be noted that this embodiment is based on Figure 2 The data monitoring shown is executed in the display architecture.

[0041] The timed http (hyper text transfer protocol) heartbeat request module included in the data monitoring and display architecture can synchronously send http heartbeat requests to each node in the cluster according to a preset monitoring time interval. After receiving the http heartbeat request, each node will respond and send the initial resource usage data in the time range from the time point when the timed http heartbeat request module sent the initial resource usage data to the current time point to the timed http heartbeat request module.

[0042] For example, if the preset monitoring time interval is 5 minutes, the scheduled http heartbeat request module will periodically send an http heartbeat request to each node every 5 minutes. Each node responds to the received http heartbeat request and sends the initial resource usage data within the time range from the time point 5 minutes after the current time point to the current time point to the scheduled http heartbeat request module. That is, each node sends the node resource usage data (that is, the initial resource usage data) within a time range of 5 minutes to the scheduled http heartbeat request module, avoiding the phenomenon of data clutter caused by too much initial resource usage data due to the time line of monitoring the node and obtaining the initial resource usage data only when the monitoring acquisition operation is triggered.

[0043] Step S12, obtaining the initial resource usage data transmitted by each node, and sending each initial resource usage data to the data collection module via the timing http heartbeat request module.

[0044] The data collection module included in the data monitoring and display architecture is used to classify and store the initial resource usage data accessed by the timing http heartbeat request module, with the aim of improving the processing efficiency and output intuitiveness of the resource usage data.

[0045] After each node passes the initial resource usage data of the target time period to the scheduled http heartbeat request module, the scheduled http heartbeat request module will directly pass the received initial resource usage data to the data collection module for classification and storage, so that the subsequent API (Application Programming Interface) receiving module can select the resource usage data according to the classification type required by the query personnel.

[0046] In a feasible implementation, step S20 may include steps S21-S22: Step S21 , accessing each initial resource usage data through a data collection module, extracting resource usage information in each initial resource usage data, and determining the information type of each resource usage information.

[0047] After accessing each initial resource usage data, the data collection module will first extract the resource usage information included in each initial resource usage data. For example, if a certain initial resource usage data includes the CPU usage information, memory usage information and storage usage information of the node to which it belongs in the target time period, the CPU usage information, memory usage information and storage usage information in the initial resource usage data will be extracted, and the information type of the CPU usage information is determined to be CPU usage rate, the information type of the memory usage information is memory usage rate, and the information type of the storage usage information is storage usage rate, so as to quickly group them based on the information types corresponding to each resource usage information.

[0048] Step S22, after determining a number of preset classification types according to the received data classification index, the resource usage information whose information type matches the preset classification type is grouped into one group to obtain a number of resource usage groups.

[0049] It should be noted that the data classification indicator can be formed into a data classification indicator by the operator through communication with the API receiving module, and the classification type to be classified is passed into the API receiving module. The API receiving module then passes the data classification indicator into the data collection module, so that the data collection module determines the classification types included in the data classification indicator as preset classification types based on the received data classification indicator, and then groups the resource usage information according to the information types corresponding to each resource usage information.

[0050] For example, the preset classification types include CPU usage and memory usage. The resource usage information of the information type CPU usage is classified into one resource usage group, and the resource usage information of the information type memory usage is classified into another resource usage group. Because the resource usage information in the same resource usage group reflects the same data type information in each node, in the subsequent display process, the inquirer can intuitively and quickly obtain the required data information, while avoiding the data clutter caused by directly displaying resource usage data of multiple data types.

[0051] Furthermore, after step S22, step S23 is also included: Step S23, sending the data classification index to the data display module, controlling the data display module to display query icons corresponding to each preset classification type on the data display screen according to the preset classification types included in the data classification index.

[0052] Specifically, because the preset classification types in this embodiment can be dynamically changed by the operator according to actual application requirements, the data classification indicators formed by the API receiving module will also be sent to the data display module. The data display module updates and displays the query icon on the data display board connected to the data display module according to the new preset classification types included in the connected data classification indicators, so that the classification types corresponding to the resource usage groups obtained by the grouping in the data collection module can be displayed on the data display screen for selection by the inquirer, avoiding the situation where the data collection module groups the resource usage data according to the new preset classification types, and the data display screen still displays the query icon according to the old preset classification types, making it impossible for the inquirer to obtain accurate node resource usage.

[0053] In a feasible implementation, step S30 may include steps S31-S32: Step S31, determining a target category type according to a preset category type corresponding to the triggered query icon, and sending the target category type to an API receiving module.

[0054] Step S32, controlling the API receiving module to select several groups of resource usage groups stored in the data collection module according to the target classification type accessed, and obtaining a target resource usage group that matches the target classification type, wherein the target resource usage group indicates that the preset classification type to which the resource usage group belongs is the same as the target classification type.

[0055] Assume that the first query icon corresponding to the CPU usage on the data display screen is triggered by the inquirer. At this time, the data display module will generate a target classification type with the query target being the CPU usage of each node according to the triggered first query icon, and send the target classification type to the API receiving module, so that the API receiving module can select a resource usage group with a preset classification type of CPU usage from the data collection module according to the target classification type, and determine the resource usage group with the preset classification type of CPU usage as the target resource usage group.

[0056] Furthermore, multiple query icons can be triggered. For example, the first query icon corresponding to the CPU usage and the second query icon corresponding to the memory usage on the data display screen are triggered. At this time, the data display module will generate a first target classification type with the query target being the CPU usage of the node and a second target classification type with the memory usage of each node according to the triggered first query icon and the second query icon, and send the first target classification type and the second target classification type to the API receiving module, so that the API receiving module selects a first resource usage group with a preset classification type of CPU usage and a second resource usage group with a preset classification type of memory usage from the data collection module according to the first target classification type and the second target classification type, and determines the first resource usage group as the first target resource usage group and the second resource usage group as the second target resource usage group, so as to classify, acquire and display the data information.

[0057] In a feasible implementation manner, step S30 may include S33 to S36: Step S33, obtaining the data processing requirements transmitted via the data display module, and sending the data processing requirements and the target resource usage group to the data formatting and cleaning module.

[0058] In order to further improve the intuitiveness of the output resource usage data, the inquirer can pass the required data processing requirements to the data display module through the data display screen. The data display module will pass the data processing requirements to the data formatting and cleaning module. At the same time, after obtaining the target resource usage grouping through the API receiving module, the API receiving module needs to send the target resource usage grouping to the data formatting and cleaning module so that the data formatting and cleaning module can format and clean the target resource usage grouping based on the data processing requirements.

[0059] Step S34, controlling the data formatting and cleaning module to select a target time period matching the required time interval in the group time period corresponding to the target resource usage group according to the required time interval in the data processing requirement, and obtaining the target resource usage data included in the target resource usage group in the target time period.

[0060] Among them, the data processing steps in the data formatting and cleaning module include a data cleaning step and a data formatting step.

[0061] The data cleaning steps are specifically as follows: the data formatting and cleaning module screens the time interval of the accessed target resource usage group according to the required time interval in the accessed data processing requirements, and screens out the target time period that is the same as the required time interval in the group time period corresponding to the target resource usage group, and screens the target resource usage group according to the target time period to obtain the target resource usage data included in the target resource usage group in the target time period.

[0062] For example, the required time interval in the data processing requirement is 0-3 minutes, and the grouping period corresponding to the target resource usage group is 5 minutes. Then, after filtering the 5 minutes corresponding to the target resource usage group to obtain the target time period with a time interval of 0-3 minutes, the target resource usage data included in the target time period of 0-3 minutes can be obtained, thereby narrowing the data range required by the inquirer and simplifying the output resource usage data.

[0063] Step S35, segmenting the target resource usage data in the target time period according to the segmentation time interval in the data processing requirement, obtaining a plurality of resource usage data segments, and calculating the data average values ​​corresponding to each resource usage data segment.

[0064] The data cleaning step also includes: after the data formatting and cleaning module obtains the target resource usage data, in order to further simplify the output and displayed resource usage data and avoid excessive output of resource usage data that may cause query personnel to view fatigue, this embodiment also proposes to time-segment the target resource usage data according to the segmentation time interval in the data processing requirements, and after obtaining multiple resource usage data segments, the resource usage rate in each resource usage data segment is calculated as an average value to obtain the data average value corresponding to each resource usage data segment.

[0065] For example, if the segmentation time interval in the data processing requirement is 30 seconds, the target resource usage data with a target time period of 3 minutes can be segmented into 6 resource usage data segments with a time period of 30 seconds. At this time, the data average value in each resource usage data segment is calculated to obtain 6 data means.

[0066] For example, a certain resource usage data segment represents the CPU usage information of the target resource usage data of the resource usage rate being the CPU usage rate per second in a period of 1-1.5 minutes. Then, the corresponding CPU usage information per second is added up and divided by 30 seconds to obtain the average CPU usage data of the resource usage data segment.

[0067] Step S36, converting the data average value according to the data conversion unit in the data processing requirement, and outputting a plurality of target display data for display.

[0068] In order to simplify data understanding, the data formatting step in this embodiment includes: according to the conversion data unit in the data processing requirement, the unit of each calculated data average value is converted to obtain the corresponding target display data.

[0069] For example, if the average value of CPU usage data obtained by calculation is 5%, and the conversion data unit is ‰, then the target display data obtained by conversion is 50‰.

[0070] Further, step S36 may include step S37: Step S37, obtaining a preset display template from the data display module, importing each target display data, the target time period corresponding to each target display data, the conversion data unit and the target classification type required for the target display data into the preset display template, and after obtaining the target display diagram, controlling the target display diagram to output and display.

[0071] In order to further improve the intuitiveness of data output display and avoid visual fatigue caused by single alphanumeric characters, assume that the target display data of a certain node obtained through the above steps includes {50‰, 53‰, 56‰, 57‰, 58‰, 59‰}, the target time period is 5:00:30-5:03, the conversion data unit is ‰, and the target classification type required for the target display data is CPU usage. Then, this information is imported into the preset display template in the data display module to generate the following: Figure 3 After the target display diagram is shown, the target display diagram is controlled to be output to the data display screen for display.

[0072] It should be noted that Figure 3 In order to display the target display graph only for the CPU usage of the x node, in the actual application process, the target display graph can be generated separately for the target display data corresponding to each node, or the target display data of the same classification type corresponding to each node can be combined and generated in the same target display graph.

[0073] This application also provides a data monitoring display device, please refer to Figure 4 , the data monitoring and display device comprises: The data monitoring module 10 is used to periodically monitor and obtain the initial resource usage data of each node in the cluster; The data classification storage module 20 is used to classify and store each initial resource usage data according to a preset classification type to obtain a plurality of resource usage groups; The data processing and display module 30 is used to extract target resource usage groups included in preset classification types matching the target classification types from a plurality of resource usage group groups, perform data processing on the target resource usage groups, and display the same.

[0074] Furthermore, the data monitoring module 10 is also used for: Control the timing http heartbeat request module to send an http heartbeat request to each node according to a preset monitoring time interval, so that each node responds to the http heartbeat request and sends the initial resource usage data in the target time period to the timing http heartbeat request module, wherein the target time period is the time range from the time point when each node sends the initial resource usage data to the timing http heartbeat request module to the current time point; The initial resource usage data transmitted by each node is obtained, and each initial resource usage data is sent to the data collection module via the timing http heartbeat request module.

[0075] Furthermore, the data classification storage module 20 is also used for: Accessing each initial resource usage data through a data collection module, extracting resource usage information from each initial resource usage data, and determining the information type of each resource usage information; After determining a number of preset classification types according to the received data classification index, resource usage information whose information type matches the preset classification type is classified into one group to obtain a number of resource usage groups.

[0076] Furthermore, the data processing and display module 30 is also used for: The data classification index is sent to the data display module, and the data display module is controlled to display the query icons corresponding to the preset classification types on the data display screen according to the preset classification types included in the data classification index.

[0077] Furthermore, the data processing and display module 30 is also used for: Determine the target classification type according to the preset classification type corresponding to the triggered query icon, and send the target classification type to the API receiving module; The control API receiving module selects several groups of resource usage groups stored in the data collection module according to the target classification type of the access, and obtains the target resource usage group that matches the target classification type, wherein the target resource usage group indicates that the preset classification type to which the resource usage group belongs is the same as the target classification type.

[0078] Furthermore, the data processing and display module 30 is also used for: Obtain the data processing requirements passed in through the data display module, and send the data processing requirements and target resource usage groups to the data formatting and cleaning module; The control data formatting and cleaning module selects a target time period matching the required time period in the group period corresponding to the target resource usage group according to the required time period in the data processing requirement, and obtains the target resource usage data included in the target resource usage group in the target time period; According to the segmentation time interval in the data processing requirements, the target resource usage data in the target time period is segmented, and after obtaining multiple resource usage data segments, the data average value corresponding to each resource usage data segment is calculated; According to the conversion data unit in the data processing requirements, the unit of the data average is converted, and multiple target display data are output for display.

[0079] Furthermore, the data processing and display module 30 is also used for: Obtain a preset display template from the data display module, import each target display data, the target time period corresponding to each target display data, the conversion data unit and the target classification type required for the target display data into the preset display template, and after obtaining the target display diagram, control the target display diagram for output display.

[0080] The data monitoring and display device provided by the present application adopts the data monitoring and display method in the above embodiment, which can solve the current technical problems of low efficiency and intuitiveness in querying resource usage data in each node. Compared with the prior art, the beneficial effects of the data monitoring and display device provided by the present application are the same as the beneficial effects of the data monitoring and display method provided by the above embodiment, and other technical features in the data monitoring and display device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0081] The present application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data monitoring and display method in the above-mentioned embodiment one.

[0082] Reference below Figure 5 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic devices in the embodiments of the present application may include but are not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions: tablet computers), PMPs (Portable Media Players: portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0083] like Figure 5 As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0084] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0085] The electronic device provided by the present application adopts the data monitoring and display method in the above embodiment, which can solve the current technical problems of low efficiency and intuitiveness in querying resource usage data in each node. Compared with the prior art, the beneficial effects of the electronic device provided by the present application are the same as the beneficial effects of the data monitoring and display method provided by the above embodiment, and the other technical features in the electronic device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0086] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0087] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0088] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the data monitoring and display method in the above-mentioned embodiment.

[0089] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0090] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0091] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by an electronic device, the electronic device: regularly monitors and obtains the initial resource usage data of each node in the cluster node; classifies and stores each initial resource usage data according to a preset classification type to obtain several groups of resource usage groups; extracts from the several groups of resource usage groups the target resource usage groups included in the preset classification type that matches the target classification type, and performs data processing on the target resource usage groups and displays them.

[0092] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0093] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0094] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0095] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned data monitoring and display method, and can solve the current technical problems of low efficiency and intuitiveness in querying resource usage data in each node. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the data monitoring and display method provided by the above-mentioned embodiment, and will not be repeated here.

[0096] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A data monitoring and display method, It is characterized in that The data monitoring and display method comprises: Regularly monitor and obtain the initial resource usage data of each node in the cluster; Classifying and storing each of the initial resource usage data according to a preset classification type to obtain a plurality of resource usage groups; From the plurality of resource usage groups, target resource usage groups included in the preset classification type matching the target classification type are extracted, and data processing is performed on the target resource usage groups and the groups are displayed.

2. The data monitoring and display method according to claim 1, It is characterized in that The step of regularly monitoring and acquiring the initial resource usage data of each node in the cluster node includes: Controlling the timing http heartbeat request module to send an http heartbeat request to each of the nodes according to a preset monitoring time interval, so that each of the nodes respectively responds to the http heartbeat request and sends the initial resource usage data in the target time period to the timing http heartbeat request module, wherein the target time period is a time range from a time point when each of the nodes sends the initial resource usage data to the timing http heartbeat request module to a current time point; The initial resource usage data transmitted by each of the nodes is obtained, and each of the initial resource usage data is sent to the data collection module via the timing http heartbeat request module.

3. The data monitoring and display method according to claim 2, It is characterized in that The step of classifying and storing each of the initial resource usage data according to the preset classification type to obtain a plurality of resource usage groups comprises: Accessing each of the initial resource usage data through the data collection module, extracting resource usage information from each of the initial resource usage data, and determining an information type of each of the resource usage information; After determining a number of the preset classification types according to the received data classification index, the resource usage information whose information type matches the preset classification type is grouped into one group to obtain the several groups of resource usage groups.

4. The data monitoring and display method according to claim 3, It is characterized in that After the step of determining a plurality of preset classification types according to the received data classification index, the step further includes: The data classification index is sent to the data display module, and the data display module is controlled to display query icons corresponding to each preset classification type on the data display screen according to the preset classification types included in the data classification index.

5. The data monitoring and display method according to claim 4, It is characterized in that The step of extracting target resource usage groups included in the preset classification type matching the target classification type from the plurality of resource usage groups comprises: Determine the target classification type according to the preset classification type corresponding to the triggered query icon, and send the target classification type to the API receiving module; Control the API receiving module to select the several groups of resource usage groups stored in the data collection module according to the target classification type accessed, and obtain the target resource usage grouping that matches the target classification type, wherein the target resource usage grouping indicates that the preset classification type to which the resource usage grouping belongs is the same as the target classification type.

6. The data monitoring and display method according to claim 5, It is characterized in that The step of processing and displaying data using the target resource group comprises: Acquire the data processing requirements passed in via the data display module, and send the data processing requirements and the target resource usage group to the data formatting and cleaning module; Control the data formatting and cleaning module to filter out a target time period matching the required time interval in the group time period corresponding to the target resource usage group according to the required time interval in the data processing requirement, and obtain the target resource usage data included in the target resource usage group in the target time period; According to the segmentation time interval in the data processing requirement, the target resource usage data in the target time period is segmented to obtain a plurality of resource usage data segments, and then the data average values ​​corresponding to each of the resource usage data segments are calculated; According to the conversion data unit in the data processing requirement, the unit of the data average value is converted, and a plurality of target display data are output for display.

7. The data monitoring and display method according to claim 6, It is characterized in that The step of outputting a plurality of target display data for display comprises: A preset display template is obtained from the data display module, each target display data, the target time period corresponding to each target display data, the conversion data unit and the target classification type required by the target display data are imported into the preset display template, and after obtaining the target display diagram, the target display diagram is controlled to be output and displayed.

8. A data monitoring and display device, It is characterized in that The data monitoring and display device comprises: The data monitoring module is used to periodically monitor and obtain the initial resource usage data of each node in the cluster; A data classification storage module, used to classify and store each of the initial resource usage data according to a preset classification type to obtain a plurality of resource usage groups; The data processing and display module is used to extract the target resource usage group included in the preset classification type matching the target classification type from the plurality of resource usage group groups, perform data processing on the target resource usage group and display it.

9. An electronic device, It is characterized in that The electronic device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data monitoring and display method according to any one of claims 1 to 7.

10. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data monitoring and display method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Monitoring data storage method and device and computer readable storage medium

    CN111221847A

  • Task scheduling method and device, equipment and storage medium

    CN114911598A

  • Cloud platform monitoring method and cloud platform monitoring system

    CN115827380A

  • Distributed file system monitoring method and device, computer equipment and medium

    CN116561076A