CN114661562A - Data warning method, device, equipment and medium - Google Patents

Data warning method, device, equipment and medium Download PDF

Info

Publication number
CN114661562A
CN114661562A CN202210432047.XA CN202210432047A CN114661562A CN 114661562 A CN114661562 A CN 114661562A CN 202210432047 A CN202210432047 A CN 202210432047A CN 114661562 A CN114661562 A CN 114661562A
Authority
CN
China
Prior art keywords
alarm
detected
target
index
data
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
CN202210432047.XA
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.)
Beijing Bo Hongyuan Data Polytron Technologies Inc
Original Assignee
Beijing Bo Hongyuan Data Polytron Technologies Inc
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 Beijing Bo Hongyuan Data Polytron Technologies Inc filed Critical Beijing Bo Hongyuan Data Polytron Technologies Inc
Priority to CN202210432047.XA priority Critical patent/CN114661562A/en
Publication of CN114661562A publication Critical patent/CN114661562A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Alarm Systems (AREA)

Abstract

The invention discloses a data warning method, a data warning device, data warning equipment and a data warning medium. The method comprises the following steps: acquiring at least one index alarm rule, an alarm notification mode and an alarm notification time window which are input by a user and correspond to a target application program; acquiring performance index data to be detected corresponding to each index alarm rule at regular time, and judging whether the performance index data to be detected corresponding to each index alarm rule accords with the corresponding index alarm rule; if at least one target performance index data to be detected which accords with the corresponding index alarm rule exists, generating corresponding alarm information; and providing the alarm information to the target user according to the alarm notification mode and the alarm notification time window. The embodiment of the invention can detect the performance index data which is interested by the user according to the index alarm rule which is set in a personalized way, generate the alarm information which is interested by the user, and provide the alarm information for the target user through the time and the mode which are set in a personalized way and are used for providing the alarm information.

Description

