CN117724930A - Data monitoring method, device, computer equipment and storage medium - Google Patents

Data monitoring method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN117724930A
CN117724930A CN202311742736.1A CN202311742736A CN117724930A CN 117724930 A CN117724930 A CN 117724930A CN 202311742736 A CN202311742736 A CN 202311742736A CN 117724930 A CN117724930 A CN 117724930A
Authority
CN
China
Prior art keywords
data
monitoring
data monitoring
information
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311742736.1A
Other languages
Chinese (zh)
Inventor
赵永会
邓力凡
方媛
吴佳杰
马子元
李诗凝
殷莹
魏包桑
杨海力
丁玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Life Insurance Co ltd
Original Assignee
China Life Insurance Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Life Insurance Co ltd filed Critical China Life Insurance Co ltd
Priority to CN202311742736.1A priority Critical patent/CN117724930A/en
Publication of CN117724930A publication Critical patent/CN117724930A/en
Pending legal-status Critical Current

Links

Abstract

The present application relates to a data monitoring method, apparatus, computer device, computer readable storage medium and computer program product. The method comprises the following steps: acquiring data monitoring configuration information, wherein the data monitoring configuration information comprises resource configuration data and alarm threshold information; responding to a data monitoring instruction, reading data to be monitored corresponding to the data monitoring instruction, and calculating the data to be monitored according to the resource configuration data to obtain current monitoring data; determining data monitoring result information according to the current monitoring data and the alarm threshold information; and outputting data monitoring and early warning information according to the data monitoring result information. The method can be flexibly applied to multiple platforms and multiple scenes.

Description

