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

By calculating and visualizing the health data of the Hadoop cluster, it solves the problem that the existing monitoring platform cannot quickly locate problems and performance bottlenecks, and achieves efficient monitoring and resource optimization of the data cluster.

CN112131068BActive Publication Date: 2024-09-20BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910550239.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-24
Publication Date
2024-09-20
Estimated Expiration
2039-06-24

AI Technical Summary

Technical Problem

The existing Hadoop cluster monitoring platform cannot quickly locate problems, has serious performance bottlenecks, cannot meet the diverse and personalized needs of users, and has low scalability.

Method used

By obtaining the data to be monitored of the target data cluster, calculate the health data and store it in the monitoring alarm table, draw the health trend chart for visual display, and perform monitoring and alarm based on the monitoring alarm threshold and health trend chart to achieve three-dimensional data monitoring. ization and rapid problem location.

Benefits of technology

It improves the monitoring efficiency and user experience of the data cluster, meets the personalized needs of users, improves resource utilization, and overcomes performance bottlenecks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112131068B
    Figure CN112131068B
Patent Text Reader

Abstract

The present invention provides a data monitoring method and device, an electronic device, and a storage medium, and relates to the field of big data technology. The data monitoring method includes: obtaining the data to be monitored of the target data cluster; calculating the health data based on the data to be monitored, and storing the health data in the corresponding monitoring alarm table; based on the monitoring alarm table, drawing a health trend chart corresponding to the data to be monitored to visualize the health data corresponding to the target data cluster; obtaining the monitoring alarm threshold, and monitoring and alarming according to the monitoring alarm threshold and the health trend chart. The technical solution of the embodiment of the present invention can not only perform three-dimensional, visualized intelligent monitoring of the data cluster, and provide the resource utilization of the data cluster, but also has strong scalability, and can perform personalized and diversified settings on the monitoring platform to improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the rapid development of big data technology in recent years, big data technology has become more and more popular, and the basic storage and security related to big data have become increasingly prominent and important.

[0003] At present, the basic storage and computing framework of big data is Hadoop (Hadoop is a distributed system infrastructure developed by the Apache Foundation), and the mainstream integrated monitoring platform for Hadoop clusters is open source big data monitoring frameworks such as CDH (Cloudera's Distribution Including Apache Hadoop, Cloudera's Hadoop distributed data management platform) and HDP (Hortonworks Data Platform, Hortonworks' data management platform). When using these open source monitoring platforms to monitor data on Hadoop clusters, there are many uncontrollable factors. For example, the monitoring platform cannot quickly locate problems when they are found; the monitoring provided by the open source framework cannot meet the diversified and personalized needs of users using the Hadoop platform, and its scalability is low, which reduces the user experience; and when the amount of data stored in Hadoop continues to increase, the open source monitoring platform will have performance bottlenecks, affecting the operating efficiency of the Hadoop cluster.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a data monitoring method, a data monitoring device, an electronic device and a computer-readable storage medium, thereby at least to a certain extent overcoming the problems that the existing monitoring platform for monitoring data clusters cannot quickly locate problems when they are discovered, will have performance bottlenecks, cannot meet the diverse and personalized needs of users, and has low scalability.

[0006] Other features and advantages of the present invention will become apparent from the following detailed description, or may be learned in part by practice of the present invention.

[0007] According to a first aspect of an embodiment of the present invention, a data monitoring method is provided, comprising: obtaining data to be monitored of a target data cluster; calculating health data based on the data to be monitored, and storing the health data in a corresponding monitoring alarm table; based on the monitoring alarm table, drawing a health trend graph corresponding to the data to be monitored to visualize the health data corresponding to the target data cluster; obtaining a monitoring alarm threshold, and performing monitoring alarms based on the monitoring alarm threshold and the health trend graph.

[0008] In some example embodiments of the present invention, based on the aforementioned scheme, obtaining a monitoring alarm threshold, and performing monitoring alarm according to the monitoring alarm threshold and the health trend chart also includes: in response to monitoring alarm information of a health data, obtaining multiple historical health data associated with the health data through the health trend chart; adjusting the monitoring alarm threshold of the health data according to the multiple historical health data; and performing monitoring alarm according to the adjusted monitoring alarm threshold and the health trend chart.

[0009] In some example embodiments of the present invention, based on the aforementioned scheme, the obtaining of the monitoring alarm threshold and the monitoring alarm according to the monitoring alarm threshold and the health trend chart also includes: in response to an alarm message of health data, obtaining an input monitoring alarm threshold; and performing monitoring alarm according to the input monitoring alarm threshold and the health trend chart.

[0010] In some example embodiments of the present invention, based on the aforementioned scheme, the data to be monitored includes basic monitoring data and a storage level, and the method further includes: obtaining the basic monitoring data of the target data cluster in a preset manner; calculating first health data based on the basic monitoring data, and storing the first health data in a corresponding monitoring alarm table; calculating second health data corresponding to the storage level corresponding to the target data cluster, and storing the second health data in the corresponding monitoring alarm table; based on the monitoring alarm table, drawing a health trend chart corresponding to the basic monitoring data and the storage level to visualize the first health data and the second health data corresponding to the target data cluster; and issuing an alarm based on an adjustable monitoring alarm threshold and the health trend chart.

[0011] In some example embodiments of the present invention, based on the aforementioned scheme, the monitoring basic data includes at least task volume data, queue resource data and storage resource data, and the obtaining of the monitoring basic data of the target data cluster in a preset manner includes: calling the target interface to obtain the task volume data in the form of a command; obtaining the queue resource data through a web crawler; and obtaining the storage resource data from a data warehouse model corresponding to the target data cluster.

[0012] In some example embodiments of the present invention, based on the above solution, after acquiring the data to be monitored of the target data cluster, the method further includes: storing the data to be monitored in a relational database with a designed table structure.

[0013] In some example embodiments of the present invention, based on the aforementioned scheme, the monitoring alarm table is set in the relational database, and drawing the health trend graph corresponding to the data to be monitored based on the monitoring alarm table to visualize the health data corresponding to the target data cluster also includes: acquiring the health data stored in the relational database; drawing a health trend graph corresponding to the data type of the data to be monitored according to the data type of the health data; and sending the health trend graphs of different data types to the front end for visual display.

[0014] According to a second aspect of an embodiment of the present invention, a data monitoring device is provided, comprising: a data acquisition unit, used to acquire the data to be monitored of a target data cluster; a data calculation unit, used to calculate health data based on the data to be monitored, and store the health data in a corresponding monitoring alarm table; a data display unit, used to draw a health trend graph corresponding to the data to be monitored based on the monitoring alarm table to visualize the health data corresponding to the target data cluster; a data monitoring alarm unit, used to acquire a monitoring alarm threshold, and perform monitoring and alarm according to the monitoring alarm threshold and the health trend graph.

[0015] In an exemplary embodiment of the present invention, based on the aforementioned scheme, the data monitoring and alarm unit is configured to: respond to monitoring and alarm information of health data, obtain multiple historical health data associated with the health data through the health trend chart; adjust the monitoring and alarm threshold of the health data according to the multiple historical health data; and perform monitoring and alarm according to the adjusted monitoring and alarm threshold and the health trend chart.

[0016] In an exemplary embodiment of the present invention, based on the aforementioned scheme, the data monitoring alarm unit is configured to: obtain an input monitoring alarm threshold in response to an alarm message of health data; and perform monitoring alarm according to the input monitoring alarm threshold and the health trend chart.

[0017] In an exemplary embodiment of the present invention, based on the aforementioned scheme, the data monitoring device also includes: a monitoring basic data acquisition unit, which is used to acquire the monitoring basic data of the target data cluster in a preset manner; a first health data calculation unit, which is used to calculate the first health data based on the monitoring basic data, and store the first health data in the corresponding monitoring alarm table; a second health data calculation unit, which is used to calculate the second health data corresponding to the storage level corresponding to the target data cluster, and store the second health data in the corresponding monitoring alarm table; a health data display unit, which is used to draw the monitoring basic data and the health trend graph corresponding to the storage level based on the monitoring alarm table to visualize the first health data and the second health data corresponding to the target data cluster; a monitoring alarm unit, which is used to issue an alarm based on an adjustable monitoring alarm threshold and the health trend graph.

[0018] In an exemplary embodiment of the present invention, based on the aforementioned scheme, the monitoring basic data acquisition unit is configured to: call the target interface to obtain the task volume data in the form of a command; obtain the queue resource data through a web crawler; and obtain the storage resource data from the data warehouse model corresponding to the target data cluster.

[0019] In an exemplary embodiment of the present invention, based on the above-mentioned solution, the data monitoring device is configured to: store the data to be monitored in a relational database with a designed table structure.

[0020] In an exemplary embodiment of the present invention, based on the aforementioned scheme, the data display unit is configured to: obtain the health data stored in the relational database; draw a health trend chart corresponding to the data type of the monitored data corresponding to the health data; and send the health trend charts of different data types to the front end for visual display.

[0021] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor; and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, any one of the data monitoring methods described above is implemented.

[0022] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the data monitoring method according to any one of the above items.

[0023] The technical solution provided by the embodiment of the present invention may have the following beneficial effects:

[0024] The data monitoring method in the exemplary embodiment of the present invention calculates the health data of the target data cluster based on the monitored data of the target data cluster, and stores the health data in the corresponding monitoring alarm table; draws a health trend chart corresponding to the health data according to the monitoring alarm table and displays it visually; and performs monitoring and alarming according to the monitoring alarm threshold and the health trend chart. On the one hand, the multiple monitored data of the target data cluster are calculated and converted into health data, stored in the monitoring alarm table and drawn into a health trend chart for display, which not only makes the monitoring of the target data cluster more three-dimensional and visual, but also stores the health data in the monitoring alarm table, and when a problem occurs in the target data cluster, the problem point can be quickly and conveniently located; on the other hand, monitoring and alarming are performed according to the monitoring alarm threshold and the health trend chart, and the user can adjust the monitoring alarm threshold according to the health trend chart so that the target data cluster can reasonably allocate resources, improve the resource utilization of the target data cluster, meet the user's personalized and diversified needs for using the monitoring platform, and improve the user's experience.

[0025] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings herein are incorporated into and constitute a part of the specification, showing embodiments consistent with the present invention, and together with the specification, are used to explain the principles of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0027] Figure 1 A schematic diagram schematically illustrates a data monitoring method according to some embodiments of the present invention;

[0028] Figure 2 A schematic diagram schematically illustrates health data of a target data cluster according to some embodiments of the present invention;

[0029] Figure 3 A schematic diagram schematically shows a partial effect diagram of a health trend diagram displayed on a front end according to some embodiments of the present invention;

[0030] Figure 4 A schematic diagram schematically shows monitoring alarms and post-monitoring adjustments of the ratio of occupied memory to allocated memory in a queue according to some embodiments of the present invention;

[0031] Figure 5 A schematic diagram schematically illustrates the calculation of health data of a storage tier according to some embodiments of the present invention;

[0032] Figure 6 A schematic diagram schematically illustrates a monitoring structure of a target data cluster according to some embodiments of the present invention;

[0033] Figure 7 A schematic diagram schematically shows a data monitoring device according to some embodiments of the present invention;

[0034] Figure 8 A schematic diagram of the structure of a computer system of an electronic device according to some embodiments of the present invention is shown;

[0035] Fig. 9 A schematic diagram of a computer-readable storage medium according to some embodiments of the present invention is schematically shown.

[0036] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION

[0037] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the present invention will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0038] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present invention. However, those skilled in the art will appreciate that the technical solution of the present invention can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring various aspects of the present invention.

[0039] Furthermore, the drawings are only schematic illustrations and are not necessarily drawn to scale. The block diagrams shown in the drawings are only functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0040] In this example embodiment, a data monitoring method is first provided, which can be applied to a Hadoop cluster (mart). Figure 1 The following schematic diagrams schematically illustrate data monitoring methods according to some embodiments of the present invention. Figure 1 As shown, the data monitoring method may include the following steps:

[0041] Step S110, obtaining the data to be monitored of the target data cluster;

[0042] Step S120, calculating health data according to the data to be monitored, and storing the health data in a corresponding monitoring alarm table;

[0043] Step S130, based on the monitoring alarm table, drawing a health trend graph corresponding to the monitored data to visualize the health data corresponding to the target data cluster;

[0044] Step S140, obtaining a monitoring alarm threshold, and performing a monitoring alarm according to the monitoring alarm threshold and the health trend graph.

[0045] According to the data monitoring method in this example embodiment, on the one hand, multiple monitored data of the target data cluster are calculated and converted into health data, stored in a monitoring alarm table and drawn into a health trend chart for display, which not only makes the monitoring of the target data cluster more three-dimensional and visual, but also stores the health data in the monitoring alarm table, so that when a problem occurs in the target data cluster, the problem point can be located quickly and conveniently; on the other hand, monitoring and alarm are performed according to the monitoring alarm threshold and the health trend chart, and the user can adjust the monitoring alarm threshold according to the health trend chart so that the target data cluster can reasonably allocate resources, improve the resource utilization of the target data cluster, meet the user's personalized and diversified needs for using the monitoring platform, and improve the user's usage experience.

[0046] Next, the data monitoring method in this example embodiment will be further described.

[0047] In step S110 , the data to be monitored of the target data cluster is obtained.

[0048] In an exemplary embodiment of the present invention, the target data cluster may refer to a data group that needs to be monitored. For example, in this exemplary embodiment, the target data cluster may be a Hadoop cluster. Of course, the target data cluster may also be a Kafka (Kafka is an open source stream processing platform developed by the Apache Software Foundation) cluster, and this exemplary embodiment does not make any special restrictions on this. The data to be monitored may refer to the data in the target data cluster that needs to be monitored and alarmed, such as the number of pending tasks in the message queue, resource occupancy, and task timeout, and this exemplary embodiment does not make any special restrictions on this.

[0049] Furthermore, after obtaining the data to be monitored of the target data cluster, the system stores the data to be monitored in a relational database with a designed table structure. A relational database may refer to a database composed of multiple two-dimensional row and column tables that can be connected to each other. For example, in this example embodiment, the relational database may be mySQL (a relational database that stores data in different tables). Of course, this example embodiment is not limited to this. Developers can design the corresponding table structure in the relational database in advance according to the needs. After obtaining the data to be monitored of the target data cluster, the data to be monitored is stored in the relational database with a designed table structure. By storing the data to be monitored in the table structure of the relational database, data reading is more convenient. At the same time, when there is a problem with the data, it can be quickly queried and located through the table structure, thereby improving the processing efficiency of the system.

[0050] In step S120, health data is calculated according to the data to be monitored, and the health data is stored in a corresponding monitoring alarm table.

[0051] In an example embodiment of the present invention, health data may refer to data calculated based on the data to be monitored and used to characterize the health of the data to be monitored (it may also refer to an indicator used to monitor and alarm the data to be monitored). For example, health data may refer to the ratio of occupied memory resources in a message queue to the total memory allocated to the message queue. When the ratio is less than a critical value, it indicates that the message queue is healthy. When the ratio is greater than a critical value, it indicates that the message queue is unhealthy. Of course, this is only a schematic illustration and should not impose any special limitations on this example embodiment. The monitoring alarm table may refer to a table structure pre-constructed by a developer in a relational database to store health data corresponding to the data to be monitored.

[0052] Figure 2 A schematic diagram schematically shows health data of a target data cluster according to some embodiments of the present invention.

[0053] refer to Figure 2 As shown, health data (which can also be considered as monitoring alarm indicators) 201 may include the ratio of the occupied memory in the queue to the allocated memory of the queue 202, the CPU monitoring alarm in the queue 203, the task source ratio 204, the task progress monitoring alarm 205, the task timeout monitoring alarm 206 and the number of pending tasks in the queue 207. It is easy to understand that the health data in the present disclosure and the schematic diagram are only schematic illustrations, and the present exemplary embodiment is not limited thereto.

[0054] Specifically, the system obtains the health data stored in the relational database, and draws a health trend graph of the corresponding data type according to the data type of the data to be monitored corresponding to the health data, and sends the health trend graphs of different data types to the front end for visual display. The data type may refer to the type corresponding to the data to be monitored. For example, the data type may be the number of tasks corresponding to the message queue, the storage resources occupied by the message queue, and the task timeout duration, etc. This example embodiment does not specifically limit this. By generating a health trend graph based on the health data corresponding to different data types of the data to be monitored and displaying different data by category, users can accurately and quickly find the data that needs to be monitored, thereby improving the user experience.

[0055] In step S130 , based on the monitoring alarm table, a health trend graph corresponding to the monitored data is drawn to visualize the health data corresponding to the target data cluster.

[0056] In an example embodiment of the present invention, a health trend graph may refer to a data graph drawn according to the health data corresponding to the data to be monitored, which presents the data changes and health status of the target data cluster to the user in an intuitive manner. For example, the health trend graph may be a data line graph corresponding to the health data, time, and data volume. Of course, the health trend graph may also be a bar graph or a pie chart, which is not specifically limited in this example embodiment. The system draws a health trend graph corresponding to the data to be monitored based on the health data stored in the monitoring alarm table, and sends the health trend graph to the front end (client) for display to the user. By drawing the health data into a health trend graph and presenting it to the user, the user's monitoring of the target data cluster can be three-dimensional and visualized, thereby improving the user's experience.

[0057] Figure 3 A schematic diagram schematically shows a partial effect diagram of a health trend diagram displayed on the front end according to some embodiments of the present invention.

[0058] refer to Figure 3 As shown, Figure 301 may refer to the health trend graph corresponding to the monitored data "average running time of completed tasks in the queue", Figure 302 may refer to the health trend graph corresponding to the monitored data "memory usage in the queue", and Figure 303 may refer to the health trend graph corresponding to the monitored data "CPU usage in the queue". The health trend graph can intuitively display the relationship between data usage, time and occupancy in the target data cluster, making data monitoring more three-dimensional, visual and precise, thereby improving user experience.

[0059] In step S140, a monitoring alarm threshold is obtained, and a monitoring alarm is performed according to the monitoring alarm threshold and the health trend graph.

[0060] In an example embodiment of the present invention, the monitoring alarm threshold may refer to a value automatically controlled or input by a user for triggering an alarm for abnormal data. For example, an alarm may be issued when the proportion of the occupied memory resources in the message queue to the total memory allocated to the message queue exceeds 80%, or an alarm may be issued when the number of pending tasks in the message queue exceeds 10. Of course, the monitoring alarm threshold may also be other values ​​for triggering an alarm for abnormal data, and this example embodiment does not make special restrictions on this. A standard line is set in the health trend chart based on the obtained monitoring alarm threshold, and an alarm is issued when the data in the health trend chart exceeds or falls below the standard line (for example, the display color of the abnormal point data may be modified, or a message may be sent for reminder, and this example embodiment does not make special restrictions on this).

[0061] Specifically, the system responds to the monitoring alarm information of a health data, obtains multiple historical health data associated with the health data through the health trend chart; adjusts the monitoring alarm threshold of the health data according to the multiple historical health data; and performs monitoring alarm according to the adjusted monitoring alarm threshold and the health trend chart. The monitoring alarm information may refer to the notification information generated when the health data at a certain time exceeds or falls below the monitoring alarm threshold. Multiple historical health data may refer to other health data associated with the data type of the monitored data corresponding to the health data that generates the alarm. For example, when the proportion of the occupied memory resources in a message queue to the total memory allocated to the message queue exceeds the monitoring alarm threshold, multiple historical health data may refer to the proportion of the occupied memory resources in other message queues to the total memory allocated to the message queue. Of course, this is only a schematic description, and this example embodiment is not limited to this. When the system receives the monitoring alarm information of a health data, the system obtains multiple historical health data associated with the health data, and determines the health status corresponding to the multiple historical health data, and adjusts the monitoring alarm threshold corresponding to the health data according to the health status of the multiple historical health data. The system continues to monitor and alarm according to the adjusted health data and the health trend chart.

[0062] Optionally, the system responds to an alarm message of health data and obtains an input monitoring alarm threshold; and performs monitoring alarm according to the input monitoring alarm threshold and the health trend graph. The input monitoring alarm threshold may refer to a monitoring alarm threshold input by a user through a preset input port after viewing or receiving monitoring alarm information, and the system adjusts the original monitoring alarm threshold according to the monitoring alarm threshold input by the user. By adjusting the original monitoring alarm threshold through the monitoring alarm threshold input by the user, the user can independently adjust the monitoring alarm threshold so that the target data cluster can reasonably allocate resources, improve the resource utilization of the target data cluster, meet the user's personalized and diversified needs for using the monitoring platform, and improve the user's experience.

[0063] Figure 4 A schematic diagram schematically shows monitoring alarms and post-monitoring adjustments of the ratio of occupied memory to allocated memory in a queue according to some embodiments of the present invention.

[0064] refer to Figure 4 As shown, the memory occupancy of queues A, B and C in the target data cluster is monitored, where each small box represents the memory resources in the queue, the darker small box 401 represents that the memory is occupied, and the lighter small box 402 represents that the memory is not occupied. Assume that the occupied memory in queue A accounts for 100% of the queue allocated memory, the occupied memory in queue B accounts for 60% of the queue allocated memory, and the occupied memory in queue A accounts for 0% of the queue allocated memory. At this time, the system detects that the health data of queue A exceeds the original monitoring alarm threshold and issues an alarm. The system or user knows that queue C occupies less memory based on the historical health data of queues B and C associated with queue A. Therefore, the system or user adjusts the monitoring alarm threshold of queues A and C to make the system reallocate the total memory of queues A and C. By autonomously adjusting the monitoring alarm threshold, the target data cluster can reasonably allocate resources, improve the resource utilization of the target data cluster, meet the personalized and diversified needs of users for using the monitoring platform, and improve the user experience.