Data warning method, device, equipment and medium
Technical Field
The invention relates to the technical field of computers, in particular to a data warning method, a data warning device, data warning equipment and a data warning medium.
Background
In the performance monitoring process of the application program, various performance index data of the application program can be collected. Besides displaying the performance index data, the monitored performance index data also needs to be analyzed, corresponding alarm conditions are triggered, and alarm information is generated, so that a management user can find the performance problem of the application program in time, dispose the problem in time, and reduce the influence on the service.
In the related art, monitored performance index data is usually analyzed according to a fixed alarm rule, and after a corresponding alarm condition is triggered, alarm information is immediately generated and provided to a management user.
The related art has disadvantages in that: the fixed alarm rules are difficult to meet the real-time alarm requirements of users, the time and the mode for providing the alarm information are single, and the time and the mode for providing the alarm information cannot be determined according to the requirements of the users.
Disclosure of Invention
The invention provides a data warning method, a data warning device, data warning equipment and a data warning medium, which are used for solving the problems that in the related technology, fixedly set warning rules are difficult to meet the real-time warning requirements of users, the time and the mode for sending warning notification information are single, and the time and the mode for sending the warning notification information cannot be determined according to the requirements of the users.
According to an aspect of the present invention, there is provided a data alert method, including:
acquiring at least one index alarm rule, an alarm notification mode and an alarm notification time window which are input by a user and correspond to a target application program;
the performance index data to be detected corresponding to each index alarm rule is obtained from the performance index data to be detected of the target application program at regular time, and whether the performance index data to be detected corresponding to each index alarm rule accords with the corresponding index alarm rule is judged;
if at least one target performance index data to be detected which accords with the corresponding index alarm rule exists, generating alarm information corresponding to each target performance index data to be detected;
and providing the alarm information corresponding to the performance index data to be detected of each target to a target user according to the alarm notification mode and the alarm notification time window.
According to another aspect of the present invention, there is provided a data alert apparatus comprising:
the alarm rule acquisition module is used for acquiring at least one index alarm rule, an alarm notification mode and an alarm notification time window which are input by a user and correspond to a target application program;
the index data processing module is used for acquiring the performance index data to be detected corresponding to each index alarm rule from the performance index data to be detected of the target application program at regular time, and judging whether the performance index data to be detected corresponding to each index alarm rule accords with the corresponding index alarm rule;
the warning information generating module is used for generating warning information corresponding to each target performance index data to be detected if at least one target performance index data to be detected, which accords with the corresponding index warning rule, exists;
and the alarm information providing module is used for providing alarm information corresponding to the performance index data to be detected of each target to a target user according to the alarm notification mode and the alarm notification time window.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform a data alert method as described in any of the embodiments of the invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the data alert method according to any one of the embodiments of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, at least one index alarm rule, an alarm notification mode and an alarm notification time window which are input by a user and correspond to a target application program are obtained; then, acquiring the performance index data to be detected corresponding to each index alarm rule from the performance index data to be detected of the target application program at regular time, and judging whether the performance index data to be detected corresponding to each index alarm rule accords with the corresponding index alarm rule or not; if at least one target performance index data to be detected which accords with the corresponding index alarm rule exists, generating alarm information corresponding to each target performance index data to be detected; according to the alarm notification mode and the alarm notification time window, the alarm information corresponding to the performance index data to be detected of each target is provided for the target user, the problem that in the related technology, the fixedly set alarm rule is difficult to meet the real-time alarm requirement of the user, the time and the mode for sending the alarm notification information are single, and the time and the mode for sending the alarm notification information cannot be determined according to the user requirement is solved, the alarm notification mode for detecting whether the designated performance index data of the target application program meets the corresponding alarm condition or not, the alarm notification mode for providing the alarm information corresponding to the target application program to the target user and the alarm notification time window for providing the alarm information corresponding to the target application program to the target user can be obtained, and the performance index data interesting to the user can be detected according to the individually set index alarm rule, the warning information which is interesting to the user is generated, and the warning information can be provided for the target user through the individually set opportunity and mode for providing the warning information, so that the target user can find the performance problem of the application program in time, the performance problem can be dealt with in time, and the beneficial effect of reducing the influence on the service is achieved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a data alarm method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a data alarm method according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a data alarm device according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an electronic device implementing the data alarm method according to the embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "object," "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a data alarm method according to an embodiment of the present invention, where this embodiment is applicable to analyzing monitored performance index data and generating alarm information in a performance monitoring process of an application program, so that a management user can find a performance problem of the application program in time. As shown in fig. 1, the method includes:
step 101, acquiring at least one index alarm rule, an alarm notification mode and an alarm notification time window which are input by a user and correspond to a target application program.
Optionally, the target application is one or more applications that are performing application performance monitoring. In the process of monitoring the performance of the target application program, various performance index data of the target application program are collected through a preset collection probe, and the collected performance index data are stored in a preset index database. The preset index database is a database for storing various performance index data of the target application program.
Optionally, the performance indicator data is data for evaluating performance of the application. The various performance indicator data for the target application include, but are not limited to: the CPU occupancy rate, the CPU occupancy time, the virtual memory VSS occupancy rate and the physical memory RSS occupancy rate of the target application program; the throughput rate, the maximum response time and the average response time of each service function module in the target application program; traffic, Query Per Second (QPS) and average response time for each interface of the target application.
Optionally, each index alarm rule corresponding to the target application program is a rule for detecting whether a certain performance index data of the target application program meets an alarm condition corresponding to the performance index data.
In a specific example, a certain index alarm rule is a rule for detecting whether the CPU occupancy of the central processing unit of the target application program meets an alarm condition corresponding to the CPU occupancy of the central processing unit of the target application program. The index alarm rule is as follows: if the CPU occupancy rate of the central processing unit of the target application program is more than or equal to the preset occupancy rate threshold value, determining that the CPU occupancy rate of the central processing unit of the target application program meets the alarm condition corresponding to the CPU occupancy rate of the central processing unit of the target application program; and if the CPU occupancy rate of the target application program is smaller than the preset occupancy rate threshold, determining that the CPU occupancy rate of the target application program does not meet the alarm condition corresponding to the CPU occupancy rate of the target application program.
Optionally, the alert notification manner corresponding to the target application is a manner of providing alert information corresponding to the target application to the target user. Namely, the alarm information providing mode which the target user relatively wants to use. The target user may be a development user or an administration user of the target application. The alarm notification mode corresponding to the target application program may be: the method comprises the steps of sending by mail, sending by short message, sending by office software or sending by social software.
Optionally, the alert notification time window corresponding to the target application is a time interval in which alert information corresponding to the target application can be provided to the target user. Namely, the time interval in which the target user can receive and process the alarm information corresponding to the target application program. Illustratively, the alert notification time window corresponding to the target application is 9 to 12 am.
Optionally, the obtaining at least one indicator alarm rule, an alarm notification mode, and an alarm notification time window corresponding to the target application program, which are input by the user, includes: and acquiring at least one index alarm rule, an alarm notification mode and an alarm notification time window which are input by a user and correspond to the target application program through the alarm configuration page.
Optionally, the alarm configuration page is a page for interacting with the user and acquiring various types of information related to the alarm process of the target application program, which is input by the user. The user may fill in or select at least one index alarm rule corresponding to the target application in an index alarm rule input area provided by the alarm configuration page, thereby inputting the at least one index alarm rule corresponding to the target application. The user may fill in or select the alert notification mode corresponding to the target application program in the alert notification mode input area provided by the alert configuration page, thereby inputting the alert notification mode corresponding to the target application program. The user may fill in or select the alert notification time window corresponding to the target application in the alert notification time window input area provided by the alert configuration page, thereby inputting the alert notification time window corresponding to the target application.
The index alarm rule input area is a page area for inputting an index alarm rule corresponding to the target application program in the alarm configuration page. The alarm notification mode input area is a page area for inputting an alarm notification mode corresponding to the target application program in the alarm configuration page. The alert notification time window is a page area in the alert configuration page for entering the alert notification time window corresponding to the target application.
Therefore, a user can set index alarm rules for detecting whether the designated performance index data of the target application program meets the corresponding alarm conditions, an alarm notification mode for providing the alarm information corresponding to the target application program to the target user and an alarm notification time window for providing the alarm information corresponding to the target application program to the target user in a personalized mode according to the real-time alarm requirements, so that the performance index data which the user is interested in can be detected according to the personalized index alarm rules, the alarm information which the user is interested in is generated, the alarm information is provided to the target user through the personalized opportunity and mode for providing the alarm information, the target user can find the performance problem of the application program in time, the handling is carried out in time, and the influence on the service is reduced.
Optionally, after obtaining at least one indicator alarm rule, an alarm notification mode, and an alarm notification time window corresponding to the target application program, which are input by the user, the method further includes: and storing at least one index alarm rule corresponding to the target application program into a preset alarm rule database. The preset alarm rule database is used for storing each index alarm rule corresponding to the target application program.
Therefore, each index alarm rule input by the user and corresponding to the target application program is stored and managed through the preset alarm rule database.
Step 102, periodically obtaining the to-be-detected performance index data corresponding to each index alarm rule in each to-be-detected performance index data of the target application program, and judging whether the to-be-detected performance index data corresponding to each index alarm rule accords with the corresponding index alarm rule.
Optionally, the periodically obtaining the to-be-detected performance index data corresponding to each index alarm rule from the to-be-detected performance index data of the target application program, and determining whether the to-be-detected performance index data corresponding to each index alarm rule conforms to the corresponding index alarm rule, includes: and executing the following operations aiming at each index alarm rule: the method comprises the steps that performance index data to be detected corresponding to index alarm rules are obtained from various performance index data to be detected of a target application program stored in a preset index database at regular time according to the alarm type of the index alarm rules; and judging whether the performance index data to be detected accords with the index alarm rule or not according to a performance index data threshold value in the index alarm rule.
Optionally, the alarm type of each index alarm rule is set in advance according to the type of the performance index data detected by the index alarm rule. The types of alarms may include: application type, service type, host type, interface type, instance type, etc.
Optionally, the alarm type of the index alarm rule for detecting whether performance index data of the target application program, such as CPU occupancy, CPU occupancy time, virtual memory VSS occupancy, physical memory RSS occupancy, and the like, meet the corresponding alarm condition, is set as the application type. And setting the alarm type of the index alarm rule for detecting whether the performance index data such as the throughput rate, the maximum response time, the average response time and the like of each service function module in the target application program accords with the corresponding alarm condition as the service type. And setting the alarm type of the index alarm rule for detecting whether the relevant performance index data of the host of the target application program accords with the corresponding alarm condition as the host type. And setting the alarm type of the index alarm rule for detecting whether the performance index data such as the flow, QPS, average response time and the like of each interface of the target application program conforms to the corresponding alarm condition as the interface type. And setting the alarm type of the index alarm rule for detecting whether the related performance index data of each single process instance of the target application program accords with the corresponding alarm condition as the instance type.
Optionally, the performance index data to be detected of the target application program is performance index data which has not been detected according to the index alarm rule after collection. Dividing each item of performance index data to be detected of the target application program into different performance index data groups to be detected according to the alarm type of the index alarm rule corresponding to each item of performance index data to be detected; the alarm types of the index alarm rules corresponding to the various to-be-detected performance index data in each to-be-detected performance index data group are the same; and storing each to-be-detected performance index data group into a preset index database.
Optionally, the obtaining, at regular time, performance index data to be detected corresponding to the index alarm rule from the performance index data to be detected of the target application program stored in a preset index database according to the alarm type of the index alarm rule includes: and executing the following operations aiming at each index alarm rule corresponding to the target application program: acquiring a target performance index data group to be detected corresponding to the alarm type of the index alarm rule from a preset index database at regular time; the alarm type of the index alarm rule is the same as the alarm type of the index alarm rule corresponding to each item of performance index data to be detected in the target performance index data group to be detected; and acquiring the performance index to be detected corresponding to the index alarm rule in the target performance index data group to be detected.
Therefore, the data acquisition range of the performance index to be detected corresponding to the index alarm rule can be narrowed according to the alarm type of each index alarm rule, the target performance index to be detected data containing the performance index to be detected corresponding to the index alarm rule in the preset index database is determined according to the alarm type of the index alarm rule, then the performance index to be detected corresponding to the index alarm rule is acquired from the target performance index to be detected data group with smaller data volume, and the performance index to be detected corresponding to the index alarm rule, namely the performance index data to be detected, required to be detected by the index alarm rule, is quickly acquired from the various performance index data to be detected of the target application program stored in the preset index database.
Optionally, the performance index data threshold in the index alarm rule is a threshold used for measuring whether the performance index data to be detected meets the index alarm rule in the index alarm rule.
Illustratively, one index alarm rule is as follows: if the CPU occupancy rate of the central processing unit of the target application program is more than or equal to the preset occupancy rate threshold value, determining that the CPU occupancy rate of the central processing unit of the target application program meets the alarm condition corresponding to the CPU occupancy rate of the central processing unit of the target application program; and if the CPU occupancy rate of the target application program is smaller than the preset occupancy rate threshold, determining that the CPU occupancy rate of the target application program does not meet the alarm condition corresponding to the CPU occupancy rate of the target application program.
The preset occupancy rate threshold is a performance index data threshold in the index alarm rule. And acquiring the performance index data to be detected corresponding to the index alarm rule, namely the CPU occupancy rate of a central processing unit of the target application program from the various performance index data to be detected of the target application program stored in a preset index database according to the alarm type of the index alarm rule at regular time. Then, according to the performance index data threshold value in the index alarm rule, judging whether the CPU occupancy rate of the target application program conforms to the index alarm rule: if the CPU occupancy rate of the target application program is larger than or equal to the preset occupancy rate threshold value, determining that the CPU occupancy rate of the target application program meets the alarm condition corresponding to the CPU occupancy rate of the target application program, namely that the to-be-detected performance index data meets the index alarm rule; and if the CPU occupancy rate of the target application program is smaller than the preset occupancy rate threshold, determining that the CPU occupancy rate of the target application program does not accord with the alarm condition corresponding to the CPU occupancy rate of the target application program, namely that the to-be-detected performance index data does not accord with the index alarm rule.
Step 103, if at least one target performance index data to be detected which accords with the corresponding index alarm rule exists, generating alarm information corresponding to each target performance index data to be detected.
Optionally, the target performance index data to be detected is detection performance index data that conforms to a corresponding index alarm rule. And the alarm information corresponding to the target performance index data to be detected is used for informing a target user: and the target performance index data to be detected accords with the corresponding index alarm rule, and an abnormal condition exists. The warning information corresponding to the target performance index data to be detected may include the target performance index data to be detected and a warning level of the target performance index data to be detected. The alarm level is normal or severe.
Optionally, if at least one target performance index data to be detected, which meets the corresponding index alarm rule, does not exist, the subsequent operation is not executed.
And step 104, providing the alarm information corresponding to the performance index data to be detected of each target to a target user according to the alarm notification mode and the alarm notification time window.
Optionally, the providing, according to the alarm notification manner and the alarm notification time window, alarm information corresponding to the performance index data to be detected of each target to a target user includes: detecting whether the current moment is within the alarm notification time; if the current moment is within the alarm notification time, caching alarm information corresponding to the target performance index data to be detected into a preset alarm queue in a queue form; and sequentially sending the performance index data to be detected of each target cached in the preset alarm queue to terminal equipment of a target user according to the alarm notification mode.
Optionally, if the current time is within the alarm notification time, which indicates that the current time is in a time interval in which the alarm information corresponding to the target application program can be provided to the target user, and the current time is a time at which the alarm information can be provided to the target user, the alarm information corresponding to each target performance index data to be detected is cached in a preset alarm queue in a queue form, and then the target performance index data to be detected cached in the preset alarm queue and each target performance index data to be detected are sequentially sent to the terminal device of the target user according to the alarm notification manner. The preset alarm queue is a queue for buffering alarm information to be sent.
Optionally, after the data of the performance indicators to be detected of the targets cached in the preset alarm queue and the data of the performance indicators to be detected of the targets are sequentially sent to the terminal device of the target user according to the alarm notification manner, the method further includes: and storing the alarm information corresponding to the performance index data to be detected of each target into a preset alarm information database. The preset alarm information database is a database for storing alarm information corresponding to the target application program. Therefore, the alarm information corresponding to the target application program is stored, recorded and managed through the preset alarm information database.
Optionally, if the current time is not within the alarm notification time, it indicates that the current time is not within a time interval in which the alarm information corresponding to the target application program can be provided to the target user, and the current time is not the time at which the alarm information can be provided to the target user, the data of each target performance index to be detected is not sent, and the alarm information corresponding to the data of each target performance index to be detected is directly stored in a preset alarm information database.
Optionally, the method further includes: and acquiring alarm rule updating information input by a user, and updating each index alarm rule corresponding to the target application program according to the alarm rule updating information. The alarm rule updating information is information for modifying, deleting or adding new index alarm rules corresponding to the target application program, which are input by the user.
Optionally, updating each indicator alarm rule corresponding to the target application program according to the alarm rule update information includes: and modifying, deleting or adding new index alarm rules corresponding to the target application program according to the alarm rule update information.
According to the technical scheme of the embodiment of the invention, at least one index alarm rule, an alarm notification mode and an alarm notification time window which are input by a user and correspond to a target application program are obtained; then, acquiring the performance index data to be detected corresponding to each index alarm rule from the performance index data to be detected of the target application program at regular time, and judging whether the performance index data to be detected corresponding to each index alarm rule accords with the corresponding index alarm rule or not; if at least one target performance index data to be detected which accords with the corresponding index alarm rule exists, generating alarm information corresponding to each target performance index data to be detected; according to the alarm notification mode and the alarm notification time window, the alarm information corresponding to the performance index data to be detected of each target is provided for the target user, the problem that in the related technology, the fixedly set alarm rule is difficult to meet the real-time alarm requirement of the user, the time and the mode for sending the alarm notification information are single, and the time and the mode for sending the alarm notification information cannot be determined according to the user requirement is solved, the alarm notification mode for detecting whether the designated performance index data of the target application program meets the corresponding alarm condition or not, the alarm notification mode for providing the alarm information corresponding to the target application program to the target user and the alarm notification time window for providing the alarm information corresponding to the target application program to the target user can be obtained, and the performance index data interesting to the user can be detected according to the individually set index alarm rule, the warning information which is interesting to the user is generated, and the warning information can be provided for the target user through the individually set opportunity and mode for providing the warning information, so that the target user can find the performance problem of the application program in time, the performance problem can be dealt with in time, and the beneficial effect of reducing the influence on the service is achieved.
Example two
Fig. 2 is a flowchart of a data alarm method according to a second embodiment of the present invention, which may be combined with various alternatives in one or more of the above embodiments. As shown in fig. 2, the method includes:
step 201, acquiring at least one index alarm rule, an alarm notification mode and an alarm notification time window corresponding to a target application program, which are input by a user, through an alarm configuration page.
Optionally, the alarm configuration page is a page for interacting with the user and acquiring various types of information related to the alarm process of the target application program, which is input by the user. The user may fill in or select at least one index alarm rule corresponding to the target application in an index alarm rule input area provided by the alarm configuration page, thereby inputting the at least one index alarm rule corresponding to the target application. The user may fill in or select the alert notification mode corresponding to the target application program in the alert notification mode input area provided by the alert configuration page, thereby inputting the alert notification mode corresponding to the target application program. The user may fill in or select the alert notification time window corresponding to the target application in the alert notification time window input area provided by the alert configuration page, thereby inputting the alert notification time window corresponding to the target application.
The index alarm rule input area is a page area for inputting an index alarm rule corresponding to the target application program in the alarm configuration page. The alarm notification mode input area is a page area for inputting an alarm notification mode corresponding to the target application program in the alarm configuration page. The alert notification time window is a page area in the alert configuration page for entering the alert notification time window corresponding to the target application.
Therefore, a user can set index alarm rules for detecting whether the designated performance index data of the target application program meets the corresponding alarm conditions, an alarm notification mode for providing the alarm information corresponding to the target application program to the target user and an alarm notification time window for providing the alarm information corresponding to the target application program to the target user in a personalized mode according to the real-time alarm requirements, so that the performance index data which the user is interested in can be detected according to the personalized index alarm rules, the alarm information which the user is interested in is generated, the alarm information is provided to the target user through the personalized opportunity and mode for providing the alarm information, the target user can find the performance problem of the application program in time, the handling is carried out in time, and the influence on the service is reduced.
Optionally, after obtaining at least one indicator alarm rule, an alarm notification mode, and an alarm notification time window corresponding to the target application program, which are input by the user, the method further includes: and storing at least one index alarm rule corresponding to the target application program into a preset alarm rule database. The preset alarm rule database is used for storing each index alarm rule corresponding to the target application program.
Therefore, the preset alarm rule database is used for storing and managing the alarm rules of all indexes, which are input by the user and correspond to the target application program.
Step 202, periodically obtaining the to-be-detected performance index data corresponding to each index alarm rule in each to-be-detected performance index data of the target application program, and judging whether the to-be-detected performance index data corresponding to each index alarm rule accords with the corresponding index alarm rule.
Step 203, if at least one target performance index data to be detected which accords with the corresponding index alarm rule exists, generating alarm information corresponding to each target performance index data to be detected.
And 204, detecting whether the current time is within the alarm notification time.
Optionally, the alert notification time window corresponding to the target application is a time interval in which alert information corresponding to the target application can be provided to the target user. Namely, the time interval in which the target user can receive and process the alarm information corresponding to the target application program. Illustratively, the alert notification time window corresponding to the target application is 9 to 12 am.
Step 205, if the current time is within the alarm notification time, caching the alarm information corresponding to the performance index data to be detected of each target in a preset alarm queue in a queue form.
Optionally, if the current time is within the alarm notification time, which indicates that the current time is in a time interval in which the alarm information corresponding to the target application program can be provided to the target user, and the current time is a time at which the alarm information can be provided to the target user, the alarm information corresponding to each target performance index data to be detected is cached in a preset alarm queue in a queue form. The preset alarm queue is a queue for buffering alarm information to be sent.
And step 206, sequentially sending the performance index data to be detected of each target cached in the preset alarm queue to the terminal equipment of the target user according to the alarm notification mode.
Optionally, the alarm notification manner may be: the method comprises the steps of sending by mail, sending by short message, sending by office software or sending by social software. And sequentially sending the performance index data to be detected of each target cached in the preset alarm queue to the terminal equipment of the target user according to the alarm notification mode, so that the performance index data to be detected of each target is sequentially sent to the terminal equipment of the target user by using an alarm information providing mode which is expected to be used by the target user in comparison in a time interval in which the alarm information corresponding to the target application program can be received and processed, so that the target user can timely find the performance problem of the application program, timely dispose and reduce the influence on the service.
And step 207, storing the alarm information corresponding to the performance index data to be detected of each target into a preset alarm information database.
Optionally, the preset alarm information database is a database for storing alarm information corresponding to the target application program. Therefore, the alarm information corresponding to the target application program is stored, recorded and managed through the preset alarm information database.
The technical proposal of the embodiment of the invention obtains the index alarm rule for detecting whether the designated performance index data of the target application program meets the corresponding alarm condition or not, the alarm notification mode for providing the alarm information corresponding to the target application program to the target user and the alarm notification time window for providing the alarm information corresponding to the target application program to the target user according to the real-time alarm requirement of the user through the alarm configuration page, can detect the performance index data which is interesting to the user according to the index alarm rule which is set individually, generates the alarm information which is interesting to the user, the method has the advantages that the alarming information can be provided for the target user through the individually set time and mode for providing the alarming information, so that the target user can find the performance problem of the application program in time, the handling is carried out in time, and the influence on the service is reduced.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a data alarm device according to a third embodiment of the present invention. The apparatus may be configured in an electronic device. As shown in fig. 3, the apparatus includes: an alarm rule obtaining module 301, an index data processing module 302, an alarm information generating module 303 and an alarm information providing module 304.
The alarm rule obtaining module 301 is configured to obtain at least one indicator alarm rule, an alarm notification mode, and an alarm notification time window, where the indicator alarm rule, the alarm notification mode, and the alarm notification time window are input by a user and correspond to a target application program; an index data processing module 302, configured to obtain performance index data to be detected corresponding to each index alarm rule in each piece of performance index data to be detected of the target application program at regular time, and determine whether the performance index data to be detected corresponding to each index alarm rule meets the corresponding index alarm rule; an alarm information generating module 303, configured to generate alarm information corresponding to each target performance index data to be detected, if at least one target performance index data to be detected exists that meets a corresponding index alarm rule; and an alarm information providing module 304, configured to provide alarm information corresponding to the to-be-detected performance indicator data of each target to a target user according to the alarm notification manner and the alarm notification time window.
According to the technical scheme of the embodiment of the invention, at least one index alarm rule, an alarm notification mode and an alarm notification time window which are input by a user and correspond to a target application program are obtained; then, acquiring the performance index data to be detected corresponding to each index alarm rule in each piece of performance index data to be detected of the target application program at regular time, and judging whether the performance index data to be detected corresponding to each index alarm rule accords with the corresponding index alarm rule or not; if at least one target performance index data to be detected which accords with the corresponding index alarm rule exists, generating alarm information corresponding to each target performance index data to be detected; according to the alarm notification mode and the alarm notification time window, the alarm information corresponding to the performance index data to be detected of each target is provided for the target user, the problem that in the related technology, the fixedly set alarm rule is difficult to meet the real-time alarm requirement of the user, the time and the mode for sending the alarm notification information are single, and the time and the mode for sending the alarm notification information cannot be determined according to the user requirement is solved, the alarm notification mode for detecting whether the designated performance index data of the target application program meets the corresponding alarm condition or not, the alarm notification mode for providing the alarm information corresponding to the target application program to the target user and the alarm notification time window for providing the alarm information corresponding to the target application program to the target user can be obtained, and the performance index data interesting to the user can be detected according to the individually set index alarm rule, the warning information which is interesting to the user is generated, and the warning information can be provided for the target user through the individually set opportunity and mode for providing the warning information, so that the target user can find the performance problem of the application program in time, the performance problem can be dealt with in time, and the beneficial effect of reducing the influence on the service is achieved.
In an optional implementation manner of the embodiment of the present invention, optionally, the alarm rule obtaining module 301 is specifically configured to: and acquiring at least one index alarm rule, an alarm notification mode and an alarm notification time window which are input by a user and correspond to the target application program through the alarm configuration page.
In an optional implementation manner of the embodiment of the present invention, optionally, the index data processing module 302 is specifically configured to: and executing the following operations aiming at each index alarm rule: the method comprises the steps that performance index data to be detected corresponding to index alarm rules are obtained from various performance index data to be detected of a target application program stored in a preset index database at regular time according to the alarm type of the index alarm rules; and judging whether the performance index data to be detected accords with the index alarm rule or not according to a performance index data threshold value in the index alarm rule.
In an optional implementation manner of the embodiment of the present invention, optionally, the alarm information providing module 304 is specifically configured to: detecting whether the current moment is within the alarm notification time; if the current moment is within the alarm notification time, caching alarm information corresponding to the target performance index data to be detected into a preset alarm queue in a queue form; and sequentially sending the performance index data to be detected of each target cached in the preset alarm queue to terminal equipment of a target user according to the alarm notification mode.
In an optional implementation manner of the embodiment of the present invention, optionally, the alarm information providing module 304 is further configured to: and storing the alarm information corresponding to the performance index data to be detected of each target into a preset alarm information database.
In an optional implementation manner of the embodiment of the present invention, optionally, the police rule obtaining module 301 is further configured to: and storing at least one index alarm rule corresponding to the target application program into a preset alarm rule database.
In an optional implementation manner of the embodiment of the present invention, optionally, the alarm rule obtaining module 301 is further configured to: and acquiring alarm rule updating information input by a user, and updating each index alarm rule corresponding to the target application program according to the alarm rule updating information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The data alarm device can execute the data alarm method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the data alarm method.
Example four
Fig. 4 shows a schematic structural diagram of an electronic device 10 that may be used to implement the data alert method of the embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM)12, a Random Access Memory (RAM)13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM)12 or the computer program built from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the data alert method.
In some embodiments, the data alert method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is built into the RAM 13 and executed by the processor 11, one or more steps of the data alert method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the data alert method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
The computer program for implementing the data alert method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the Internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A data warning method is characterized by comprising the following steps:
acquiring at least one index alarm rule, an alarm notification mode and an alarm notification time window which are input by a user and correspond to a target application program;
the performance index data to be detected corresponding to each index alarm rule is obtained from the performance index data to be detected of the target application program at regular time, and whether the performance index data to be detected corresponding to each index alarm rule accords with the corresponding index alarm rule is judged;
if at least one target performance index data to be detected which accords with the corresponding index alarm rule exists, generating alarm information corresponding to each target performance index data to be detected;
and providing the alarm information corresponding to the performance index data to be detected of each target to a target user according to the alarm notification mode and the alarm notification time window.
2. The method of claim 1, wherein the obtaining at least one indicator alarm rule, alarm notification mode and alarm notification time window corresponding to the target application program, which are input by a user, comprises:
and acquiring at least one index alarm rule, an alarm notification mode and an alarm notification time window which are input by a user and correspond to the target application program through the alarm configuration page.
3. The method according to claim 1, wherein the periodically obtaining the to-be-detected performance indicator data corresponding to each indicator alarm rule from the to-be-detected performance indicator data of the target application program, and determining whether the to-be-detected performance indicator data corresponding to each indicator alarm rule meets the corresponding indicator alarm rule, includes:
and executing the following operations aiming at each index alarm rule:
the method comprises the steps that performance index data to be detected corresponding to index alarm rules are obtained from various performance index data to be detected of a target application program stored in a preset index database at regular time according to the alarm type of the index alarm rules;
and judging whether the performance index data to be detected accords with the index alarm rule or not according to a performance index data threshold value in the index alarm rule.
4. The method according to claim 1, wherein the providing, according to the alarm notification manner and the alarm notification time window, alarm information corresponding to each of the target performance indicator data to be detected to a target user comprises:
detecting whether the current moment is within the alarm notification time;
if the current moment is within the alarm notification time, caching alarm information corresponding to the target performance index data to be detected into a preset alarm queue in a queue form;
and sequentially sending the performance index data to be detected of each target cached in the preset alarm queue to terminal equipment of a target user according to the alarm notification mode.
5. The method according to claim 4, wherein after sequentially sending the performance indicator data to be detected of each target buffered in the preset alarm queue to the terminal device of the target user according to the alarm notification manner, the method further comprises:
and storing the alarm information corresponding to the performance index data to be detected of each target into a preset alarm information database.
6. The method of claim 1, after obtaining at least one indicator alarm rule, alarm notification mode and alarm notification time window corresponding to the target application program, which are input by a user, further comprising:
and storing at least one index alarm rule corresponding to the target application program into a preset alarm rule database.
7. The method of claim 1, further comprising:
and acquiring alarm rule updating information input by a user, and updating each index alarm rule corresponding to the target application program according to the alarm rule updating information.
8. A data alert device, comprising:
the alarm rule acquisition module is used for acquiring at least one index alarm rule, an alarm notification mode and an alarm notification time window which are input by a user and correspond to the target application program;
the index data processing module is used for acquiring the performance index data to be detected corresponding to each index alarm rule from the performance index data to be detected of the target application program at regular time, and judging whether the performance index data to be detected corresponding to each index alarm rule accords with the corresponding index alarm rule;
the warning information generating module is used for generating warning information corresponding to each target performance index data to be detected if at least one target performance index data to be detected, which accords with the corresponding index warning rule, exists;
and the alarm information providing module is used for providing alarm information corresponding to the performance index data to be detected of each target to a target user according to the alarm notification mode and the alarm notification time window.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the data alert method of any one of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a processor to implement the data alert method of any one of claims 1 to 7 when executed.
CN202210432047.XA 2022-04-22 2022-04-22 Data warning method, device, equipment and medium Pending CN114661562A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210432047.XA CN114661562A (en) 2022-04-22 2022-04-22 Data warning method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210432047.XA CN114661562A (en) 2022-04-22 2022-04-22 Data warning method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114661562A true CN114661562A (en) 2022-06-24

Family

ID=82037316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210432047.XA Pending CN114661562A (en) 2022-04-22 2022-04-22 Data warning method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114661562A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115080366A (en) * 2022-08-22 2022-09-20 深圳依时货拉拉科技有限公司 Alarm method, alarm device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115080366A (en) * 2022-08-22 2022-09-20 深圳依时货拉拉科技有限公司 Alarm method, alarm device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108270618B (en) Alarm determination method, device and alarm system
CN109471783B (en) Method and device for predicting task operation parameters
CN107766533B (en) Automatic detection method and system for telephone traffic abnormality, storage medium and electronic equipment
CN109088775B (en) Abnormity monitoring method and device and server
CN112948223B (en) Method and device for monitoring running condition
CN114091704B (en) Alarm suppression method and device
CN112579903A (en) User account processing method, device, equipment and storage medium
CN115033463A (en) Method, device, equipment and storage medium for determining system exception type
CN116010220A (en) Alarm diagnosis method, device, equipment and storage medium
CN114301803B (en) Network quality detection method and device, electronic equipment and storage medium
CN114661562A (en) Data warning method, device, equipment and medium
CN116471174B (en) Log data monitoring system, method, device and storage medium
CN115168154B (en) Abnormal log detection method, device and equipment based on dynamic baseline
CN116668264A (en) Root cause analysis method, device, equipment and storage medium for alarm clustering
CN114884813B (en) Network architecture determining method and device, electronic equipment and storage medium
CN116594563A (en) Distributed storage capacity expansion method and device, electronic equipment and storage medium
CN115774648A (en) Abnormity positioning method, device, equipment and storage medium
CN115906135A (en) Tracing method and device for target data leakage path, electronic equipment and storage medium
CN113676531B (en) E-commerce flow peak clipping method and device, electronic equipment and readable storage medium
CN115509880A (en) Service system safety condition prediction method, device, equipment and medium
CN114867050A (en) Vehicle flow detection method, device, system, equipment and storage medium
CN113138903B (en) Method and apparatus for tracking performance of a storage system
CN115878427A (en) Monitoring alarm method, device, electronic equipment and storage medium
CN118363832A (en) Process prediction alarm method, device, equipment and storage medium
CN116089499A (en) Data statistics method, device and medium based on kafka data volume

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