Data monitoring method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of big data processing technology, and in particular, to a data monitoring method, apparatus, computer device, storage medium, and computer program product.
Background
Currently, with the development of automation technology, the automation monitoring technology can help enterprises to reduce labor cost and improve monitoring efficiency. Through real-time log and performance monitoring, the team can quickly find and solve the problems, and the reliability of the system is improved. And the health check and alarm system ensures the system to run robustly, reducing the risk of potential faults.
However, the early warning processing mechanism and the alarm pushing mechanism of the existing automatic monitoring technology are not perfect, and particularly in the data monitoring process, the flexibility of automatic monitoring is insufficient, so that the automatic monitoring task cannot be flexibly applicable to multiple platforms and multiple scenes.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data monitoring method, apparatus, computer device, computer readable storage medium, and computer program product that are flexible for use in multiple platforms and multiple scenarios.
In a first aspect, the present application provides a data monitoring method, including:
acquiring data monitoring configuration information, wherein the data monitoring configuration information comprises resource configuration data and alarm threshold information;
responding to a data monitoring instruction, reading data to be monitored corresponding to the data monitoring instruction, and calculating the data to be monitored according to the resource configuration data to obtain current monitoring data;
determining data monitoring result information according to the current monitoring data and the alarm threshold information;
and outputting data monitoring and early warning information according to the data monitoring result information.
In one embodiment, the alarm threshold information is used to characterize a plurality of alarm threshold levels; and determining data monitoring result information according to the current monitoring data and the alarm threshold information comprises the following steps:
According to the current monitoring data, matching the corresponding alarm threshold level to obtain a target alarm level;
and generating data monitoring result information according to the target alarm level.
In one embodiment, the data monitoring result information includes at least one of a data monitoring index, monitoring result data, the target alarm level and a data calculation mode; after the data monitoring result information is generated according to the target alarm level, the method further comprises the following steps:
generating a monitoring result table according to the data monitoring result information;
and writing the monitoring result table into a target database.
In one embodiment, the data monitoring result information includes a data calculation mode, where the data calculation mode is used to characterize a calculation method of the current monitoring data; after the monitoring result table is written into the target database, the method further comprises the following steps:
responding to a data backtracking instruction, and extracting the current monitoring data;
and restoring the data to be monitored according to the current monitoring data and the corresponding data calculation mode.
In one embodiment, the responding to the data monitoring instruction, reading the data to be monitored corresponding to the data monitoring instruction includes:
Responding to the data monitoring instruction, and acquiring timing task configuration information and a task initiation precondition;
according to the timing task configuration information, judging whether the current moment accords with the task initiation precondition or not in a timing manner;
and under the condition that the current moment accords with the task initiation precondition, reading the data to be monitored corresponding to the data monitoring instruction.
In one embodiment, the data monitoring configuration information further includes a data monitoring period; the response to the data monitoring instruction, the acquisition of the timing task configuration information and the task initiation precondition comprises the following steps:
responding to a data monitoring instruction, and judging whether the current moment is within the data monitoring period;
and under the condition that the current moment is in the data monitoring period, acquiring timing task configuration information and a task initiation precondition.
In a second aspect, the present application further provides a data monitoring device, including:
the information acquisition module is used for acquiring data monitoring configuration information, wherein the data monitoring configuration information comprises resource configuration data and alarm threshold information;
the data monitoring module is used for responding to a data monitoring instruction, reading data to be monitored corresponding to the data monitoring instruction, and calculating the data to be monitored according to the resource configuration data to obtain current monitoring data;
The threshold value comparison module is used for determining data monitoring result information according to the current monitoring data and the alarm threshold value information;
and the information output module is used for outputting data monitoring early warning information according to the data monitoring result information.
In a third aspect, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring data monitoring configuration information, wherein the data monitoring configuration information comprises resource configuration data and alarm threshold information;
responding to a data monitoring instruction, reading data to be monitored corresponding to the data monitoring instruction, and calculating the data to be monitored according to the resource configuration data to obtain current monitoring data;
determining data monitoring result information according to the current monitoring data and the alarm threshold information;
and outputting data monitoring and early warning information according to the data monitoring result information.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Acquiring data monitoring configuration information, wherein the data monitoring configuration information comprises resource configuration data and alarm threshold information;
responding to a data monitoring instruction, reading data to be monitored corresponding to the data monitoring instruction, and calculating the data to be monitored according to the resource configuration data to obtain current monitoring data;
determining data monitoring result information according to the current monitoring data and the alarm threshold information;
and outputting data monitoring and early warning information according to the data monitoring result information.
In a fifth aspect, the present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
acquiring data monitoring configuration information, wherein the data monitoring configuration information comprises resource configuration data and alarm threshold information;
responding to a data monitoring instruction, reading data to be monitored corresponding to the data monitoring instruction, and calculating the data to be monitored according to the resource configuration data to obtain current monitoring data;
determining data monitoring result information according to the current monitoring data and the alarm threshold information;
And outputting data monitoring and early warning information according to the data monitoring result information.
According to the data monitoring method, the device, the computer equipment, the storage medium and the computer program product, the resource configuration data and the alarm threshold information can be obtained by acquiring the data monitoring configuration information from the operator, so that the initialization task of the current scene is completed. And then, responding to the data monitoring instruction, and reading the data to be monitored corresponding to the data monitoring instruction to grasp the data information to be monitored in the current scene, and calculating the data to be monitored according to the obtained resource configuration data to obtain the current monitoring data. And then, according to the current monitoring data and the alarm threshold information in the data monitoring configuration information, whether the current monitoring data reaches the alarm threshold or not can be determined, so that the data monitoring result information is obtained. And finally, outputting data monitoring early warning information according to the data monitoring result information. According to the method, the data monitoring configuration information can be flexibly configured according to specific scenes, and the resource configuration data and the alarm threshold information can be flexibly formulated aiming at the current data to be monitored, so that the monitoring and early warning of the data to be monitored are completed, and the configuration flexibility of an automatic monitoring task is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for a person having ordinary skill in the art.
FIG. 1 is a diagram of an application environment of a data monitoring method in one embodiment;
FIG. 2 is a flow chart of a data monitoring method according to an embodiment;
FIG. 3 is a flow chart of a data monitoring method according to another embodiment;
FIG. 4 is a flowchart illustrating a data monitoring method according to an embodiment of the present invention in step S206;
FIG. 5 is a block diagram of a data monitoring device in one embodiment;
FIG. 6 is an internal block diagram of a computer device in one embodiment;
fig. 7 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The data monitoring method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. The terminal 102 communicates with the server 104 through a network, the terminal 102 may be configured to receive data monitoring configuration information from an operator, and write the data monitoring configuration information into the data storage system through the server 104, where the terminal 102 may also be configured to display monitoring and early warning information, and receive a data monitoring instruction, a data backtracking instruction, and the like. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The data storage system can be used for storing data monitoring configuration information and also can be used for caching the read data to be monitored, data monitoring result information, data monitoring early warning information and the like. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In an exemplary embodiment, as shown in fig. 2, a data monitoring method is provided, and the method is applied to the server 104 in fig. 1 for illustration, and includes the following steps S202 to S208. Wherein:
step S202, data monitoring configuration information is acquired.
The data monitoring configuration information comprises resource configuration data and alarm threshold information. The resource configuration data can comprise a calculation mode and a calculation parameter set value of data to be monitored in the current scene. The alarm threshold information is used for representing the calculated data range and boundary of the data to be monitored in the current scene.
Illustratively, the operator may input the data monitoring configuration information through the terminal 102, and the terminal 102 sends the data monitoring configuration information to the server 104 and writes the data monitoring configuration information to the corresponding data storage system. The server 104 may obtain the data monitoring configuration information by requesting it from the data storage system.
Step S204, responding to the data monitoring instruction, reading the data to be monitored corresponding to the data monitoring instruction, and calculating the data to be monitored according to the resource configuration data to obtain the current monitoring data.
The data to be monitored may be cache data recorded in a data warehouse or real-time data generated on line.
For example, in response to a data monitoring instruction from the terminal 102, the server 104 may read the data monitoring configuration information first, and then read the data to be monitored from the data warehouse according to the data item indicated by the data monitoring configuration information. Then, the server 104 may extract the calculation mode and the calculation parameter set value in the data monitoring information, so as to calculate the read data to be monitored, and obtain the current monitoring data.
Step S206, determining data monitoring result information according to the current monitoring data and the alarm threshold information.
In order to effectively monitor and manage data, the server 104 may set different alarm levels for indicating the importance or urgency of the monitoring result. For example, monitoring results above or below a certain threshold may be defined as different alarm levels in order to take corresponding actions in time.
The alarm threshold information is used for representing a plurality of alarm threshold levels, and correspondingly, the data monitoring result information can comprise monitoring results of a plurality of levels. The alarm threshold level may be divided into three, a line crossing level, a limit level, and a focus level, respectively. Each level corresponds to a value interval (e.g., a percentage interval).
Illustratively, the data monitoring result information includes one or more of a data monitoring index, monitoring result data, a target alert level, and a data calculation mode.
For example, the server 104 may obtain a target alarm level according to the current monitored data matching the corresponding alarm threshold level, and then generate data monitoring result information according to the target alarm level. The server 104 may analyze the current detection data values corresponding to the multiple different alarm levels through the alarm threshold information, and then obtain the corresponding alarm level through the current detection data calculated in the above steps, and output the corresponding alarm level as the target alarm level to generate the data monitoring result information.
Step S208, outputting data monitoring early warning information according to the data monitoring result information.
The monitoring and early warning information can be displayed through the terminal 102, and can be output to operators in a message reminding or mail reminding mode. For example, the server 104 may generate the data monitoring and early warning information according to the data monitoring result information, and then match the corresponding output mode according to the type of the data monitoring and early warning information, for example, if the target alarm level corresponding to the data monitoring result information is the line crossing level, the current alarm level may be considered to be higher, and the server 104 may correspondingly generate the data monitoring and early warning information with higher priority, that is, the data monitoring and early warning information corresponding to the line crossing level, where the priority is higher than the data monitoring and early warning information corresponding to the limiting level. Then, the server 104 may match the output mode with higher alarm intensity according to the data monitoring and early warning information with higher priority, for example, output the data monitoring and early warning information to the operator through the terminal 102 in a mode of mail and prompt message at the same time.
Further, the server 104 may notify the downstream Java micro-service to update the calculation completion status and output the data monitoring and early warning information through a Kafka message queue, where the Kafka message queue is an asynchronous decoupling message queue tool, and the Java micro-service is a micro-service implemented based on Spring Boot, and is configured to receive a monitoring message sent by the data computing platform and notify a user, and in addition, is further configured to provide a daily maintenance function of a monitoring result. After receiving the data monitoring and early warning information, the Java micro-service can push a monitoring and early warning reminding message to operators through cloud assistant software, and the operators can treat and report early warning results at the cloud assistant end. Operators can also view the configured job tasks and the pre-warning list at the Web end. Meanwhile, the Java micro-service also sends an early warning result mail to the user, and multi-terminal access to the early warning user is completed. So far, the whole closed-loop management flow from configuration to early warning treatment of business monitoring is ended.
In the data monitoring method, the resource configuration data and the alarm threshold information can be obtained by acquiring the data monitoring configuration information from the operator, so that the initialization task of the current scene is completed. And then, responding to the data monitoring instruction, and reading the data to be monitored corresponding to the data monitoring instruction to grasp the data information to be monitored in the current scene, and calculating the data to be monitored according to the obtained resource configuration data to obtain the current monitoring data. And then, according to the current monitoring data and the alarm threshold information in the data monitoring configuration information, whether the current monitoring data reaches the alarm threshold or not can be determined, so that the data monitoring result information is obtained. And finally, outputting data monitoring early warning information according to the data monitoring result information. According to the method, the data monitoring configuration information can be flexibly configured according to specific scenes, and the resource configuration data and the alarm threshold information can be flexibly formulated aiming at the current data to be monitored, so that the monitoring and early warning of the data to be monitored are completed, and the configuration flexibility of an automatic monitoring task is improved.
In an exemplary embodiment, as shown in fig. 3, the above method may further include steps S302 to S304. Wherein:
step S302, a monitoring result table is generated according to the data monitoring result information.
The data monitoring result information comprises one or more of data monitoring indexes, monitoring result data, target alarm levels and data calculation modes. The data monitoring index refers to a specific data index or parameter concerned in the monitoring process, and can be a data element needing to be monitored, such as temperature, humidity, speed, data change rule and the like. The monitoring result data refers to a data result obtained by actual monitoring, and can be real-time, historical or result information obtained by combining real-time data with historical data. The data calculation means is used to describe how the monitoring result is calculated, and may include an algorithm, formula or model for processing the raw data. Different monitoring tasks may require different calculation modes to ensure accurate and meaningful results are obtained. For example, the server 104 may generate a monitoring result table according to the above data monitoring result information, where recording creation time, index type, index name, threshold description, and the like may be further included.
Step S304, the monitoring result table is written into the target database.
The monitoring result table written into the target database refers to a table in which monitored data and calculated result data are stored in the database for subsequent query, analysis and management. The monitoring result table written to the target database may include a time stamp, a monitoring index field, a monitoring result data field, an alarm level field, other related information fields, a device identification field, other metadata fields, and the like. A time stamp (Timestamp) is used to record the time that data was written to the database in order to track the time-series and historical changes of the data. The monitoring index Fields (Fields) are Fields including specific indexes or parameters to be monitored, such as temperature, humidity, data change amplitude, etc., and each field corresponds to a specific monitoring index. The monitor result Data field (Data Fields) contains the actual monitor result Data for holding the particular value of the measurement, which may be an integer, floating point number, or other Data type. Other relevant information fields (Additional Information) may include some additional information such as identification of the monitoring device, geographical location information, description of the monitoring task, etc. The Device identification field (Device ID) may contain a unique identifier of the Device to distinguish between data generated by different devices. Other Metadata fields (Metadata) mainly contain Metadata about data, such as units, data sources, and the like.
In an exemplary embodiment, the data monitoring result information may include a data calculation mode, where the data calculation mode is used to characterize a calculation method of current monitoring data. As shown in fig. 3, the above method may further include steps S306 to S308. Wherein:
in step S306, the current monitoring data is extracted in response to the data backtracking instruction.
For example, the server 104 may analyze the data to be traced according to the data tracing instruction from the terminal 102, and extract the current monitoring data calculated in the above step according to the data to be traced.
Step S308, restoring the data to be monitored according to the current monitoring data and the corresponding data calculation mode.
The server 104 may request the target database for obtaining the corresponding data calculation mode according to the data to be traced, and restore the data to be monitored according to the current monitoring data and the corresponding data calculation mode, so as to complete tracing of the data, and may display the traced data to be monitored on the terminal 102 for the operator to analyze the data monitoring problem.
In an exemplary embodiment, as shown in fig. 4, step S204 includes steps S402 to S406, wherein:
Step S402, in response to the data monitoring instruction, acquiring timing task configuration information and a task initiation precondition.
Wherein the timed task configuration information and the task initiation precondition may be configured in the data monitoring configuration information described above, and the data monitoring configuration information may further include a data monitoring period.
Illustratively, in response to a data monitoring instruction from the terminal 102, the server 104 may determine whether the current time is within the data monitoring period, and if the current time is not within the data monitoring period, spin to wait for the next time; and under the condition that the current moment is in the data monitoring period, acquiring timing task configuration information and task initiation preconditions.
Step S404, according to the timed task configuration information, whether the current moment accords with the task initiation precondition is judged in a timed way.
The task initiation precondition may be other operation instructions from the terminal 102, or may be an add, modify or delete condition of the data to be monitored. For example, the server 104 may implement a timed task service based on the Quartz framework, initiating configured tasks at a customized frequency.
Step S406, under the condition that the current moment accords with the task initiation precondition, the data to be monitored corresponding to the data monitoring instruction is read.
Illustratively, the server 104 obtains the timing task configuration information in the data monitoring configuration information, and configures a timing task according to the timing task configuration information, so as to periodically trigger and determine whether the current moment meets the task initiation precondition. And under the condition that the current moment accords with the task initiation precondition, reading the data to be monitored corresponding to the data monitoring instruction. The period of the timing task may be a working day, a week, etc.
In another exemplary embodiment, the operator inputs the data monitoring configuration information through the terminal 102, and the terminal 102 sends the data monitoring configuration information to the server 104 and writes the data monitoring configuration information to the corresponding data storage system. In response to the data monitoring instruction from the terminal 102, the server 104 reads the data monitoring configuration information first, and then reads the data to be monitored from the data warehouse according to the data item indicated by the data monitoring configuration information. Then, the server 104 may extract the calculation mode and the calculation parameter set value in the data monitoring information, so as to calculate the read data to be monitored, and obtain the current monitoring data.
Then, the server 104 matches the corresponding alarm threshold level according to the current monitoring data to obtain a target alarm level, and then generates data monitoring result information according to the target alarm level. The server 104 analyzes the current detection data values corresponding to the different alarm levels through the alarm threshold information, obtains the corresponding alarm level through the current detection data calculated through the steps, and outputs the corresponding alarm level as a target alarm level to generate data monitoring result information.
Next, the server 104 generates data monitoring and early warning information according to the data monitoring result information, matches the corresponding output mode according to the type of the data monitoring and early warning information, matches the output mode with higher alarm intensity according to the data monitoring and early warning information with higher priority, informs the downstream Java micro service of updating the calculation completion state through the Kafka message queue, and simultaneously outputs the data monitoring and early warning information to operators through the terminal 102 in a mail and prompt message mode.
Next, the server 104 may generate a monitoring result table according to the above data monitoring result information, and write the monitoring result table into the target database. The server 104 analyzes the data to be traced according to the data tracing instruction from the terminal 102, and extracts the current monitoring data calculated in the above step according to the data to be traced.
Finally, the server 104 requests the target database for obtaining the corresponding data calculation mode according to the data to be traced, and restores the data to be monitored according to the current monitoring data and the corresponding data calculation mode, so that tracing of the data is completed, and the traced data to be monitored can be displayed on the terminal 102 for operators to analyze the data monitoring problem.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a data monitoring device for realizing the above related data monitoring method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation of one or more embodiments of the data monitoring device provided below may be referred to the limitation of the data monitoring method hereinabove, and will not be repeated here.
In one exemplary embodiment, as shown in fig. 5, there is provided a data monitoring apparatus comprising: an information acquisition module 502, a data monitoring module 504, a threshold comparison module 506, and an information output module 508, wherein:
an information obtaining module 502, configured to obtain data monitoring configuration information, where the data monitoring configuration information includes resource configuration data and alarm threshold information;
the data monitoring module 504 is configured to respond to the data monitoring instruction, read data to be monitored corresponding to the data monitoring instruction, and calculate the data to be monitored according to the resource configuration data to obtain current monitoring data;
the threshold value comparison module 506 is configured to determine data monitoring result information according to the current monitoring data and alarm threshold value information;
and the information output module 508 is used for outputting data monitoring and early warning information according to the data monitoring result information.
In one embodiment, the alert threshold information is used to characterize a plurality of alert threshold levels; the threshold comparison module 506 includes:
the grade matching sub-module is used for matching the corresponding alarm threshold grade according to the current monitoring data to obtain a target alarm grade;
and the grade determining sub-module is used for generating data monitoring result information according to the target alarm grade.
In one embodiment, the data monitoring result information includes at least one of a data monitoring index, monitoring result data, a target alarm level, and a data calculation mode; the apparatus further comprises:
the result table generating module is used for generating a monitoring result table according to the data monitoring result information;
and the result writing module is used for writing the monitoring result table into the target database.
In one embodiment, the data monitoring result information includes a data calculation mode, where the data calculation mode is used for representing a calculation method of current monitoring data; the apparatus further comprises:
the data backtracking module is used for responding to the data backtracking instruction and extracting current monitoring data;
and the data restoration module is used for restoring the data to be monitored according to the current monitoring data and the corresponding data calculation mode.
In one embodiment, the data monitoring module 504 includes:
the condition acquisition sub-module is used for responding to the data monitoring instruction and acquiring timing task configuration information and task initiation pre-conditions;
the timing execution sub-module is used for judging whether the current moment accords with the task initiation precondition or not in a timing way according to the timing task configuration information;
and the data monitoring sub-module is used for reading the data to be monitored corresponding to the data monitoring instruction under the condition that the current moment accords with the task initiation precondition.
In one embodiment, the data monitoring configuration information further includes a data monitoring period; the condition acquisition submodule includes:
the instruction response unit is used for responding to the data monitoring instruction and judging whether the current moment is in the data monitoring period;
and the condition acquisition unit is used for acquiring the timing task configuration information and the task initiation precondition under the condition that the current moment is in the data monitoring period.
The various modules in the data monitoring device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one exemplary embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer equipment is used for storing data monitoring configuration information, and can also be used for caching the read data to be monitored, data monitoring result information, data monitoring early warning information and the like. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a data monitoring method.
In one exemplary embodiment, a computer device is provided, which may be a terminal, and an internal structure diagram thereof may be as shown in fig. 7. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a data monitoring method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one exemplary embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of: acquiring data monitoring configuration information, wherein the data monitoring configuration information comprises resource configuration data and alarm threshold information; responding to the data monitoring instruction, reading data to be monitored corresponding to the data monitoring instruction, and calculating the data to be monitored according to the resource configuration data to obtain current monitoring data; determining data monitoring result information according to the current monitoring data and alarm threshold information; and outputting data monitoring early warning information according to the data monitoring result information.
In one embodiment, the processor when executing the computer program further performs the steps of: matching the corresponding alarm threshold level according to the current monitoring data to obtain a target alarm level; and generating data monitoring result information according to the target alarm level.
In one embodiment, the processor when executing the computer program further performs the steps of: generating a monitoring result table according to the data monitoring result information; and writing the monitoring result table into a target database.
In one embodiment, the processor when executing the computer program further performs the steps of: responding to the data backtracking instruction, and extracting current monitoring data; and restoring the data to be monitored according to the current monitoring data and the corresponding data calculation mode.
In one embodiment, the processor when executing the computer program further performs the steps of: responding to the data monitoring instruction, and acquiring timing task configuration information and a task initiation precondition; according to the timed task configuration information, judging whether the current moment accords with the task initiation precondition or not in a timed manner; and under the condition that the current moment accords with the task initiation precondition, reading the data to be monitored corresponding to the data monitoring instruction.
In one embodiment, the processor when executing the computer program further performs the steps of: responding to the data monitoring instruction, judging whether the current moment is in a data monitoring period; and under the condition that the current moment is in the data monitoring period, acquiring timing task configuration information and a task initiation precondition.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring data monitoring configuration information, wherein the data monitoring configuration information comprises resource configuration data and alarm threshold information; responding to the data monitoring instruction, reading data to be monitored corresponding to the data monitoring instruction, and calculating the data to be monitored according to the resource configuration data to obtain current monitoring data; determining data monitoring result information according to the current monitoring data and alarm threshold information; and outputting data monitoring early warning information according to the data monitoring result information.
In one embodiment, the computer program when executed by the processor further performs the steps of: matching the corresponding alarm threshold level according to the current monitoring data to obtain a target alarm level; and generating data monitoring result information according to the target alarm level.
In one embodiment, the computer program when executed by the processor further performs the steps of: generating a monitoring result table according to the data monitoring result information; and writing the monitoring result table into a target database.
In one embodiment, the computer program when executed by the processor further performs the steps of: responding to the data backtracking instruction, and extracting current monitoring data; and restoring the data to be monitored according to the current monitoring data and the corresponding data calculation mode.
In one embodiment, the computer program when executed by the processor further performs the steps of: responding to the data monitoring instruction, and acquiring timing task configuration information and a task initiation precondition; according to the timed task configuration information, judging whether the current moment accords with the task initiation precondition or not in a timed manner; and under the condition that the current moment accords with the task initiation precondition, reading the data to be monitored corresponding to the data monitoring instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of: responding to the data monitoring instruction, judging whether the current moment is in a data monitoring period; and under the condition that the current moment is in the data monitoring period, acquiring timing task configuration information and a task initiation precondition.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of: acquiring data monitoring configuration information, wherein the data monitoring configuration information comprises resource configuration data and alarm threshold information; responding to the data monitoring instruction, reading data to be monitored corresponding to the data monitoring instruction, and calculating the data to be monitored according to the resource configuration data to obtain current monitoring data; determining data monitoring result information according to the current monitoring data and alarm threshold information; and outputting data monitoring early warning information according to the data monitoring result information.
In one embodiment, the computer program when executed by the processor further performs the steps of: matching the corresponding alarm threshold level according to the current monitoring data to obtain a target alarm level; and generating data monitoring result information according to the target alarm level.
In one embodiment, the computer program when executed by the processor further performs the steps of: generating a monitoring result table according to the data monitoring result information; and writing the monitoring result table into a target database.
In one embodiment, the computer program when executed by the processor further performs the steps of: responding to the data backtracking instruction, and extracting current monitoring data; and restoring the data to be monitored according to the current monitoring data and the corresponding data calculation mode.
In one embodiment, the computer program when executed by the processor further performs the steps of: responding to the data monitoring instruction, and acquiring timing task configuration information and a task initiation precondition; according to the timed task configuration information, judging whether the current moment accords with the task initiation precondition or not in a timed manner; and under the condition that the current moment accords with the task initiation precondition, reading the data to be monitored corresponding to the data monitoring instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of: responding to the data monitoring instruction, judging whether the current moment is in a data monitoring period; and under the condition that the current moment is in the data monitoring period, acquiring timing task configuration information and a task initiation precondition.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method of data monitoring, the method comprising:
acquiring data monitoring configuration information, wherein the data monitoring configuration information comprises resource configuration data and alarm threshold information;
responding to a data monitoring instruction, reading data to be monitored corresponding to the data monitoring instruction, and calculating the data to be monitored according to the resource configuration data to obtain current monitoring data;
Determining data monitoring result information according to the current monitoring data and the alarm threshold information;
and outputting data monitoring and early warning information according to the data monitoring result information.
2. The method of claim 1, wherein the alert threshold information is used to characterize a plurality of alert threshold levels; and determining data monitoring result information according to the current monitoring data and the alarm threshold information comprises the following steps:
according to the current monitoring data, matching the corresponding alarm threshold level to obtain a target alarm level;
and generating data monitoring result information according to the target alarm level.
3. The method of claim 2, wherein the data monitoring result information comprises at least one of a data monitoring index, monitoring result data, the target alarm level, and a data calculation mode; after the data monitoring result information is generated according to the target alarm level, the method further comprises the following steps:
generating a monitoring result table according to the data monitoring result information;
and writing the monitoring result table into a target database.
4. A method according to claim 3, wherein the data monitoring result information includes a data calculation mode, and the data calculation mode is used for representing a calculation method of the current monitoring data; after the monitoring result table is written into the target database, the method further comprises the following steps:
Responding to a data backtracking instruction, and extracting the current monitoring data;
and restoring the data to be monitored according to the current monitoring data and the corresponding data calculation mode.
5. The method according to any one of claims 1 to 4, wherein the reading, in response to a data monitoring instruction, data to be monitored corresponding to the data monitoring instruction includes:
responding to the data monitoring instruction, and acquiring timing task configuration information and a task initiation precondition;
according to the timing task configuration information, judging whether the current moment accords with the task initiation precondition or not in a timing manner;
and under the condition that the current moment accords with the task initiation precondition, reading the data to be monitored corresponding to the data monitoring instruction.
6. The method of claim 5, wherein the data monitoring configuration information further comprises a data monitoring period; the response to the data monitoring instruction, the acquisition of the timing task configuration information and the task initiation precondition comprises the following steps:
responding to a data monitoring instruction, and judging whether the current moment is within the data monitoring period;
and under the condition that the current moment is in the data monitoring period, acquiring timing task configuration information and a task initiation precondition.
7. A data monitoring device, the device comprising:
the information acquisition module is used for acquiring data monitoring configuration information, wherein the data monitoring configuration information comprises resource configuration data and alarm threshold information;
the data monitoring module is used for responding to a data monitoring instruction, reading data to be monitored corresponding to the data monitoring instruction, and calculating the data to be monitored according to the resource configuration data to obtain current monitoring data;
the threshold value comparison module is used for determining data monitoring result information according to the current monitoring data and the alarm threshold value information;
and the information output module is used for outputting data monitoring early warning information according to the data monitoring result information.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202311742736.1A 2023-12-18 2023-12-18 Data monitoring method, device, computer equipment and storage medium Pending CN117724930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311742736.1A CN117724930A (en) 2023-12-18 2023-12-18 Data monitoring method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311742736.1A CN117724930A (en) 2023-12-18 2023-12-18 Data monitoring method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117724930A true CN117724930A (en) 2024-03-19