[0065] In another example embodiment of the present invention, the data to be monitored may include basic monitoring data and storage levels. The system obtains the basic monitoring data of the target data cluster in a preset manner; calculates first health data based on the basic monitoring data, and stores the first health data in a corresponding monitoring alarm table; calculates second health data corresponding to the storage level corresponding to the target data cluster, and stores the second health data in the corresponding monitoring alarm table; based on the monitoring alarm table, draws a health trend graph corresponding to the basic monitoring data and the storage level to visualize the first health data and the second health data corresponding to the target data cluster; and issues an alarm based on an adjustable monitoring alarm threshold and a health trend graph.

[0066] Monitoring basic data may refer to basic data to be monitored in the target data cluster (in this example embodiment, monitoring basic data is relative to storage level). For example, monitoring basic data may be the occupied memory resources in the message queue and the total memory allocated to the message queue, the number of pending tasks in the message queue, and the total number of tasks in the message queue. This example embodiment does not specifically limit this. The storage level may refer to the data storage structure of the database in the target data cluster (in this example embodiment, the storage level is relative to monitoring basic data). The first health data may refer to the health data corresponding to the monitoring basic data, and the second health data may refer to the health data corresponding to the storage level.

[0067] Figure 5 A schematic diagram of storage tier health data calculation according to some embodiments of the present invention is schematically shown.

[0068] refer to Figure 5 As shown, in step S510, the cluster storage resource (which can be considered as the general person in charge) in the storage hierarchy of the target data cluster standardizes the storage directory, makes the storage resources transparent, and distributes the storage resources to the third-level directory storage resources;

[0069] Step S520: The third-level directory storage resource in the storage hierarchy (which can be considered as the person in charge of the third-level directory) merges small files, removes cold data, aggregates table-level storage resources, and returns the data to the cluster storage resource;

[0070] In step S530, the cluster storage resource calculates the health data (data to be monitored) corresponding to the storage level according to the data returned by the third-level directory storage resource. For example, the health data corresponding to the storage level may include the data storage period, the data size, and the number of small files (limited by the storage period), etc. It is understandable that this is only an illustrative description and should not cause any special limitation to the present disclosure.

[0071] Furthermore, the monitoring basic data may include at least task volume data, queue resource data and storage resource data. The system obtains the monitoring basic data of the target data cluster in a preset manner, which may include calling the target interface to obtain task volume data in the form of a command, obtaining queue resource data through a web crawler, and obtaining storage resource data from the data warehouse model corresponding to the target data cluster. This example embodiment is not limited to this.

[0072] Figure 6 A schematic diagram schematically shows a monitoring structure of a target data cluster according to some embodiments of the present invention.

[0073] refer to Figure 6As shown, the monitoring module of the target data cluster may include a task monitoring module 601, a queue resource monitoring module 602, a storage monitoring module 603, and a health data calculation module 604. The task monitoring module 601 may obtain task volume data by calling the target interface in a command manner; the queue resource monitoring module 602 may obtain queue resource data by a web crawler; the storage monitoring module 603 may obtain storage resource data from the data warehouse model corresponding to the target data cluster; the health data calculation module 604 may obtain the data to be monitored collected by the task monitoring module 601, the queue resource monitoring module 602, and the storage monitoring module 603, and calculate the health data corresponding to the data to be monitored.

[0074] It should be noted that, although the steps of the method of the present invention are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0075] In addition, in this exemplary embodiment, a data monitoring device is also provided. Figure 7 As shown, the data monitoring device 700 includes: a data acquisition unit 710 for acquiring the data to be monitored of the target data cluster; a data calculation unit 720 for calculating the health data based on the data to be monitored, and storing the health data in the corresponding monitoring alarm table; a data display unit 730 for drawing a health trend chart corresponding to the data to be monitored based on the monitoring alarm table to visualize the health data corresponding to the target data cluster; a data monitoring alarm unit 740 for acquiring a monitoring alarm threshold, and performing monitoring alarms based on the monitoring alarm threshold and the health trend chart.

[0076] In an exemplary embodiment of the present invention, based on the aforementioned scheme, the data monitoring and alarm unit 740 is configured to: in response to monitoring and alarm information of a health data, obtain multiple historical health data associated with the health data through the health trend chart; adjust the monitoring and alarm threshold of the health data according to the multiple historical health data; and perform monitoring and alarm according to the adjusted monitoring and alarm threshold and the health trend chart.

[0077] In an exemplary embodiment of the present invention, based on the aforementioned scheme, the data monitoring alarm unit 740 is configured to: obtain an input monitoring alarm threshold in response to an alarm message of health data; and perform monitoring alarm according to the input monitoring alarm threshold and the health trend chart.

[0078] In an exemplary embodiment of the present invention, based on the aforementioned scheme, the data monitoring device 700 also includes: a monitoring basic data acquisition unit, which is used to acquire the monitoring basic data of the target data cluster in a preset manner; a first health data calculation unit, which is used to calculate the first health data based on the monitoring basic data, and store the first health data in the corresponding monitoring alarm table; a second health data calculation unit, which is used to calculate the second health data corresponding to the storage level corresponding to the target data cluster, and store the second health data in the corresponding monitoring alarm table; a health data display unit, which is used to draw the monitoring basic data and the health trend graph corresponding to the storage level based on the monitoring alarm table to visualize the first health data and the second health data corresponding to the target data cluster; a monitoring alarm unit, which is used to alarm according to an adjustable monitoring alarm threshold and the health trend graph.

[0079] In an exemplary embodiment of the present invention, based on the aforementioned scheme, the monitoring basic data acquisition unit is configured to: call the target interface to obtain the task volume data in the form of a command; obtain the queue resource data through a web crawler; and obtain the storage resource data from the data warehouse model corresponding to the target data cluster.

[0080] In an exemplary embodiment of the present invention, based on the above-mentioned solution, the data monitoring device 700 is configured to: store the data to be monitored in a relational database with a designed table structure.

[0081] In an exemplary embodiment of the present invention, based on the aforementioned scheme, the data display unit 730 is configured to: obtain the health data stored in the relational database; draw a health trend chart corresponding to the data type of the monitored data corresponding to the health data; and send the health trend charts of different data types to the front end for visual display.

[0082] The specific details of each module of the above-mentioned data monitoring device have been described in detail in the corresponding data monitoring method, so they will not be repeated here.

[0083] It should be noted that, although several modules or units of the data monitoring device are mentioned in the above detailed description, this division is not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0084] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above data monitoring method is also provided.

[0085] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as systems, methods or program products. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: complete hardware embodiments, complete software embodiments (including firmware, microcode, etc.), or embodiments combining hardware and software aspects, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0086] Refer to the following Figure 8 An electronic device 800 according to such an embodiment of the present invention is described. Figure 8 The electronic device 800 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0087] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one storage unit 820, a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810), and a display unit 840.

[0088] The storage unit stores program codes, which can be executed by the processing unit 810, so that the processing unit 810 performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 810 can perform the following steps: Figure 1 In step S110 shown in the figure, the data to be monitored of the target data cluster is obtained; in step S120, the health data is calculated according to the data to be monitored, and the health data is stored in the corresponding monitoring alarm table; in step S130, based on the monitoring alarm table, a health trend chart corresponding to the data to be monitored is drawn to visualize the health data corresponding to the target data cluster; in step S140, a monitoring alarm threshold is obtained, and monitoring alarm is performed according to the monitoring alarm threshold and the health trend chart.

[0089] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 821 and / or a cache memory unit 822 , and may further include a read-only memory unit (ROM) 823 .

[0090] The storage unit 820 may also include a program / utility 824 having a set (at least one) of program modules 825, such program modules 825 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0091] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0092] The electronic device 800 may also communicate with one or more external devices 870 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 800, and / or communicate with any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 850. Furthermore, the electronic device 800 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 860. As shown, the network adapter 860 communicates with other modules of the electronic device 800 via a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0093] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.

[0094] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible embodiments, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0095] refer to Fig. 9 As shown, a program product 900 for implementing the above-mentioned data monitoring method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0096] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may 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 (non-exhaustive list) of readable storage media 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.

[0097] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0098] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0099] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0100] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0101] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.

