Monitoring data processing method, device, equipment and medium

Through real-time monitoring of data collection and storage in the InfluxDB database cluster, alarm prompts are generated when the detection threshold exceeds the standard, which solves the problem of monitoring data loss caused by abnormal InfluxDB storage data and achieves efficient management of monitoring data.

CN112199249BActive Publication Date: 2024-10-01CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010974498.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-16
Publication Date
2024-10-01
Estimated Expiration
2040-09-16

AI Technical Summary

Technical Problem

Existing technology is difficult to detect anomalies in InfluxDB stored data in real time, resulting in loss of monitoring data.

Method used

The monitoring data of the target database cluster is collected through the data collection service component and sent to the data storage service component to detect in real time whether it exceeds the preset threshold. If it exceeds, an alarm prompt is generated for supervision and processing.

Benefits of technology

Effectively prevent monitoring data loss, improve efficient supervision of monitoring data, and ensure the stable operation of data storage service components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112199249B_ABST
    Figure CN112199249B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device, equipment and medium for processing monitoring data. The method includes: collecting target monitoring data in a target database cluster through a data collection service component, and sending the target monitoring data to a data storage service component; if it is detected that the target monitoring data in the data storage service component exceeds the monitoring data threshold, an alarm prompt is generated to supervise the target monitoring data. The embodiment of the present invention effectively prevents the loss of monitoring data through real-time monitoring of the database cluster, thereby improving the efficient supervision of monitoring data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to data processing technology, and in particular to a monitoring data processing method, device, equipment and medium. Background Art

[0002] InfluxDB is an open source distributed time series, event and indicator database, written in Go language, without external dependencies, and designed to achieve distributed and horizontal scalability. InfluxDB includes APIs for storing and querying data, processing ETL or monitoring and alerting purposes in the background, user dashboards, and visualization and exploration of data. Currently, the monitoring of hosts or systems is mainly done by transferring the collected data to InfluxDB for storage through Telegraf and displaying it through Chronograf.

[0003] The drawback of the above solution is that it is difficult to detect abnormal situations in the stored data of InfluxDB in real time, such as the host processor resource usage exceeding the preset threshold; when an abnormality occurs in InfluxDB, it will cause the loss of monitoring data. Summary of the invention

[0004] The embodiments of the present application provide a monitoring data processing method, apparatus, device and medium, which can effectively prevent the loss of monitoring data through real-time monitoring of a database cluster, thereby improving the efficient supervision of monitoring data.

[0005] In a first aspect, an embodiment of the present invention provides a method for processing monitoring data, including:

[0006] Collect target monitoring data in the target database cluster through the data collection service component, and send the target monitoring data to the data storage service component;

[0007] If it is detected that the target monitoring data in the data storage service component exceeds the monitoring data threshold, an alarm prompt is generated for supervising the target monitoring data.

[0008] In a second aspect, an embodiment of the present invention provides a monitoring data processing device, including:

[0009] A data sending module, used to collect target monitoring data in a target database cluster through a data collection service component, and send the target monitoring data to a data storage service component;

[0010] The alarm prompt generation module is used to generate an alarm prompt if it is detected that the target monitoring data in the data storage service component exceeds the monitoring data threshold, so as to supervise the target monitoring data.

[0011] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0012] one or more processors;

[0013] a storage device for storing one or more programs,

[0014] When the one or more programs are executed by the one or more processors, the one or more processors implement any one of the monitoring data processing methods described in the embodiments of the present invention.

[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any one of the monitoring data processing methods described in the embodiments of the present invention.

[0016] The embodiment of the present invention collects target monitoring data in the target database cluster through the data collection service component, and sends the target monitoring data to the data storage service component; if it is detected that the target monitoring data in the data storage service component exceeds the monitoring data threshold, an alarm prompt is generated for supervising and processing the target monitoring data. The embodiment of the present invention effectively prevents the loss of monitoring data through real-time monitoring of the database cluster, thereby improving the efficient supervision of monitoring data. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a flowchart of a method for processing monitoring data in Embodiment 1 of the present invention;

[0018] Figure 2 is a flowchart of a method for processing monitoring data in Embodiment 2 of the present invention;

[0019] Figure 3 is a schematic diagram of the structure of a monitoring data processing device in Embodiment 3 of the present invention;

[0020] Figure 4 It is a schematic diagram of the structure of the electronic device in the fourth embodiment. DETAILED DESCRIPTION

[0021] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0022] Embodiment 1

[0023] Figure 1: is a flowchart of the monitoring data processing method in the first embodiment of the present invention. This embodiment can be applied to the case of real-time monitoring of a time series database. The method of this embodiment can be executed by a monitoring data processing device, which can be implemented in hardware and / or software and can be configured in an electronic device. The monitoring data processing method described in any embodiment of the present application can be implemented. Figure 1 As shown, the method specifically includes the following:

[0024] S110. Collect target monitoring data in the target database cluster through the data collection service component, and send the target monitoring data to the data storage service component.

[0025] In this embodiment, the target database cluster is a service cluster composed of a time series database; wherein the time series database is an open source distributed time series, event and indicator database, which can be used to store monitored or collected data. For example, the target monitoring data may be the write rate of the monitored host, the storage data of the monitored sensor, the storage data volume and other performance data of the monitored host. The time series database in this embodiment may be InfluxDB.

[0026] The data collection service component can be used to collect aggregated data stored in a time series database, such as Prometheus; and can use the Pull method to obtain aggregated data (i.e., target monitoring data) stored in the time series database; after collecting the target monitoring data, the data collection service component needs to send the collected target monitoring data to the data storage service component for storage, so as to achieve efficient storage of monitoring data.

[0027] Specifically, the data storage service component of this embodiment can adopt Elasticsearch; wherein, Elasticsearch can provide storage services, and it is an open source distributed, RESTful-style search and data analysis engine, and its underlying layer is the open source library Apache Lucene; it is powerful and easy to use; RESTful is a software architecture style and design style, which can provide a set of design principles and constraints; it is mainly used for client and server interaction software; software designed based on the RESTful style has functions such as simplicity, hierarchy and easy implementation of caching.

[0028] S120, detecting whether the target monitoring data in the data storage service component exceeds the monitoring data threshold; if so, executing S130; if not, executing S120.

[0029] In this embodiment, in order to ensure the storage efficiency of the data storage service component and prevent the loss of monitoring data due to failure of the data storage service component, it is necessary to detect in real time whether the target monitoring data in the data storage service component exceeds the preset monitoring data threshold, and perform timely processing based on the detection results.

[0030] S130: Generate an alarm prompt for monitoring and processing the target monitoring data.

[0031] In this embodiment, if it is detected that the target monitoring data in the data storage service component exceeds the preset monitoring data threshold, it is necessary to prompt the corresponding management personnel to achieve effective management of the monitoring data; among them, the display form of the alarm prompt can be achieved by notifying the relevant management personnel by email, playing the alarm prompt content on the display screen in rotation, or triggering an alarm.

[0032] Based on the above embodiment, optionally, before collecting the target monitoring data in the target database cluster through the data collection service component, the method of this embodiment further includes:

[0033] Deploy a time series database service component on the smart device according to the performance data of the smart device; wherein the performance data includes memory resource utilization and / or processor resource utilization;

[0034] Create a target database cluster based on the time series database service component.

[0035] In this embodiment, in order to improve the collection efficiency of the data collection service component, monitoring data from multiple time series databases can be collected simultaneously; wherein each time series database service component is deployed on an intelligent device and used as a cluster node to form a target database cluster; specifically, the intelligent device can be the host hardware, sensors and other monitorable hardware on the computer.

[0036] The performance data of a smart device can effectively reflect the normal operating status of the smart device; based on the performance data of the smart device, deploying a time series database service component on the smart device may include: taking a smart device whose performance data exceeds a performance data threshold as a candidate smart device, and deploying a time series database service component on each candidate smart device according to monitoring requirements; this embodiment selects smart devices whose performance data meets the requirements for deploying the time series database service component, which can improve the data transmission efficiency during the monitoring process, thereby effectively avoiding the problem of difficulty in transmitting monitoring data due to downtime of the smart device.

[0037] The embodiment of the present invention collects target monitoring data in the target database cluster through the data collection service component, and sends the target monitoring data to the data storage service component; if it is detected that the target monitoring data in the data storage service component exceeds the monitoring data threshold, an alarm prompt is generated for supervising and processing the target monitoring data. The embodiment of the present invention effectively prevents the loss of monitoring data through real-time monitoring of the database cluster, thereby improving the efficient supervision of monitoring data.

[0038] Embodiment 2

[0039] Figure 2 1 is a flow chart of the method for processing monitoring data in the second embodiment of the present invention. This embodiment is further expanded and optimized on the basis of the above embodiment, and can be combined with any optional solution in the above technical solution. Figure 2 As shown, the method includes:

[0040] S210: Determine a primary data collection service component and a secondary data collection service component from the data collection service components.

[0041] In this embodiment, in order to improve the collection efficiency of the data collection service component, a main data collection service component is combined with multiple secondary data collection service components as a group of collection services to achieve efficient collection of monitoring data; and the number of collection service groups in this embodiment can be adaptively adjusted according to the data capacity of the monitoring data to be collected.

[0042] S220. Collect target monitoring data in the target database cluster according to the primary data collection service component and the secondary data collection service component; and send the target monitoring data to the data storage service component.

[0043] In this embodiment, the collected monitoring data is transmitted in a relay manner through a main data collection service component and multiple secondary data collection service components; for example, the data can be collected mainly through multiple secondary data collection service components at the front end, and the main data collection service component collects and summarizes the data at the back end, and finally the main data collection service component transmits the summarized monitoring data to the data storage service component for effective storage.

[0044] In this embodiment, optionally, collecting target monitoring data in the target database cluster according to the primary data collection service component and the secondary data collection service component includes:

[0045] Collect initial monitoring data from the target database cluster through the secondary data collection service component;

[0046] If it is detected that the sum of the initial monitoring data in the secondary data collection service component exceeds the preset threshold, the initial monitoring data are sent to the primary data collection service component, and the primary data collection service component integrates the initial monitoring data to obtain the target monitoring data.

[0047] In this embodiment, in order to achieve high availability of the data collection service component, this embodiment adopts a hierarchical federal architecture deployment; wherein, the hierarchical federal architecture deployment is similar to a tree topology structure, and the upper-level data collection service component collects and aggregates the collected monitoring data from a large number of lower-level data collection service components; when the number of time series database clusters reaches a large scale, the pressure can be greatly dispersed to ensure the stable operation of the monitoring system.

[0048] Among them, the secondary data collection service component will collect multiple initial monitoring data at the same time and temporarily store them. In order to ensure the operating efficiency of the secondary data collection service component, it is necessary to set the data temporary storage threshold in the secondary data collection service component. If the current temporary storage data capacity in the secondary data collection service component exceeds the preset data temporary storage threshold, the current temporary storage data needs to be cleaned up in time and sent to the associated main data collection service component.

[0049] If the data collection service component contains multiple groups of main data collection service components and secondary data collection service components, it is necessary to establish an association relationship between each group of main data collection service components and the group of secondary data collection service components to generate a corresponding group identifier for each group, so as to ensure that the secondary data collection service component can effectively and quickly find the main data collection service component that needs to transmit data according to the group identifier when transmitting monitoring data.

[0050] S230, detecting whether the target monitoring data in the data storage service component exceeds the monitoring data threshold; if so, executing S240; if not, executing S230.

[0051] S240: Generate an alarm prompt for monitoring and processing the target monitoring data.

[0052] In this embodiment, optionally, generating an alarm prompt includes:

[0053] Determine the fault state of the target monitoring data according to the difference between the target monitoring data and the monitoring data threshold;

[0054] Generate an alarm prompt based on the fault status.

[0055] In this embodiment, the monitoring data threshold can be a threshold for the total number of data of the target monitoring data, or a threshold for the total data capacity of the target monitoring data; the total number of data and the total number of data of the target monitoring data stored in the data storage service component can affect the operating efficiency of the data storage service component. Therefore, it is necessary to determine the fault state of the target monitoring data based on the difference between the target monitoring data and the monitoring data threshold, so as to determine the generated alarm prompt.

[0056] In this embodiment, optionally, determining the fault state of the target monitoring data according to the difference between the target monitoring data and the monitoring data threshold value includes:

[0057] If it is detected that the difference between the target monitoring data and the monitoring data threshold is greater than or equal to the first difference, determining that the fault state of the target monitoring data is a serious fault;

[0058] If it is detected that the difference between the target monitoring data and the monitoring data threshold is smaller than the first difference, it is determined that the fault state of the target monitoring data is a common fault.

[0059] In this embodiment, the first difference is set to distinguish the severity of the fault state of the target monitoring data to ensure that corresponding alarm prompts are subsequently generated based on different fault states; wherein the first difference is set by technical management personnel based on the application performance of the data storage service component. For example, when the storage space is larger, the first difference is set larger; adaptive adjustments can also be made based on the application performance of different data storage service components.

[0060] In this embodiment, optionally, generating an alarm prompt according to the fault state includes:

[0061] If the fault status is a serious fault, a real-time alarm prompt will be generated;

[0062] If the fault status is a common fault, an alarm prompt will be generated within the preset alarm interval.

[0063] In this embodiment, the target monitoring data stored in the data storage service component can be processed on a scheduled basis, for example, scheduled retrieval or scheduled clearing upon expiration; therefore, in the case of serious failures, it is necessary to generate real-time alarm prompts to avoid the problem of excessive data volume causing the operation of the data storage service component to be paralyzed; for ordinary failures, this embodiment adopts cache processing first, that is, no processing is done first, and when the data volume is still too large within the pre-set alarm interval, an alarm prompt is generated, thereby reducing the number of alarm prompts and effectively alleviating the manpower consumption of processing personnel.

[0064] Based on the above embodiment, optionally, before collecting initial monitoring data from the target database cluster through the secondary data collection service component, the method of this embodiment further includes:

[0065] A monitoring configuration file is established based on the associated deployment relationship between the smart device identification and the time series database service component.

[0066] In this embodiment, since the data collection service component may collect monitoring data of the time series database on multiple smart devices at the same time, it is necessary to establish an associated deployment relationship between the smart device identification and the time series database service component, and establish a monitoring configuration file so that the data collection service component can collect monitoring data accurately and orderly.

[0067] Based on the above embodiment, optionally, initial monitoring data is collected from the target database cluster through a secondary data collection service component, including:

[0068] Based on the monitoring configuration file, initial monitoring data is collected from the target database cluster through the secondary data collection service component; wherein the monitoring configuration file is used by the secondary data collection service component to identify the time series database service component in the target database cluster for the monitoring data to be collected.

[0069] In this embodiment, the data collection service component collects the performance data of the smart device by monitoring the association between the time series database and the smart device identifier recorded in the configuration file to obtain initial monitoring data, which can effectively improve the data collection service component's effective management of the collected monitoring data.

[0070] Based on the above embodiment, optionally, the method of this embodiment further includes:

[0071] In the data storage service component, target backup data of the target monitoring data is generated.

[0072] In this embodiment, in order to prevent the problem of loss of monitoring data due to service suspension in the data storage service component, this embodiment sets a backup function in the data storage service component to perform background backup processing on the monitoring data stored in the data storage service component, which can effectively ensure the restorability of the monitoring data.

[0073] Based on the above embodiment, optionally, after sending the target monitoring data to the data storage service component, the method of this embodiment further includes:

[0074] The target monitoring data is integrated through the data storage service component to obtain a target monitoring document; wherein the target monitoring document includes the association relationship between the monitoring data description information and the monitoring data;

[0075] In response to a data query request sent through a data query interface, a data query is performed from a target monitoring document; wherein the data query request includes description information of the monitoring data to be queried.

[0076] In this embodiment, in order to facilitate the data storage service component to effectively manage the received monitoring data, the association between the monitoring data description information and the monitoring data is used to integrate the received monitoring data and store it in a document; for example, it can be stored in an Excel document.

[0077] In order to facilitate users to effectively query the required data, a data query interface is also set up, and the required data can be queried by sending a data query request by calling the data query interface. Specifically, data query from the target monitoring document includes: searching for the monitoring data description information to be queried from the target monitoring document, such as the name of the monitoring data; and returning the monitoring data associated with the monitoring data description information.

[0078] Based on the above embodiment, optionally, the method of this embodiment further includes:

[0079] The display template in the data display service component is used to display the target monitoring data on the data display interface.

[0080] In this embodiment, the data display service component can provide a visual interface and can intuitively display the collected monitoring data. For example, the data display service component can be Grafana; it includes an editing dashboard that can be customized by users; it has flexible and rich graphical options, can mix multiple styles, support day and night modes and multiple data sources, etc., and is a time series data display tool in network architecture and application analysis.

[0081] Specifically, based on the display templates in different data display service components, the target monitoring data can be written to the preset position in the display template, a target display file with the target monitoring data is generated, and displayed on the data display interface; this embodiment can display the monitoring data with different display templates, making its display form vivid, greatly improving the viewer's experience satisfaction.

[0082] The alarm prompt information generated by the data storage service component can also be displayed in real time on the data display interface. The content of the alarm prompt information can be displayed on the data display interface according to the generation time of the alarm prompt information. Among them, the alarm prompt information can also have different display templates. If it is a serious fault, you can choose a brighter color in the template for display; if it is a common fault, choose a single color in the template for display, so as to accurately highlight the severity of the fault of the target monitoring information according to the display template, which is conducive to real-time inspection by management personnel.

[0083] Embodiment 3

[0084] Figure 3 : is a schematic diagram of the structure of the monitoring data processing device in the third embodiment of the present invention. This embodiment can be applied to the case of real-time monitoring of a time series database. The device is configured in an electronic device and can implement the monitoring data processing method described in any embodiment of the present application. The device specifically includes the following:

[0085] The data sending module 310 is used to collect target monitoring data in the target database cluster through the data collection service component, and send the target monitoring data to the data storage service component;

[0086] The alarm prompt generating module 320 is used to generate an alarm prompt if it is detected that the target monitoring data in the data storage service component exceeds the monitoring data threshold, so as to supervise the target monitoring data.

[0087] Based on the above embodiment, optionally, the device of this embodiment further includes:

[0088] The component deployment module is used to deploy a time series database service component on the smart device according to the performance data of the smart device; wherein the performance data includes memory resource utilization and / or processor resource utilization.

[0089] The cluster creation module is used to create a target database cluster according to the time series database service component.

[0090] Based on the above embodiment, optionally, the data sending module 310 is specifically used for:

[0091] From the data collection service components, determine a primary data collection service component and a secondary data collection service component;

[0092] According to the primary data collection service component and the secondary data collection service component, target monitoring data in the target database cluster is collected.

[0093] Based on the above embodiment, optionally, the data sending module 310 is further specifically used for:

[0094] Collecting initial monitoring data from the target database cluster through the secondary data collection service component;

[0095] If it is detected that the sum of the initial monitoring data in the secondary data collection service component exceeds a preset threshold, the initial monitoring data are sent to the primary data collection service component, and the primary data collection service component integrates the initial monitoring data to obtain target monitoring data.

[0096] Based on the above embodiment, optionally, the device of this embodiment further includes:

[0097] The monitoring configuration file establishment module is used to establish a monitoring configuration file according to the associated deployment relationship between the smart device identification and the time series database service component.

[0098] Based on the above embodiment, optionally, the data sending module 310 is further specifically used for:

[0099] Based on the monitoring configuration file, initial monitoring data is collected from the target database cluster through the secondary data collection service component; wherein the monitoring configuration file is used by the secondary data collection service component to identify the timing database service component in the target database cluster from which the monitoring data to be collected is to be collected.

[0100] Based on the above embodiment, optionally, the device of this embodiment further includes:

[0101] The backup data generation module is used to generate target backup data of target monitoring data in the data storage service component.

[0102] Based on the above embodiment, optionally, the device of this embodiment further includes:

[0103] A target monitoring document determination module is used to integrate the target monitoring data through a data storage service component to obtain a target monitoring document; wherein the target monitoring document includes an association relationship between monitoring data description information and monitoring data;

[0104] The data query module is used to perform data query from the target monitoring document in response to a data query request sent through the data query interface; wherein the data query request includes description information of the monitoring data to be queried.

[0105] Based on the above embodiment, optionally, the alarm prompt generating module 320 is specifically used to:

[0106] Determining a fault state of the target monitoring data according to a difference between the target monitoring data and a monitoring data threshold;

[0107] Generate an alarm prompt based on the fault status.

[0108] Based on the above embodiment, optionally, the alarm prompt generating module 320 is further specifically used for:

[0109] If it is detected that the difference between the target monitoring data and the monitoring data threshold is greater than or equal to the first difference, determining that the fault state of the target monitoring data is a serious fault;

[0110] If it is detected that the difference between the target monitoring data and the monitoring data threshold is smaller than the first difference, it is determined that the fault state of the target monitoring data is a common fault.

[0111] Based on the above embodiment, optionally, the alarm prompt generating module 320 is further specifically used for:

[0112] If the fault state is a serious fault, a real-time alarm prompt is generated;

[0113] If the fault state is a common fault, an alarm prompt is generated within a preset alarm interval.

[0114] Based on the above embodiment, optionally, the device of this embodiment further includes:

[0115] The data display module is used to display the target monitoring data on the data display interface using the display template in the data display service component.

[0116] By using the monitoring data processing device of the third embodiment of the present invention, through real-time monitoring of the database cluster, the loss of monitoring data can be effectively prevented, thereby improving the efficient supervision of monitoring data.

[0117] The monitoring data processing device provided in the embodiment of the present invention can execute the monitoring data processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0118] Embodiment 4

[0119] Figure 4 is a schematic diagram of the structure of an electronic device in Embodiment 4 of the present invention. Figure 4 As shown, the electronic device includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of the processor 410 in the electronic device can be one or more. Figure 4 A processor 410 is taken as an example; the processor 410, the memory 420, the input device 430 and the output device 440 in the electronic device can be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.

[0120] The memory 420, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the monitoring data processing method in the embodiment of the present invention. The processor 410 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 420, that is, implements the monitoring data processing method provided in the embodiment of the present invention.

[0121] The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 420 may further include a memory remotely arranged relative to the processor 410, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0122] The input device 430 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device, and may include a keyboard, a mouse, etc. The output device 440 may include a display device such as a display screen.

[0123] Embodiment 5

[0124] This embodiment provides a storage medium containing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to implement the monitoring data processing method provided by the embodiment of the present invention.

[0125] Of course, the computer executable instructions of a storage medium including computer executable instructions provided by an embodiment of the present invention are not limited to the operations of the method described above, but can also execute related operations in the monitoring data processing method provided by any embodiment of the present invention.

[0126] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0127] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0128] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for processing monitoring data, It is characterized in that The method comprises: Deploy a time series database service component on the smart device according to the performance data of the smart device; wherein the performance data includes memory resource utilization and / or processor resource utilization; According to the time series database service component, create a target database cluster; Collect target monitoring data in the target database cluster through the data collection service component, and send the target monitoring data to the data storage service component; If it is detected that the target monitoring data in the data storage service component exceeds the monitoring data threshold, an alarm prompt is generated to supervise the target monitoring data; The method further comprises: In the data storage service component, target backup data of the target monitoring data is generated; Collecting the display template in the data display service component, and displaying the target monitoring data on the data display interface; After sending the target monitoring data to the data storage service component, the method further includes: The target monitoring data is integrated through a data storage service component to obtain a target monitoring document; wherein the target monitoring document includes an association relationship between monitoring data description information and monitoring data; In response to a data query request sent through a data query interface, performing a data query from the target monitoring document; wherein the data query request includes description information of the monitoring data to be queried; Wherein, collecting target monitoring data in the target database cluster through the data collection service component includes: From the data collection service components, determine a primary data collection service component and a secondary data collection service component; Collecting target monitoring data in a target database cluster according to the primary data collection service component and the secondary data collection service component; Wherein, collecting target monitoring data in a target database cluster according to the primary data collection service component and the secondary data collection service component includes: Collecting initial monitoring data from the target database cluster through the secondary data collection service component; If it is detected that the sum of the initial monitoring data in the secondary data collection service component exceeds a preset threshold, the initial monitoring data is sent to the primary data collection service component, and the primary data collection service component integrates the initial monitoring data to obtain target monitoring data; Before collecting initial monitoring data from the target database cluster through the secondary data collection service component, the method further includes: Establish a monitoring configuration file based on the associated deployment relationship between the smart device identification and the time series database service component; Wherein, collecting initial monitoring data from the target database cluster through the secondary data collection service component includes: Based on the monitoring configuration file, initial monitoring data is collected from the target database cluster through the secondary data collection service component; wherein the monitoring configuration file is used by the secondary data collection service component to identify the time series database service component of the target database cluster from which the monitoring data is to be collected; The generating of an alarm prompt includes: Determining a fault state of the target monitoring data according to a difference between the target monitoring data and a monitoring data threshold; Generate an alarm prompt according to the fault status; Wherein, determining the fault state of the target monitoring data according to the difference between the target monitoring data and the monitoring data threshold value includes: If it is detected that the difference between the target monitoring data and the monitoring data threshold is greater than or equal to the first difference, determining that the fault state of the target monitoring data is a serious fault; If it is detected that the difference between the target monitoring data and the monitoring data threshold is less than the first difference, determining that the fault state of the target monitoring data is a common fault; The generating of an alarm prompt according to the fault state includes: If the fault state is a serious fault, a real-time alarm prompt is generated; If the fault state is a common fault, an alarm prompt is generated within a preset alarm interval.

2. A monitoring data processing device, used to execute the monitoring data processing method according to claim 1, It is characterized in that The device comprises: A component deployment module, configured to deploy a time series database service component on the smart device according to performance data of the smart device; wherein the performance data includes memory resource utilization and / or processor resource utilization; A cluster creation module, used to create a target database cluster according to the time series database service component; A data sending module, used to collect target monitoring data in a target database cluster through a data collection service component, and send the target monitoring data to a data storage service component; An alarm prompt generation module is used to generate an alarm prompt if it is detected that the target monitoring data in the data storage service component exceeds the monitoring data threshold, so as to supervise and process the target monitoring data; A monitoring configuration file establishment module is used to establish a monitoring configuration file according to the associated deployment relationship between the smart device identification and the time series database service component; A backup data generation module, used to generate target backup data of target monitoring data in a data storage service component; A data display module, used to collect display templates in the data display service component and display the target monitoring data on the data display interface; A target monitoring document determination module is used to integrate the target monitoring data through a data storage service component to obtain a target monitoring document; wherein the target monitoring document includes an association relationship between monitoring data description information and monitoring data; The data query module is used to perform data query from the target monitoring document in response to a data query request sent through the data query interface; wherein the data query request includes description information of the monitoring data to be queried.

3. An electronic device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the monitoring data processing method as claimed in claim 1.

4. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the monitoring data processing method as claimed in claim 1 is implemented.