Family

ID=90210280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311742736.1A Pending CN117724930A (en) 2023-12-18 2023-12-18 Data monitoring method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117724930A (en)

Similar Documents

Publication Publication Date Title
CN107358247B (en) Method and device for determining lost user
CN111339073A (en) Real-time data processing method and device, electronic equipment and readable storage medium
CN114003473B (en) Page operation behavior backtracking method and device and electronic equipment
CN112559475A (en) Data real-time capturing and transmitting method and system
CN112580812A (en) Model training method, inventory safety early warning method, device, equipment and medium
CN110737655A (en) Method and device for reporting data
CN107016028B (en) Data processing method and apparatus thereof
CN106293890A (en) A kind of method and device for business processing based on complexity
CN117724930A (en) Data monitoring method, device, computer equipment and storage medium
CN112764957A (en) Application fault delimiting method and device
CN111049988A (en) Intimacy prediction method, system, equipment and storage medium for mobile equipment
CN105843597A (en) Providing method and device for establishment information of tasks
CN112418260A (en) Model training method, information prompting method, device, equipment and medium
CN116663907A (en) Method and device for generating early warning information, computer equipment and storage medium
CN117557951A (en) Power grid abnormal event monitoring method, device, computer equipment and storage medium
CN116149750A (en) Data processing method, device, computer equipment and storage medium
CN116633006A (en) Power scheduling system, method, device, computer equipment and storage medium
CN117764529A (en) Target item determining method, device, computer equipment, storage medium and product
CN117726101A (en) Power transformation equipment life prediction method and device and computer equipment
CN114138196A (en) Power system data storage method and device, computer equipment and storage medium
CN116108013A (en) Power distribution network data processing method, device, computer equipment and storage medium
CN116166873A (en) User portrait generation method and device, electronic equipment and storage medium
CN117453535A (en) Test verification method for life cycle of real-time index, storage medium and electronic equipment
CN116244292A (en) Data quality marking method, device, computer equipment and storage medium
CN114841811A (en) Quantitative strategy monitoring method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination