CN113282420A - Method and device for edge service alarm - Google Patents

Method and device for edge service alarm Download PDF

Info

Publication number
CN113282420A
CN113282420A CN202110635411.8A CN202110635411A CN113282420A CN 113282420 A CN113282420 A CN 113282420A CN 202110635411 A CN202110635411 A CN 202110635411A CN 113282420 A CN113282420 A CN 113282420A
Authority
CN
China
Prior art keywords
message
alarm
index
message queue
module
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
CN202110635411.8A
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.)
Xinao Shuneng Technology Co Ltd
Original Assignee
Xinao Shuneng Technology 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 Xinao Shuneng Technology Co Ltd filed Critical Xinao Shuneng Technology Co Ltd
Priority to CN202110635411.8A priority Critical patent/CN113282420A/en
Publication of CN113282420A publication Critical patent/CN113282420A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • 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/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/508Monitor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/547Messaging middleware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

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

Abstract

The disclosure relates to the technical field of Internet of things, and provides a method and a device for edge service alarm. The method comprises the following steps: the index acquisition module creates an index message queue according to the acquired index and transmits the index message queue to the first message middleware; when the alarm processing module acquires an index message queue in the first message middleware, the alarm processing module processes the index message queue according to a preset event rule to acquire an alarm message queue and transmits the alarm message queue to the second message middleware; when the forwarding agent module acquires the alarm message queue, the forwarding agent module transmits the alarm messages in the alarm message queue to the cloud service module; and the cloud service module processes the alarm message so as to send the alarm message to the target user. According to the cloud service module, various indexes can be monitored in real time through automatic alarming of the cloud service module, and a target user can be informed as soon as possible when an alarming message appears, so that fault removal can be carried out in time, and hidden dangers are eliminated.

Description

Method and device for edge service alarm
Technical Field
The disclosure relates to the technical field of internet of things, in particular to a method and a device for edge service alarm.
Background
Along with the development of the internet of things, the internet of things solution based on the cloud end gradually cannot meet the increasing demands of people, more and more enterprises begin to turn the eyes to the edge service, and extend and expand the cloud end service, so that the data analysis speed is increased, and the enterprises can make decisions faster and better. If the edge service fails, for example, the problems of resource usage overload, service logic error report, etc., not only the normal use of the user is directly affected, but also the problems of system paralysis, service interruption, etc. are caused.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a method and an apparatus for edge service alarm, so as to solve the problem that the existing edge service has poor reliability and cannot feed back the state of the device in time, so that the device cannot alarm in time when an emergency occurs, and the production time cannot be processed in time.
In a first aspect of the embodiments of the present disclosure, a method for an edge service alarm is provided, where the method includes:
the index acquisition module creates an index message queue according to the acquired index and transmits the index message queue to the first message middleware, wherein the index at least comprises system disk utilization rate, system CPU utilization rate and system memory utilization rate;
when the alarm processing module acquires an index message queue in the first message middleware, the alarm processing module processes the index message queue according to a preset event rule to acquire an alarm message queue and transmits the alarm message queue to the second message middleware;
when the forwarding agent module acquires the alarm message queue, transmitting the alarm message in the alarm message queue to the cloud service module;
and the cloud service module processes the alarm message so as to send the alarm message to the target user.
In a second aspect of the embodiments of the present disclosure, an edge service alarm apparatus is provided, including:
the index acquisition module is used for creating an index message queue according to the acquired index and transmitting the index message queue to the first message middleware, wherein the index at least comprises system disk utilization rate, system CPU utilization rate and system memory utilization rate;
the alarm processing module is used for processing the index message queue according to a preset event rule to obtain an alarm message queue and transmitting the alarm message queue to the second message middleware when the alarm processing module acquires the index message queue in the first message middleware;
the forwarding agent module is used for transmitting the alarm message in the alarm message queue to the cloud service module when the alarm message queue is obtained;
and the cloud service module is used for processing the alarm message so as to send the alarm message to the target user.
In a third aspect of the embodiments of the present disclosure, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
In a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, which stores a computer program, which when executed by a processor, implements the steps of the above-mentioned method.
Compared with the prior art, the embodiment of the disclosure has the following beneficial effects: according to the embodiment of the invention, the real-time operation index of the edge end service is collected, the index meeting the event alarm rule is selected through the alarm processing module, the index is transmitted to the cloud service module, and the cloud service module processes the alarm message so as to send the alarm message to the target user. According to the embodiment of the disclosure, the automatic alarm of the cloud service module enables the user to monitor the required alarm index and the like in real time, and the target user is notified as soon as possible when the alarm message appears, so that fault removal and fault duplication are performed, the influence and loss of an event are reduced to the minimum, and hidden dangers are removed in time.
Drawings
To more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without inventive efforts.
Fig. 1 is a flowchart of a method for an edge service alarm according to an embodiment of the present disclosure;
fig. 2 is a flowchart of creating and transmitting an index message queue according to an acquisition index in a method for edge-side service alarm provided by the embodiment of the present disclosure;
fig. 3 is a flowchart for processing an event alarm indicator in a method for edge service alarm provided in the embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a message being transmitted to a cloud service module in a method for edge service alarm according to an embodiment of the present disclosure;
fig. 5 is a flowchart illustrating that a cloud service module sends an alarm message to a target user in a method for edge service alarm according to the embodiment of the present disclosure;
fig. 6 is a flowchart of specific processing of an alarm in a method for an edge service alarm according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of an edge-side service alarm apparatus provided in an embodiment of the present disclosure;
fig. 8 is a schematic diagram of a computer device provided by an embodiment of the present disclosure.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the disclosed embodiments. However, it will be apparent to one skilled in the art that the present disclosure may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present disclosure with unnecessary detail.
An edge service alarm method and apparatus according to an embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for an edge serving alarm according to an embodiment of the present disclosure. As shown in fig. 1, the method for edge service alarm includes:
and S11, the index acquisition module creates an index message queue according to the acquired index and transmits the index message queue to the first message middleware, wherein the index at least comprises system disk utilization rate, system CPU utilization rate and system memory utilization rate.
Illustratively, the index collection module collects indexes, creates an index message queue based on the collected indexes, and transmits the index message queue to the first middleware, wherein the indexes include: system disk usage, system CPU (central processing unit) usage, memory usage, and the like. The message middleware refers to RabbitMq, which is open source message agent software for implementing a high-level message queue protocol, and is also called message-oriented middleware, and is an open standard of an application layer protocol. The message middleware is designed for message-oriented middleware, is mainly used for decoupling components, stores messages to the middleware and avoids loss of the messages in the transmission process.
The disclosed embodiments choose to transmit in a message queue because of the nature of the message queue itself, which is a container that holds messages during their transmission, the message queue manager acts as a man-in-the-middle role in transmitting messages to targets, the main purpose of the message queue is to provide routing and ensure delivery of messages, and if a recipient is unable or temporarily unable to apply when sending a message, the message queue will hold the message until it is successfully delivered.
Fig. 2 is a flowchart of creating and transmitting an index message queue according to an acquired index in a method for edge-side service alarm provided by the embodiment of the present disclosure. As shown in fig. 2, S11 specifically includes the following steps:
and S111, the index acquisition module acquires the system disk utilization rate and the system CPU utilization rate through a third party class library.
Third party class library refers to databases outside the system, e.g., Oshi. And acquiring the system disk utilization rate and the system CPU utilization rate by adopting a third-party class library to realize index acquisition of the terminal system. The Oshi is a Native operating system and a hardware information base of Java free JNA (Java Native Access), and provides a cross-platform implementation to retrieve system information.
And S112, the index acquisition module acquires the system memory utilization rate through a Linux command.
The Linux command is a command for managing the Linux system, and the Linux command is used for acquiring the memory usage rate because the memory usage rate acquired by Oshi is different from the actual Linux operation index. According to the index acquisition module, the system memory utilization rate is acquired through the Linux command, and the deviation is effectively avoided.
And S113, the index acquisition module acquires the CPU utilization rate and the memory utilization rate of each module deployed by the Docker through a Docker (a Docker stats, which is an open source application container engine) command. And the index acquisition module acquires indexes of the deployed modules through a Docker command. The Docker enables a developer to pack applications and dependency packages into a lightweight and portable container, and then releases the container to any running Linux or Windows machine, and can also realize virtualization. The Docker is selected in the embodiment of the disclosure because the Docker completely uses a sandbox mechanism, so that no interfaces exist among the Docker, and the Docker performance overhead is very low.
And S114, creating an index message queue based on the collected indexes, and transmitting the index message queue to the first message middleware.
S12, when the alarm processing module obtains the index message queue in the first message middleware, the alarm processing module processes the index message queue according to the preset event rule to obtain the alarm message queue, and transmits the alarm message queue to the second message middleware.
The preset event rule at least comprises one of the following conditions: device identification, rule identification, belonging module, index identification, preader, threshold, low threshold, high threshold, duration, event level, and alarm description.
Fig. 3 is a flowchart for processing an event alarm indicator in the method for edge service alarm provided in the embodiment of the present disclosure. As shown in fig. 3, S12 specifically includes the following steps:
s121, when the alarm processing module subscribes to the index message queue, the alarm processing module filters the index message queue according to a preset event rule to obtain the alarm message which accords with the preset event rule, wherein the preset event rule is the event rule stored by the metadata module.
Illustratively, the alarm processing module respectively performs corresponding processing on event alarm indexes which do not accord with the alarm event rule and which accord with the alarm event rule in the system disk utilization rate, the system CPU utilization rate and the system memory utilization rate according to a preset event rule, and filters the event alarm indexes which do not accord with the alarm event rule.
And S122, creating an alarm message queue according to the alarm message, and transmitting the alarm message queue to the second message middleware.
According to the event alarm indexes meeting the alarm event rules, the alarm message queue is established through RabbitMq (open source message agent software for realizing a high-level message queue protocol, also called message-oriented middleware), and the alarm message queue is transmitted to second message middleware.
And S13, when the forwarding agent module acquires the warning message queue, transmitting the warning message in the warning message queue to the cloud service module.
Exemplarily, the event alarm index meeting the event alarm rule is processed and then reported. For example, the serious event alarm and the frequently occurring event alarm are subjected to Message recombination and classification, and then the event alarm index meeting the alarm event rule is reported through an Mqtt (Message Queuing transmission) protocol. The Mqtt protocol is a message publishing/subscribing transmission protocol based on a client-server, provides real-time and reliable message service for connecting remote equipment with few codes and limited bandwidth, and is used as an instant communication protocol with low overhead and low bandwidth occupation to bring wide application to transmission of the Internet of things and the like. Therefore, the disclosed embodiment adopts the Mqtt protocol for reporting.
Fig. 4 is a flowchart illustrating transmitting an alarm message queue to a cloud service module in the method for edge service alarm according to the embodiment of the present disclosure. As shown in fig. 4, S13 specifically includes the following steps:
s131, when the forwarding agent module obtains the alarm message queue, the alarm message in the alarm message queue is transmitted to the Kafka message bus through the first message route by the Mqtt protocol.
Kafka, among other things, is a high-throughput distributed publish-subscribe messaging system that can handle all the action flow data of a consumer in a web site. Kafka is a distributed publish-subscribe messaging system that can support data transfer of large amounts of data. Kafka is able to create a backup of the message to secure the data. Kafka guarantees a high processing speed while guaranteeing low latency for data processing and zero loss of data. Thus, embodiments of the present disclosure choose to transfer data using Kafka.
S132, the forwarding agent module forwards the warning message transmitted to the Kafka message bus to the cloud service module through a second message route by an Http protocol.
The Kafka message bus acquires the alarm message, and forwards the alarm message to the cloud service module through a second message route by Http (Hypertext Transfer Protocol).
And S14, the cloud service module processes the alarm message so as to send the alarm message to the target user.
In a specific application scene, the cloud service module acquires alarm information, stores the alarm information into a database after the alarm information is subjected to persistence processing, sends the information to an intelligent platform information group, and informs a target user. The intelligent platform may be, but is not limited to, any APP with online office and notification functions, such as nailing. The target user may be a project principal or a corresponding operation and maintenance person. The cloud service module carries out persistence processing on the alarm message, so that when the requirement of a user for historical record query is received, the cloud service module provides a service for displaying the historical record of the corresponding query on the browser. The persistence is a mechanism for converting program data between a persistent state and a transient state, that is, transient data is persisted as persistent data, for example, persisted in a database and can be stored for a long time, so that a service for querying historical data can be provided. The device queried by the user is not limited to a browser, but may be any other device with a query function.
Fig. 5 is a flowchart illustrating that a cloud service module sends an alarm message to a target user in a method for edge service alarm provided in the embodiment of the present disclosure. As shown in fig. 5, S14 specifically includes the following steps:
and S141, the cloud service module processes the alarm message through an intelligent platform message API (Application Programming Interface), obtains the processed alarm message, and processes the alarm message to set an information level for the alarm message and correspond the information level to different colors.
Illustratively, the event alarm is processed through the nailing message API, and then the message is sent to the nailing message group and sent to the mobile phone of the project responsible person, and at the same time @ the target user is enabled to look up the alarm message in time. Wherein, the message level can be set when the nailing service processes the message: red and orange respectively represent serious alarm and secondary serious alarm, and green represents that the alarm is recovered to normal.
And S142, sending the processed alarm message to an intelligent platform message group, and reminding a target user.
Fig. 6 is a flowchart of specific processing of an alarm in a method for an edge service alarm provided in an embodiment of the present disclosure. As shown in fig. 6, after the step of sending the processed warning message to the intelligent platform message group and reminding the target user, the method further includes:
and S143, if the alarm message exists continuously, sending the alarm message to the target user according to the preset frequency.
Illustratively, the warning cloud service module calls a nailing API program to notify operation and maintenance personnel at the same time, and displays red or orange, for example, the preset collection period is 3 minutes, and when the same temperature data of the same equipment is collected for three times, if the temperature exceeds the threshold value for 3 times, that is, if 3 warning messages occur, a warning is issued. This is because if the collected index exceeds the threshold value only once or twice, there is a possibility that the program is started, and therefore, no alarm is given. If the indexes acquired for 3 times continuously exceed the threshold value, the result is not caused by the reasons, and therefore, an alarm measure is taken.
And when the alarm information continuously exists and the preset frequency is 1 minute, sending an alarm message to a target user every minute, and calling an API program on the nail and @ the target user while sending the alarm. For example, when the preset frequency is 1 minute, the operation and maintenance personnel can timely process the alarm message, the processing is completed after 2 minutes, two alarms of 'continuous alarm' appear in the 2 minutes, the 2 minutes are always red, and the nail can display green in the remaining 1 minute due to the fact that 1 minute is left from the next collection.
Illustratively, if the continuous event alarm exists, the alarm message is sent to the target user according to the preset frequency. The preset frequency may be set as required flexibly, and is not limited specifically herein, for example, every minute, every two minutes, every 30 seconds, every 10 seconds, every second, and the like.
And S144, if the warning message is not received, stopping sending the warning message to the target user, and sending a prompt message for restoring the warning to the normal state to the target user.
Illustratively, since the alarm color corresponds to the corresponding alarm level, when an orange alarm is received, the alarm event indicator is processed accordingly; when a red alarm is received, emergency treatment is carried out on the alarm event index correspondingly, and operation and maintenance personnel are added for multi-dimensional subsidy or first-aid repair; after corresponding processing, the red or orange in the alarm state is no longer displayed, and when a green alarm is received, the alarm event is considered to be recovered to normal, and no processing is needed. At this time, the target user receives at least one short message for informing that the alarm is recovered to normal.
According to the embodiment of the invention, the real-time operation index of the edge end service is collected, the index meeting the event alarm rule is selected through the alarm processing module, the index is transmitted to the cloud service module, and the cloud service module processes the alarm message so as to send the alarm message to the target user. The automatic alarm of the cloud service module enables the user to monitor the required alarm indexes and the like in real time, so that the user can be informed as soon as possible when alarm information appears, fault removal and fault duplication are facilitated, the influence and loss of events are reduced to the minimum, and hidden dangers are removed in time.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 7 is a schematic diagram of an edge-side service alarm apparatus provided in an embodiment of the present disclosure. As shown in fig. 7, the apparatus for edge service alarm includes:
the index acquisition module 71 is configured to create an index message queue according to the acquired index, and transmit the index message queue to the first message middleware, where the index at least includes a system disk usage rate, a system CPU usage rate, and a system memory usage rate;
the alarm processing module 72 is configured to, when the indicator message queue in the first message middleware is obtained, process the indicator message queue according to a preset event rule to obtain an alarm message queue, and transmit the alarm message queue to the second message middleware;
the forwarding agent module 73 is configured to transmit the alarm message in the alarm message queue to the cloud service module when the alarm message queue is acquired;
and the cloud service module 74 is configured to process the alarm message to send the alarm message to the target user.
The edge end service alarm device also comprises: and an alarm message query module 75 configured to receive the alarm message sent by the cloud service module and query the historical data. The alarm message query module 75 may be a client for performing fault handling and fault recovery by querying event alarm history.
Illustratively, a user queries an event alarm history record in a cloud service module through a browser or any device with a query function, and when the cloud provides the event alarm history record corresponding to the query on the browser for display, if an alarm message is obtained, a target user can perform urgent processing on the alarm message to stop loss in time.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
Fig. 8 is a schematic diagram of a computer device 8 provided by an embodiment of the present disclosure. As shown in fig. 8, the computer device 8 of this embodiment includes: a processor 801, a memory 802, and a computer program 803 stored in the memory 802 and operable on the processor 801. The steps in the various method embodiments described above are implemented when the computer program 803 is executed by the processor 801. Alternatively, the processor 801 implements the functions of the respective modules/units in the above-described respective apparatus embodiments when executing the computer program 803.
Illustratively, the computer program 803 may be divided into one or more modules/units, which are stored in the memory 802 and executed by the processor 801 to accomplish the present disclosure. One or more modules/units may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of computer program 803 in computer device 8.
The computer device 8 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computer devices. The computer device 8 may include, but is not limited to, a processor 801 and a memory 802. Those skilled in the art will appreciate that fig. 8 is merely an example of a computing device 8 and is not intended to limit the computing device 8 and may include more or fewer components than those shown, or some of the components may be combined, or different components, e.g., the computing device may also include input output devices, network access devices, buses, etc.
The Processor 801 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 802 may be an internal storage unit of the computer device 8, for example, a hard disk or a memory of the computer device 8. The memory 802 may also be an external storage device of the computer device 8, such as a plug-in hard disk provided on the computer device 8, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 802 may also include both internal storage units of the computer device 6 and external storage devices. The memory 802 is used to store computer programs and other programs and data required by the computer device. The memory 802 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus/computer device and method may be implemented in other ways. For example, the above-described apparatus/computer device embodiments are merely illustrative, and for example, a division of modules or units, a division of logical functions only, an additional division may be made in actual implementation, multiple units or components may be combined or integrated with another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
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 embodiment.
In addition, functional units in the embodiments of the present disclosure 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 modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present disclosure may implement all or part of the flow of the method in the above embodiments, and may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the above methods and embodiments. The computer program may comprise computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain suitable additions or additions that may be required in accordance with legislative and patent practices within the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals or telecommunications signals in accordance with legislative and patent practices.
The above examples are only intended to illustrate the technical solutions of the present disclosure, not to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present disclosure, and are intended to be included within the scope of the present disclosure.

Claims (10)

1. A method for an edge service alarm is characterized by comprising the following steps:
the index acquisition module creates an index message queue according to the acquired index and transmits the index message queue to the first message middleware, wherein the index at least comprises system disk utilization rate, system CPU utilization rate and system memory utilization rate;
when the alarm processing module acquires the index message queue in the first message middleware, the alarm processing module processes the index message queue according to a preset event rule to acquire an alarm message queue, and transmits the alarm message queue to a second message middleware;
when the forwarding agent module acquires the alarm message queue, transmitting the alarm message in the alarm message queue to a cloud service module;
and the cloud service module processes the alarm message so as to send the alarm message to a target user.
2. The method of claim 1, wherein the index collection module creates an index message queue according to the collected indexes and transmits the index message queue to the first message middleware for transmission, comprising:
the index acquisition module acquires the system disk utilization rate and the system CPU utilization rate through a third party class library;
the index acquisition module acquires the system memory utilization rate through a Linux command;
the index acquisition module acquires the CPU utilization rate and the memory utilization rate of each module deployed by the Docker through a Docker command;
and creating the index message queue based on the collected indexes, and transmitting the index message queue to first message middleware.
3. The method according to claim 1, wherein when the alarm processing module obtains the indicator message queue in the first message middleware, the alarm processing module processes the indicator message queue according to a preset event rule to obtain the alarm message queue, and transmits the alarm message queue to a second message middleware, including:
when the alarm processing module subscribes to the index message queue, the alarm processing module filters the index message queue according to a preset event rule to acquire the alarm message which accords with the preset event rule, wherein the preset event rule is an event rule stored according to a metadata module;
and creating the alarm message queue according to the alarm message, and transmitting the alarm message in the alarm message queue to the second message middleware.
4. The method of claim 3, wherein the predetermined event rules include at least one of: device identification, rule identification, belonging module, index identification, preader, threshold, low threshold, high threshold, duration, event level, and alarm description.
5. The method according to claim 1, wherein when the forwarding agent module obtains the warning message queue, transmitting the warning message in the warning message queue to a cloud service module, includes:
when the forwarding agent module acquires the alarm message queue, the alarm message in the alarm message queue is transmitted to a Kafka message bus through a first message route by an Mqtt protocol;
the warning message transmitted to the Kafka message bus is forwarded to the cloud service module through the second message route by an Http protocol.
6. The method of claim 1, wherein the cloud service module processes the alert message to send the alert message to a target user, comprising:
the cloud service module processes the alarm message through an intelligent platform message API to obtain the processed alarm message, wherein the processing comprises setting an information level for the alarm message and corresponding the information level to different colors;
and sending the processed alarm message to an intelligent platform message group, and reminding the target user.
7. The method of claim 6, wherein after the step of sending the processed alert message to the intelligent platform message group and alerting the target user, further comprising:
if the alarm message exists continuously, sending the alarm message to the target user according to a preset frequency;
if the warning message is not received, stopping sending the warning message to the target user, and sending a prompt message for restoring the warning to the normal state to the target user.
8. The method according to claim 1, wherein after the step of transmitting the warning message in the warning message queue to the cloud service module when the forwarding agent module obtains the warning message queue, the method further comprises:
and after receiving the alarm message, the cloud service module carries out persistence processing on the alarm message and stores the alarm message subjected to persistence processing into a database so as to provide historical data query service.
9. An edge side service alarm apparatus, comprising:
the system comprises an index acquisition module, a first message middleware and a second message middleware, wherein the index acquisition module is used for creating an index message queue according to acquired indexes and transmitting the index message queue to the first message middleware, and the indexes at least comprise system disk utilization rate, system CPU utilization rate and system memory utilization rate;
the alarm processing module is used for processing the index message queue according to a preset event rule to obtain an alarm message queue and transmitting the alarm message queue to a second message middleware when the alarm processing module obtains the index message queue in the first message middleware;
the forwarding agent module is used for transmitting the alarm message in the alarm message queue to the cloud service module when the alarm message queue is obtained;
and the cloud service module is used for processing the alarm message so as to send the alarm message to a target user.
10. The apparatus of claim 9, wherein said means for edge termination service alerting further comprises:
and the warning message query module is used for receiving the warning message sent by the cloud service module and querying historical data.
CN202110635411.8A 2021-06-07 2021-06-07 Method and device for edge service alarm Pending CN113282420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110635411.8A CN113282420A (en) 2021-06-07 2021-06-07 Method and device for edge service alarm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110635411.8A CN113282420A (en) 2021-06-07 2021-06-07 Method and device for edge service alarm

Publications (1)

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

Family

ID=77283666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110635411.8A Pending CN113282420A (en) 2021-06-07 2021-06-07 Method and device for edge service alarm

Country Status (1)

Country Link
CN (1) CN113282420A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113779339A (en) * 2021-08-24 2021-12-10 行云智网络科技(北京)有限公司 Automatic monitoring and alarming method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832200A (en) * 2017-10-24 2018-03-23 平安科技(深圳)有限公司 Alert processing method, device, computer equipment and storage medium
CN108449410A (en) * 2018-03-19 2018-08-24 深信服科技股份有限公司 Information management method, system and relevant apparatus in a kind of cloud platform
CN110858850A (en) * 2018-08-23 2020-03-03 比亚迪股份有限公司 Comprehensive network management method, device and system for rail transit system
CN111031094A (en) * 2019-11-06 2020-04-17 远景智能国际私人投资有限公司 Data transmission method, device, equipment and storage medium in IoT system
CN111176937A (en) * 2019-12-19 2020-05-19 深圳猛犸电动科技有限公司 Message middleware monitoring and warning system, method, terminal equipment and storage medium
CN112562281A (en) * 2020-12-23 2021-03-26 广东工业大学 Workshop equipment alarm event processing device and method based on edge calculation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832200A (en) * 2017-10-24 2018-03-23 平安科技(深圳)有限公司 Alert processing method, device, computer equipment and storage medium
CN108449410A (en) * 2018-03-19 2018-08-24 深信服科技股份有限公司 Information management method, system and relevant apparatus in a kind of cloud platform
CN110858850A (en) * 2018-08-23 2020-03-03 比亚迪股份有限公司 Comprehensive network management method, device and system for rail transit system
CN111031094A (en) * 2019-11-06 2020-04-17 远景智能国际私人投资有限公司 Data transmission method, device, equipment and storage medium in IoT system
CN111176937A (en) * 2019-12-19 2020-05-19 深圳猛犸电动科技有限公司 Message middleware monitoring and warning system, method, terminal equipment and storage medium
CN112562281A (en) * 2020-12-23 2021-03-26 广东工业大学 Workshop equipment alarm event processing device and method based on edge calculation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113779339A (en) * 2021-08-24 2021-12-10 行云智网络科技(北京)有限公司 Automatic monitoring and alarming method and system

Similar Documents

Publication Publication Date Title
CN110224858B (en) Log-based alarm method and related device
CN108572907B (en) Alarm method, alarm device, electronic equipment and computer readable storage medium
CN107888452B (en) 24-hour distributed website performance monitoring and real-time alarming method
CN113779339A (en) Automatic monitoring and alarming method and system
CN110362455B (en) Data processing method and data processing device
CN110995497A (en) Method for unified operation and maintenance in cloud computing environment, terminal device and storage medium
CN111130912B (en) Anomaly positioning method for content distribution network, server and storage medium
CN109947616A (en) A kind of automatically-monitored operational system of the cloud operating system based on OpenStack technology
CN110933698A (en) Monitoring management method, device and equipment for Internet of things card
CN113468025A (en) Data warning method, system, device and storage medium
CN114090366A (en) Method, device and system for monitoring data
CN114095522A (en) Vehicle monitoring method, service system, management terminal, vehicle and storage medium
CN110806960A (en) Information processing method and device and terminal equipment
CN110677304A (en) Distributed problem tracking system and equipment
CN113282420A (en) Method and device for edge service alarm
CN114978860A (en) Fault monitoring method and device, electronic equipment and storage medium
CN115001989A (en) Equipment early warning method, device, equipment and readable storage medium
CN110865921A (en) Data monitoring method and device, readable storage medium and electronic equipment
CN111181837A (en) Method and device for sending alarm information
CN112270531B (en) Event notification method, device, server and storage medium
WO2019237592A1 (en) Data monitoring method and apparatus, computer device, and storage medium
CN113778026A (en) Monitoring method and system based on industrial Internet of things
CN110633165B (en) Fault processing method, device, system server and computer readable storage medium
CN111488997A (en) Automatic operation and maintenance method, device, equipment and storage medium
CN111131382A (en) Message monitoring method and device

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