CN113282460A - Distributed alarm system, method and device - Google Patents

Distributed alarm system, method and device Download PDF

Info

Publication number
CN113282460A
CN113282460A CN202110587596.XA CN202110587596A CN113282460A CN 113282460 A CN113282460 A CN 113282460A CN 202110587596 A CN202110587596 A CN 202110587596A CN 113282460 A CN113282460 A CN 113282460A
Authority
CN
China
Prior art keywords
alarm information
alarm
component
application
distributed
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
CN202110587596.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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202110587596.XA priority Critical patent/CN113282460A/en
Publication of CN113282460A publication Critical patent/CN113282460A/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/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a distributed alarm system, a distributed alarm method and a distributed alarm device, which are applied to the field of data processing. The system comprises: the system comprises an application terminal service interface parameter acquisition component, an alarm information transmission component and a log analysis component. The method comprises the steps that alarm information is determined through an application end service interface parameter acquisition component in the system, the alarm information is collected through an alarm information transmission component and is asynchronously sent to an open source stream processing platform Kafka, the alarm information acquired from the Kafka is analyzed through a log analysis component, and an alarm is given according to an analysis result, so that when the interface is called to complete a service in the distributed application, the alarm carried out by the system can be used for finding the quality problem of the interface in real time.

Description

Distributed alarm system, method and device
Technical Field
The present application relates to the field of data processing, and in particular, to a distributed alarm system, method, and apparatus.
Background
With the rapid development and evolution of the internet, the business requirements brought by the ever-changing business environment make the application end need to process complex and time-consuming business, and since the distributed application can be operated on a plurality of systems in the network and can use the computing power of the plurality of systems, the business can be completed rapidly and effectively in a distributed manner.
Generally, in a distributed application, an interface may be invoked to complete a service. For example, the distributed application includes an application end application program and a server end application program, and the server end application program can complete the service of the application end application program through a call interface, so that the application end can obtain the processing result of the service.
However, when the interface is called to complete the service, the provider of the interface may be a third party, and thus the quality problem of the interface may not be discovered.
Disclosure of Invention
In a first aspect, an embodiment of the present application provides a distributed alarm system, including: the system comprises an application terminal service interface parameter acquisition component, an alarm information transmission component and a log analysis component; the application terminal service interface parameter acquisition component and the alarm information transmission component are arranged in at least one terminal device, the log analysis component is arranged in a server, and the terminal device is in wired or wireless communication with the server;
the application terminal service interface parameter acquisition component is used for acquiring external interface calling related parameters of the terminal equipment where the application terminal service interface parameter acquisition component is located, and determining alarm information according to the external interface calling related parameters;
the alarm information transmission component is used for collecting the alarm information and asynchronously sending the alarm information to the open source flow processing platform Kafka;
and the log analysis component is used for acquiring the alarm information from the Kafka, analyzing the alarm information and giving an alarm according to the result obtained by analysis.
In a possible implementation manner, the external interface call related parameter includes: response time and/or exception information when the external interface is called;
the application service interface parameter acquisition component is specifically configured to determine whether the response time exceeds a threshold value when it is determined that the external interface is normally invoked, and generate the alarm information if the response time exceeds the threshold value.
In a possible implementation manner, the application side service interface parameter collection component is further specifically configured to capture abnormal information generated in the abnormal call when it is determined that the external interface is abnormally called, and integrate the abnormal information into the alarm information.
In a possible implementation manner, the application service interface parameter acquisition component is further configured to send the alarm information to a shared memory queue; the shared memory queue is provided by the alarm information transmission component, and the shared memory queue is used for sending the alarm information to the alarm information transmission component.
In a possible implementation manner, the log analysis component is further configured to persist the alarm information.
In a possible implementation manner, the log analysis component is specifically configured to combine the same type of alarm information of the same external interface generated within a preset time to obtain an analysis result.
In a possible implementation manner, the log analysis component is specifically further configured to send the analysis result to a preset number through a short message.
In a second aspect, an embodiment of the present application provides a distributed alarm method, which is applied to the distributed alarm system described in the first aspect, and the method includes:
acquiring external interface calling related parameters of terminal equipment where an application terminal service interface parameter acquisition component is located, and determining alarm information according to the external interface calling related parameters;
collecting the alarm information and asynchronously sending the alarm information to the open source flow processing platform Kafka;
and acquiring the alarm information from the Kafka, analyzing the alarm information, and giving an alarm according to the result obtained by analysis.
In a third aspect, an embodiment of the present application provides a distributed alarm device, where the device includes: a processing unit;
the processing unit is used for acquiring external interface calling related parameters of the terminal equipment where the application terminal service interface parameter acquisition component is located, and determining alarm information according to the external interface calling related parameters;
the processing unit is further configured to collect the alarm information and asynchronously send the alarm information to the open source stream processing platform Kafka;
and the processing unit is also used for acquiring the alarm information from the Kafka, analyzing the alarm information and giving an alarm according to the result obtained by analysis.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a memory for storing program instructions; and the processor is used for calling and executing the program instructions in the memory to execute the method of the second aspect.
In a fifth aspect, the present application provides a computer-readable storage medium storing instructions that, when executed, implement the method of the second aspect.
The application provides a distributed alarm system, a distributed alarm method and a distributed alarm device, which are applied to the field of data processing. The system comprises: the system comprises an application terminal service interface parameter acquisition component, an alarm information transmission component and a log analysis component. The method comprises the steps that alarm information is determined through an application end service interface parameter acquisition component in the system, the alarm information is collected through an alarm information transmission component and is asynchronously sent to an open source stream processing platform Kafka, the alarm information acquired from the Kafka is analyzed through a log analysis component, and an alarm is given according to an analysis result, so that when the interface is called to complete a service in the distributed application, the alarm carried out by the system can be used for finding the quality problem of the interface in real time.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic diagram of a service scenario provided in an embodiment of the present application;
fig. 2 is a system architecture diagram of a distributed alarm system according to an embodiment of the present application;
fig. 3 is a schematic diagram of a distributed alarm method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a distributed alarm method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a distributed alarm device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
With the rapid development and evolution of the internet, the business requirements brought by the ever-changing business environment make it more and more difficult for a single application architecture to support the development of the business system. Thus, complex and time consuming services may be handled by distributed applications, which may be done quickly and efficiently because they may run on multiple systems in a network, and may use the computing power of the multiple systems.
Generally, in a distributed application, the distributed application includes an application end application program and a server end application program, and the server end application program may complete a service of the application end application program through a call interface, so that the application end may obtain a processing result of the service.
However, when the service is completed by calling the interface, because the provider of the interface may be a third party, the quality of the interface is good and bad, so that the user cannot accurately know the processing condition of the service, and the use experience is affected.
Based on this, the embodiments of the present application provide a distributed alarm system, when processing a service of a user through the system, an application service interface parameter acquisition component in the system may determine alarm information, an alarm information transmission component collects the alarm information, and asynchronously sends the alarm information to an open source stream processing platform Kafka, and a log analysis component analyzes the alarm information obtained from Kafka, and gives an alarm according to an analysis result, so that when the interface is called to complete the service in a distributed application, the quality problem of the interface may be discovered in real time through the alarm performed by the system.
The method of the embodiment of the application can be applied to service scenes, such as coupon grabbing scenes or train ticket grabbing scenes, and it can be understood that specific contents of the service scenes can be set according to actual application scenes, and the embodiment of the application is not limited.
Fig. 1 is a schematic view of a service scenario provided in an embodiment of the present application, and the embodiment of the present application takes an example of a call interface as an example to complete a coupon grabbing service for a user.
As shown in fig. 1, the process of calling the interface to complete the coupon robbery service for the user can be divided into four processes:
process 1: and calling a blacklist interface to inquire whether the user is in the blacklist or not. For example, if the user is in the blacklist, the user is prompted to finish the activity, and an activity finish page is displayed; if the user is not in the blacklist, executing the process 2; wherein a black list may be understood as a list of users who have obtained the coupon.
And (2) a process: and calling an activity interface to inquire whether the user participates in the preferential activity. For example, if the user participates in the preferential event, an event end page is displayed, and if the user does not participate in the preferential event, process 3 is performed.
And 3, process: and calling an inventory interface to inquire the remaining inventory. For example, if there is no inventory, the activity end page is displayed, and if there is inventory, process 4 is performed.
And 4, process: and calling a score query interface to query the remaining scores. For example, if the user does not have points, an activity end page is displayed; if the user has the scores, displaying a coupon robbing page, so that the user can obtain the coupons on the coupon robbing page.
It should be noted that, in the process of calling the interface in the process 1 to the process 4, the quality problem of the interface can be discovered in real time through the distributed alarm system.
Fig. 2 is a system architecture diagram of a distributed alarm system according to an embodiment of the present application, and as shown in fig. 2, a distributed alarm system 200 includes: an application side service interface parameter acquisition component 101, an alarm information transmission component 102 and a log analysis component 201.
The application-side service interface parameter acquisition component 101 and the alarm information transmission component 102 are arranged in at least one terminal device 10, the log analysis component 201 is arranged in the server 20, and the terminal device 10 and the server 20 are in wired or wireless communication.
The application terminal service interface parameter acquisition component 101 is configured to acquire external interface call related parameters of the terminal device where the application terminal service interface parameter acquisition component is located, and determine alarm information according to the external interface call related parameters.
The external interface calls relevant parameters including: response time and/or exception information when the external interface is called, etc. It can be understood that the specific content of the external interface calling related parameter may also be set according to an actual application scenario, and the embodiment of the present application is not limited.
In a possible implementation manner, under the condition that the external interface call related parameter includes response time when the external interface is called, the application side service interface parameter acquisition component is specifically configured to determine whether the response time exceeds a threshold value when it is determined that the external interface is normally called, and generate alarm information if the response time exceeds the threshold value.
For example, the application service interface parameter acquisition component generates the alarm information when determining that the response time of the external interface is greater than or equal to the threshold value, so that the application service interface parameter acquisition component can generate the alarm information in real time when the interface processing service is called. The specific value of the threshold may be set according to an actual application scenario, and the embodiment of the present application is not limited.
In another possible implementation manner, the application-side service interface parameter collection component is specifically further configured to capture abnormal information generated in the abnormal call when it is determined that the external interface is abnormally called, and integrate the abnormal information into the alarm information, in a case that the external interface call related parameter includes the abnormal information.
For example, when the application service interface parameter collection component judges that the service flow cannot be executed, the external interface abnormal call is determined, and the abnormal information generated in the abnormal call is captured, so that the abnormal information can be integrated into the alarm information, and when the interface is called to process the service, the application service interface parameter collection component can integrate the abnormal information into the alarm information in real time. It can be understood that the implementation manner of capturing the abnormal information generated in the abnormal call by the application-side service interface parameter acquisition component may be set according to an actual application scenario, and the embodiment of the present application is not limited.
In another possible implementation manner, the application side service interface parameter acquisition component is specifically configured to capture abnormal information generated in the abnormal call when the external interface is determined to be abnormally called, and integrate the abnormal information into the alarm information, under the condition that the external interface call related parameters include response time and abnormal information.
For example, when the application side service interface parameter acquisition component determines that the external interface is abnormally called, the captured abnormal information can be integrated into the alarm information generated when the application side service interface parameter acquisition component determines that the external interface is abnormally called, and the abnormal information and the alarm information can jointly form the alarm information determined by the application side service interface parameter acquisition component, so that the alarm information can be generated in real time.
When determining that the external interface is abnormally called, the application-side service interface parameter acquisition component captures an implementation manner of abnormal information, which may refer to the description of the foregoing contents and is not described herein again; the implementation manner of generating the alarm information when the application terminal service interface parameter acquisition component determines that the external interface is abnormally called may refer to the description of the foregoing content, and is not described herein again; it can be understood that the implementation manner of capturing the abnormal information and generating the alarm information by the application side service interface parameter collection component may also be set according to the actual application scenario, and the embodiment of the present application is not limited.
With reference to fig. 1, the application service interface parameter acquisition component may determine the alarm information according to the interface call conditions in the processes 1 to 4. The implementation manner of determining the alarm information by the application service interface parameter acquisition component may refer to the above adaptive description, and is not described herein again.
And the alarm information transmission component 102 is used for collecting alarm information and asynchronously sending the alarm information to the open source stream processing platform Kafka.
In a possible implementation manner, the alarm information transmission component may collect alarm information based on the shared memory queue and asynchronously send the alarm information to the open source stream processing platform Kafka.
For example, the alarm information transmission component provides a shared memory queue, so that the application service interface parameter acquisition component can send the alarm information to the shared memory queue, and the shared memory queue sends the alarm information to the alarm information transmission component, so that the alarm information transmission component can collect the alarm information; the alarm information transmission component asynchronously sends the alarm information to the Kafka, so that the alarm information transmission component can continue to collect the alarm information, thereby ensuring that the alarm information transmission component can collect the alarm information in real time.
In a possible understanding manner, the application service interface parameter acquisition component 101 sends the alarm information to the shared memory queue, so that the sending of the alarm information can be uniformly processed by the background thread. For example, the background thread may read alarm information from the shared pair queue and write the alarm information to kafak. Therefore, decoupling can be realized, and delay caused by sending alarm information is avoided in the interface calling process.
In a possible understanding manner, the application service interface parameter collection component 101 generates alarm information, and the application service interface parameter collection component 101 may invoke the alarm information transmission component 102 to collect alarm information, so that the alarm information transmission component may collect alarm information in real time.
With reference to fig. 1, in the case that the application service interface parameter acquisition component determines the alarm information according to the interface call conditions in the processes 1 to 4, the alarm information transmission component may collect the alarm information and asynchronously send the alarm information to the open source stream processing platform Kafka. The implementation manner of collecting the alarm information and asynchronously sending the alarm information to the open source stream processing platform Kafka by the alarm information transmission component may refer to the above adaptive description, and is not described herein again.
And the log analysis component 201 is used for acquiring the alarm information from the Kafka, analyzing the alarm information and giving an alarm according to the result obtained by analysis.
In a possible implementation manner, the log analysis component may be deployed at the Kafka end, and when the Kafka receives the alarm information sent by the alarm information transmission component, the log analysis component may obtain the alarm information from the Kafka in real time. It can be understood that the implementation manner of acquiring the alarm information from Kafka by the log analysis component may be set according to an actual application scenario, and the embodiment of the present application is not limited.
In a possible implementation manner, the log analysis component analyzes the alarm information, and can combine the alarm information, thereby realizing the alarm.
For example, the log analysis component may combine the same type of alarm information of the same external interface generated within a preset time to obtain an analysis result, and thus, the log analysis component sends the analysis result to the preset number through a short message, thereby realizing alarm.
The preset number may be a mobile phone number of an operation and maintenance worker, or a special number for collecting alarm information, and it can be understood that the specific content of the preset number may also be set according to an actual application scenario, which is not limited in the embodiment of the present application.
And the log analysis component 201 is also used for persisting the alarm information. For example, the log analysis component may insert the alarm information into a database, and then analyze the alarm information, where the database includes the alarm information at multiple times of multiple interfaces, so that the log analysis component may analyze the alarm information more comprehensively through the database, and the log analysis component may analyze the implementation manner of the alarm information through the database, refer to the above adaptive description, and will not be described herein again; it can be understood that the implementation manner of analyzing the alarm information in the database by the log analysis component may also be set according to an actual application scenario, and the embodiment of the present application is not limited.
With reference to fig. 1, in a case where the application service interface parameter acquisition component determines alarm information according to interface call conditions in the processes 1 to 4, and the alarm information transmission component collects the alarm information and asynchronously sends the alarm information to the open source stream processing platform Kafka, the log analysis component 201 may obtain the alarm information from Kafka, analyze the alarm information, and alarm according to the result obtained by the analysis. The implementation manner of analyzing the alarm information by the log analysis component can refer to the above adaptive description, and is not described herein again.
With reference to the content described in the embodiment corresponding to fig. 2, exemplarily, fig. 3 is a schematic diagram of a distributed alarm method provided in the embodiment of the present application, and as shown in fig. 3, a processing procedure of the distributed alarm method is mainly completed by an application service interface parameter acquisition component, an alarm information transmission component, and a log analysis component.
The application terminal service interface parameter acquisition component can determine the alarm information based on the normal calling of the external interface and the abnormal calling of the external interface.
In one example, when the application service interface parameter collection component determines that the external interface is normally called, if the response time exceeds a threshold, the application service interface parameter collection component generates alarm information, so as to determine the alarm information.
In another example, when determining that the external interface is abnormally called, the application side service interface parameter collection component determines the alarm information by capturing abnormal information generated in the abnormal call and integrating the abnormal information into the alarm information.
The alarm information transmission component can collect alarm information based on the shared content queue and asynchronously send the alarm information to the open source stream processing platform Kafka based on the background linearity.
For example, the alarm information transmission component provides a shared memory queue, and after alarm information is generated by acquiring the parameters of the application service interface, the alarm information can be sent to the shared memory queue, so that the shared memory queue can send the alarm information to the alarm information transmission component, and the alarm information can be collected by the alarm information transmission component; the background thread can read the alarm information from the shared memory queue and write the alarm information into the Kafka, so that the alarm information can be asynchronously sent to the open source stream processing platform Kafka by the alarm information transmission component.
After the log analysis component acquires the alarm information from Kafka, the alarm information is analyzed, so that an alarm can be given according to an analysis result, and thus, when the interface is called to complete a service in distributed application, the quality condition of the interface can be found in real time.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following embodiments may be implemented independently or in combination, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Exemplarily, fig. 4 is a schematic flow chart of a distributed alarm method provided in the embodiment of the present application, and the method in the embodiment of the present application may be applied to a distributed alarm system, as shown in fig. 4, and may include the following steps:
s401: and acquiring external interface call related parameters of the terminal equipment where the application terminal service interface parameter acquisition component is positioned, and determining alarm information according to the external interface call related parameters.
In the embodiment of the present application, the external interface calls related parameters including: response time and/or exception information when invoking the external interface.
In the embodiment of the present application, the implementation manner of S401 may refer to the foregoing adaptive description, and is not described herein again. It can be understood that the implementation manner of S401 may also be set according to an actual application scenario, and the embodiment of the present application is not limited.
S402: and collecting alarm information and asynchronously sending the alarm information to the Kafka processing platform of the open source stream.
In the embodiment of the present application, the implementation manner of S402 may refer to the foregoing adaptive description, and is not described herein again. It can be understood that the implementation manner of S402 may also be set according to an actual application scenario, and the embodiment of the present application is not limited.
S403: and acquiring alarm information from Kafka, analyzing the alarm information, and giving an alarm according to the result obtained by analysis.
In the embodiment of the present application, the implementation manner of S403 may refer to the foregoing adaptive description, and is not described herein again. It can be understood that the implementation manner of S403 may also be set according to an actual application scenario, and the embodiment of the present application is not limited.
Fig. 5 is a schematic structural diagram of a distributed alarm device according to an embodiment of the present application, and as shown in fig. 5, the distributed alarm device includes a processing unit 501, where the processing unit 501 is configured to support the distributed alarm device to perform information processing.
In some possible embodiments, the distributed warning apparatus further includes: the storage unit 502, the processing unit 501 and the storage unit 502 are connected by a communication line.
The storage unit 502 may include one or more memories, which may be devices in one or more devices or circuits for storing programs or data.
The storage unit 502 may be independent and connected to the processing unit 501 of the distributed alarm device via a communication line, or the storage unit 502 may be integrated with the processing unit 501.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including: a memory, a processor;
a memory for storing processor-executable instructions;
wherein, when executing the instructions in the memory, the processor is configured to implement the method of any of the embodiments above.
Fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and as shown in fig. 6, the electronic device 60 includes a memory 640 and a processor 610, and the electronic device may further include a communication interface 630 and a bus 620. The processor 610, the communication interface 630 and the memory 640 are connected by a bus 620, the bus 620 can be divided into an address bus, a data bus, a control bus, etc., and the processor 610 is configured to execute executable modules, such as computer programs, stored in the memory 640.
The memory 640 may include a Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile memory) and provides operating instructions and data to the processor 610.
The memory is used for storing a program, and the processor executes the program after receiving an execution instruction.
The processor 610 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
Further, the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
According to another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having stored therein computer-executable instructions, which when executed by a processor, are configured to implement the method as described in any of the above embodiments.
The reader should understand that in the description of this specification, reference to the description of the terms "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely exemplary, e.g., a division of elements into only one type of logical division, and additional divisions may be realized in practice, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not implemented.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially or partially contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: various media that can store program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a RAM, a magnetic disk, or an optical disk.
It should also be understood that, in the embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention, and these modifications or substitutions are intended to be included in the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A distributed alarm system, comprising: the system comprises an application terminal service interface parameter acquisition component, an alarm information transmission component and a log analysis component; the application terminal service interface parameter acquisition component and the alarm information transmission component are arranged in at least one terminal device, the log analysis component is arranged in a server, and the terminal device is in wired or wireless communication with the server;
the application terminal service interface parameter acquisition component is used for acquiring external interface calling related parameters of the terminal equipment where the application terminal service interface parameter acquisition component is located, and determining alarm information according to the external interface calling related parameters;
the alarm information transmission component is used for collecting the alarm information and asynchronously sending the alarm information to the open source flow processing platform Kafka;
and the log analysis component is used for acquiring the alarm information from the Kafka, analyzing the alarm information and giving an alarm according to the result obtained by analysis.
2. The distributed alarm system of claim 1, wherein said external interface calls related parameters comprising: response time and/or exception information when the external interface is called;
the application service interface parameter acquisition component is specifically configured to determine whether the response time exceeds a threshold value when it is determined that the external interface is normally invoked, and generate the alarm information if the response time exceeds the threshold value.
3. The distributed alarm system of claim 2, wherein the application service interface parameter collection component is further configured to capture exception information generated in the exception call and integrate the exception information into the alarm information when determining that the external interface is invoked abnormally.
4. The distributed alarm system of any of claims 1-3, wherein the application-side service interface parameter collection component is further configured to send the alarm information to a shared memory queue; the shared memory queue is provided by the alarm information transmission component, and the shared memory queue is used for sending the alarm information to the alarm information transmission component.
5. The distributed alarm system of claim 1, wherein the log analysis component is further configured to persist the alarm information.
6. The distributed alarm system of claim 1 or 5, wherein the log analysis component is specifically configured to combine alarm information of the same type generated by the same external interface within a preset time to obtain an analysis result.
7. The distributed alarm system of claim 6, wherein the log analysis component is further configured to send the analysis result to a preset number via a short message.
8. A distributed alarm method applied to the distributed alarm system according to any one of claims 1 to 7, the method comprising:
acquiring external interface calling related parameters of terminal equipment where an application terminal service interface parameter acquisition component is located, and determining alarm information according to the external interface calling related parameters;
collecting the alarm information and asynchronously sending the alarm information to the open source flow processing platform Kafka;
and acquiring the alarm information from the Kafka, analyzing the alarm information, and giving an alarm according to the result obtained by analysis.
9. An electronic device, comprising:
a memory for storing program instructions;
a processor for invoking and executing program instructions in said memory for performing the method of claim 8.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of claim 8.
CN202110587596.XA 2021-05-27 2021-05-27 Distributed alarm system, method and device Pending CN113282460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110587596.XA CN113282460A (en) 2021-05-27 2021-05-27 Distributed alarm system, method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110587596.XA CN113282460A (en) 2021-05-27 2021-05-27 Distributed alarm system, method and device

Publications (1)

Publication Number Publication Date
CN113282460A true CN113282460A (en) 2021-08-20

Family

ID=77282297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110587596.XA Pending CN113282460A (en) 2021-05-27 2021-05-27 Distributed alarm system, method and device

Country Status (1)

Country Link
CN (1) CN113282460A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114064421A (en) * 2021-11-16 2022-02-18 展讯通信(上海)有限公司 Alarm processing method and device
CN115442213A (en) * 2022-08-30 2022-12-06 苏州浪潮智能科技有限公司 Visualization technology expansion method, device, medium and equipment based on alarm system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306345A (en) * 2015-10-08 2016-02-03 南京南瑞继保电气有限公司 Real-time data release system and method for power scheduling based on JMS message
CN107220162A (en) * 2017-07-04 2017-09-29 鹏元征信有限公司 A kind of service alarm method, storage medium and device
CN108134708A (en) * 2016-12-01 2018-06-08 腾讯科技(深圳)有限公司 The method and apparatus for monitoring third party's interface
CN109214908A (en) * 2018-07-06 2019-01-15 深圳市买买提信息科技有限公司 A kind of monitoring method and relevant apparatus
CN109660402A (en) * 2018-12-25 2019-04-19 钛马信息网络技术有限公司 Operation system realtime running monitor supervision platform and method
CN111193609A (en) * 2019-11-20 2020-05-22 腾讯科技(深圳)有限公司 Application abnormity feedback method and device and application abnormity monitoring system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306345A (en) * 2015-10-08 2016-02-03 南京南瑞继保电气有限公司 Real-time data release system and method for power scheduling based on JMS message
CN108134708A (en) * 2016-12-01 2018-06-08 腾讯科技(深圳)有限公司 The method and apparatus for monitoring third party's interface
CN107220162A (en) * 2017-07-04 2017-09-29 鹏元征信有限公司 A kind of service alarm method, storage medium and device
CN109214908A (en) * 2018-07-06 2019-01-15 深圳市买买提信息科技有限公司 A kind of monitoring method and relevant apparatus
CN109660402A (en) * 2018-12-25 2019-04-19 钛马信息网络技术有限公司 Operation system realtime running monitor supervision platform and method
CN111193609A (en) * 2019-11-20 2020-05-22 腾讯科技(深圳)有限公司 Application abnormity feedback method and device and application abnormity monitoring system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114064421A (en) * 2021-11-16 2022-02-18 展讯通信(上海)有限公司 Alarm processing method and device
CN114064421B (en) * 2021-11-16 2022-04-22 展讯通信(上海)有限公司 Alarm processing method and device
CN115442213A (en) * 2022-08-30 2022-12-06 苏州浪潮智能科技有限公司 Visualization technology expansion method, device, medium and equipment based on alarm system
CN115442213B (en) * 2022-08-30 2023-08-18 苏州浪潮智能科技有限公司 Visual technology expansion method, device, medium and equipment based on alarm system