[0102] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0103] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A data monitoring method, characterized in that: include: Obtain the data to be monitored of the target data cluster; The data to be monitored includes monitoring basic data and storage levels; Calculating health data according to the data to be monitored, and storing the health data in a corresponding monitoring alarm table, including: obtaining basic monitoring data of a target data cluster in a preset manner, calculating first health data according to the basic monitoring data, calculating second health data corresponding to the storage level corresponding to the target data cluster, and storing the first health data and the second health data in corresponding monitoring alarm tables respectively; Based on the monitoring alarm table, a health trend graph corresponding to the monitored data is drawn to visualize the health data corresponding to the target data cluster; Obtaining a monitoring alarm threshold, and performing monitoring alarm according to the monitoring alarm threshold and the health trend graph; The calculating of the second health data corresponding to the storage level corresponding to the target data cluster includes: standardizing the storage directory of cluster storage resources in the storage level of the target data cluster, making the storage resources transparent, and distributing the storage resources to the third-level directory storage resources; The third-level directory storage resources in the storage hierarchy merge small files, remove cold data, aggregate table-level storage resources, and return data to the cluster storage resources; The cluster storage resource calculates the second health data corresponding to the storage level according to the data returned by the third-level directory storage resource.

2. The data monitoring method according to claim 1, characterized in that: Obtaining a monitoring alarm threshold, and performing monitoring alarm according to the monitoring alarm threshold and the health trend graph further includes: In response to monitoring alarm information of a health data, acquiring a plurality of historical health data associated with the health data through the health trend graph; adjusting a monitoring alarm threshold of the health data according to the plurality of historical health data; Monitoring and alarming are performed according to the adjusted monitoring and alarm threshold and the health trend graph.

3. The data monitoring method according to claim 2, characterized in that: The obtaining of the monitoring alarm threshold and performing monitoring alarm according to the monitoring alarm threshold and the health trend graph further includes: In response to an alarm message of health data, obtaining an input monitoring alarm threshold; Monitoring alarm is performed according to the input monitoring alarm threshold and the health trend chart.

4. The data monitoring method according to claim 1, characterized in that: The method further comprises: Based on the monitoring alarm table, drawing a health trend graph corresponding to the monitoring basic data and the storage level to visualize the first health data and the second health data corresponding to the target data cluster; Alarms are issued based on adjustable monitoring alarm thresholds and the health trend graph.

5. The data monitoring method according to claim 4, characterized in that: The monitoring basic data includes at least task volume data, queue resource data and storage resource data. The monitoring basic data of the target data cluster obtained by a preset method includes: Calling the target interface to obtain the task volume data in a command manner; Acquiring the queue resource data through a web crawler; and The storage resource data is acquired from a data warehouse model corresponding to the target data cluster.

6. The data monitoring method according to claim 1, characterized in that: After obtaining the data to be monitored of the target data cluster, the method further includes: The data to be monitored is stored in a relational database with a designed table structure.

7. The data monitoring method according to any one of claims 1 to 6, characterized in that: The monitoring alarm table is set in a relational database, and based on the monitoring alarm table, drawing a health trend graph corresponding to the monitored data to visualize the health data corresponding to the target data cluster also includes: Get the health data stored in the relational database; According to the data type of the to-be-monitored data corresponding to the health data, a health trend graph corresponding to the data type is drawn; The health trend graphs of different data types are sent to the front end for visual display.

8. A data monitoring device, characterized in that: include: A data acquisition unit, used to acquire the data to be monitored of the target data cluster; The data to be monitored includes monitoring basic data and storage levels; A data calculation unit, used to calculate health data according to the data to be monitored, and store the health data in a corresponding monitoring alarm table, including: obtaining monitoring basic data of a target data cluster in a preset manner, calculating first health data according to the monitoring basic data, calculating second health data corresponding to the storage level corresponding to the target data cluster, and storing the first health data and the second health data in the corresponding monitoring alarm table respectively; A data display unit, configured to draw a health trend graph corresponding to the monitored data based on the monitoring alarm table to visualize the health data corresponding to the target data cluster; A data monitoring and alarm unit, used to obtain a monitoring and alarm threshold, and to perform monitoring and alarm according to the monitoring and alarm threshold and the health trend graph; The calculating of the second health data corresponding to the storage level corresponding to the target data cluster includes: standardizing the storage directory of cluster storage resources in the storage level of the target data cluster, making the storage resources transparent, and distributing the storage resources to the third-level directory storage resources; The third-level directory storage resources in the storage hierarchy merge small files, remove cold data, aggregate table-level storage resources, and return data to the cluster storage resources; The cluster storage resource calculates the second health data corresponding to the storage level according to the data returned by the third-level directory storage resource.

9. An electronic device, comprising: processor; as well as A memory having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by the processor, implement the data monitoring method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the data monitoring method according to any one of claims 1 to 7.