Similar Documents

Publication Publication Date Title
CN110347716B (en) Log data processing method, device, terminal equipment and storage medium
CN108521353B (en) Processing method and device for positioning performance bottleneck and readable storage medium
CN105354126B (en) Monitor method and apparatus abnormal in page script file
CN113282460A (en) Distributed alarm system, method and device
CN109582655B (en) Method and device for positioning system log and computer readable storage medium
CN108322350B (en) Service monitoring method and device and electronic equipment
CN111158926B (en) Service request analysis method, device and equipment
CN115271736A (en) Method, device, equipment, storage medium and product for verifying transaction consistency
CN111309606A (en) Page exception handling method and device, computer equipment and storage medium
CN113676497A (en) Data blocking method and device, electronic equipment and storage medium
CN112948262A (en) System test method, device, computer equipment and storage medium
CN108377357B (en) Visual platform call method and device
CN116362750A (en) Data screening method and device, electronic equipment and storage medium
CN108429636B (en) Method and device for positioning abnormal system and electronic equipment
CN114979100A (en) Cloud resource checking method and related device
CN115328734A (en) Cross-service log processing method and device and server
CN107957915B (en) Heartbeat detection method of called party system, storage medium and server
CN113297149A (en) Method and device for monitoring data processing request
CN112764992A (en) Thread pool monitoring method, device and equipment
CN112148621A (en) Test method and device and electronic equipment
CN117528431B (en) Data monitoring method and device of communication platform and terminal equipment
CN110716856A (en) Distributed system submodule interaction testing method and device
CN113542796B (en) Video evaluation method, device, computer equipment and storage medium
CN116886445B (en) Processing method and device of filtering result, storage medium and electronic equipment
CN112541183B (en) Data processing method and device, edge computing 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210820