CN115296980A - Skywalking-based alarm method and related equipment - Google Patents

Skywalking-based alarm method and related equipment Download PDF

Info

Publication number
CN115296980A
CN115296980A CN202210919155.XA CN202210919155A CN115296980A CN 115296980 A CN115296980 A CN 115296980A CN 202210919155 A CN202210919155 A CN 202210919155A CN 115296980 A CN115296980 A CN 115296980A
Authority
CN
China
Prior art keywords
alarm
target
rule
monitoring service
custom
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
CN202210919155.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.)
State Grid Co ltd Customer Service Center
Original Assignee
State Grid Co ltd Customer Service Center
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 State Grid Co ltd Customer Service Center filed Critical State Grid Co ltd Customer Service Center
Priority to CN202210919155.XA priority Critical patent/CN115296980A/en
Publication of CN115296980A publication Critical patent/CN115296980A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Alarm Systems (AREA)

Abstract

The application provides an alarming method and related equipment based on Skywalking, wherein a user-defined alarming rule corresponding to each monitoring service, which is pre-stored in a database of a rear end, is displayed by utilizing a page of a front end, so that the user-defined alarming rule change can be carried out on the page of the front end, the user-defined alarming rule displayed by utilizing the page of the front end is changed and monitored by utilizing the rear end, the user-defined alarming rule is updated according to the change monitoring result without restarting, the updated user-defined alarming rule takes effect immediately, the corresponding target user-defined alarming rule is called from the database of the rear end according to the target monitoring service, the individuation of the alarming rule configuration is realized, the obtained link tracking data of the target monitoring service is compared with the target user-defined alarming rule to obtain an alarming triggering result, the target monitoring service is alarmed in time according to the alarming triggering result, the accurate and timely alarming function is realized, and the operation and maintenance management is facilitated.

Description

Skywalking-based alarm method and related equipment
Technical Field
The application relates to the technical field of intelligent alarm, in particular to an alarm method based on Skywalking and related equipment.
Background
The development of online service business is more and more complicated, in order to locate a fault timely and accurately, grasp fault information of fault service, gather and display alarms, enable operation and maintenance managers to acquire service operation state information accurately and rapidly, maintain the fault timely, often need to configure alarm rules, and alarm the fault through the alarm rules.
Based on the above situation, the alarm mode adopted in the prior art is single in configuration and cannot be directly oriented to the user front end, and in addition, after the alarm rule is modified, the service needs to be restarted, and accurate and timely alarm cannot be performed.
Disclosure of Invention
In view of the above, an object of the present application is to provide an alerting method and related device based on skywalk, so as to solve or partially solve the above technical problems.
Based on the above purpose, a first aspect of the present application provides an alarm method based on skywalk, which is applied to a skywalk system, where the skywalk system includes a front end and a back end, and the method includes:
acquiring link tracking data of a target monitoring service through the back end;
sending a plurality of customized alarm rules pre-stored in a database of the back end to a page of the front end, wherein the database stores the customized alarm rules corresponding to each monitoring service;
displaying the received custom alarm rule through the page of the front end, and sending the displayed custom alarm rule to the rear end;
carrying out change monitoring on the received custom alarm rule displayed on the page of the front end through the rear end to obtain a change monitoring result, and updating the custom alarm rule according to the change monitoring result;
calling a corresponding target custom alarm rule from the database through the back end according to the target monitoring service;
and comparing the link tracking data of the target monitoring service with the target self-defined alarm rule by using the rear end to obtain an alarm trigger result, and alarming the target monitoring service through the target self-defined alarm rule according to the alarm trigger result.
Optionally, the updating the custom alarm rule according to the change monitoring result includes:
in response to determining that the change monitoring result is that the custom alarm rule is changed, reloading the custom alarm rule through the back end;
and in response to the fact that the change monitoring result is that the custom alarm rule is not changed, the back end does not reload the custom alarm rule.
Optionally, the invoking, by the back end, a corresponding target custom alarm rule from the database according to the target monitoring service includes:
acquiring an ID of a target monitoring service;
and searching a corresponding target self-defined alarm rule from the database through the back end according to the ID of the target monitoring service, and calling the target self-defined alarm rule, wherein the database stores the self-defined alarm rule corresponding to the ID of each monitoring service.
Optionally, the comparing, by using the back end, the link tracking data of the target monitoring service with the target custom alarm rule to obtain an alarm trigger result includes:
comparing the target monitoring service link tracking data with a preset alarm triggering condition in the target custom alarm rule by using the back end;
responding to the condition that the target monitoring service link tracking data meets the preset alarm triggering condition, and obtaining an alarm triggering result as a triggering alarm;
and responding to the situation that the target monitoring service link tracking data does not meet the preset alarm triggering condition, and obtaining an alarm triggering result as a non-triggering alarm.
Optionally, an alarm pushing mode and an alarm pushing object are set in the target custom alarm rule;
the alarming the target monitoring service through the target customized alarming rule according to the alarming triggering result comprises the following steps:
and in response to the fact that the alarm triggering result is the alarm triggering result, obtaining alarm information, and sending the alarm information to the alarm pushing object according to the alarm pushing mode.
Optionally, the database is an ES database.
Optionally, the ES database includes a plurality of service groups, and a custom alarm rule corresponding to the monitoring service ID is set in each service group.
Based on the same inventive concept, a second aspect of the present application provides an alerting device based on Skywalking, where the device is disposed in a Skywalking system, the Skywalking system includes a front end and a back end, and the device includes:
a link trace data acquisition module configured to acquire link trace data of a target monitoring service through the backend;
the self-defined alarm rule sending module is used for sending a plurality of self-defined alarm rules pre-stored in a database of the rear end to a page of the front end, wherein the self-defined alarm rules corresponding to each monitoring service are stored in the database;
the display module is configured to display the received custom alarm rule through the page of the front end and send the displayed custom alarm rule to the back end;
the change monitoring module is configured to perform change monitoring on the received custom alarm rule displayed on the page of the front end through the back end to obtain a change monitoring result, and update the custom alarm rule according to the change monitoring result;
the calling module is configured to call a corresponding target custom alarm rule from the database through the back end according to the target monitoring service;
and the alarm module is configured to compare the link tracking data of the target monitoring service with the target custom alarm rule by using the rear end to obtain an alarm trigger result, and alarm the target monitoring service through the target custom alarm rule according to the alarm trigger result.
Based on the same inventive concept, a third aspect of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the method of the first aspect.
Based on the same inventive concept, a fourth aspect of the present application provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of the first aspect.
From the above, it can be seen that the warning method and the related device based on skywalk provided by the application display the customized warning rules corresponding to each monitoring service, which are pre-stored in the database of the back-end, by using the page of the front-end, so that the customized warning rules displayed on the page of the front-end can be changed and monitored by using the back-end, the customized warning rules are updated according to the changed monitoring result, the updated customized warning rules are immediately effective without restarting, the corresponding target customized warning rules are called from the database of the back-end according to the target monitoring service, individualization of warning rule configuration is realized, the obtained link tracking data of the target monitoring service is compared with the target customized warning rules, the warning trigger result is obtained, the target monitoring service is warned according to the warning trigger result through the target warning rules, an accurate and timely warning function is realized, and operation and maintenance management is facilitated.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the related art, the drawings needed to be used in the description of the embodiments or the related art will be briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of an alerting method based on skywalk according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an alerting device based on skywalk according to an embodiment of the present application;
fig. 3 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to specific embodiments and the accompanying drawings.
It should be noted that technical terms or scientific terms used in the embodiments of the present application should have a general meaning as understood by those having ordinary skill in the art to which the present application belongs, unless otherwise defined. The use of "first," "second," and similar terms in the embodiments of the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used only to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
The alarm rules adopted in the related technology are single in configuration and cannot be directly oriented to the front end of the user, and in addition, when the alarm rules are modified, the service needs to be restarted, so that the timely alarm function cannot be realized.
The warning method based on Skywalking proposed in this embodiment is, as shown in fig. 1, applied to a Skywalking system, where the Skywalking system includes a front end and a back end, and the method includes:
and 101, acquiring link tracking data of the target monitoring service through the back end.
In specific implementation, a probe deployed at the rear end of a skywalk (application performance monitoring system) system is used for acquiring data of a target monitoring service, and link tracking data of the target monitoring service is obtained.
And 102, sending a plurality of customized alarm rules pre-stored in a database of the back end to a page of the front end, wherein the database stores the customized alarm rules corresponding to each monitoring service.
In specific implementation, the user-defined alarm rule is set according to each monitoring service, so that the alarm rule can be configured according to specific needs, the individuation of alarm rule configuration is ensured, and the user-defined alarm rule corresponding to each monitoring service is stored in a database at the back end in advance.
And 103, displaying the received custom alarm rule through the front-end page, and sending the displayed custom alarm rule to the rear end.
In specific implementation, each custom alarm rule is displayed through a page of the front end, so that the change of the custom alarm rule at the front end is realized, wherein for one custom alarm rule, the change comprises deleting, modifying or adding condition information deployed in the corresponding custom alarm rule.
And step 104, performing change monitoring on the received custom alarm rule displayed on the page of the front end through the back end to obtain a change monitoring result, and updating the custom alarm rule according to the change monitoring result.
During specific implementation, the rear end monitors changes of each self-defined alarm rule displayed through a front-end page under different paths (Classpath) by using a spring-boot-devtools, and when a certain self-defined alarm rule is monitored to change, the self-defined alarm rule is updated by using a jrebel tool (reloading tool), so that a hot deployment function is realized, restarting is not needed, the updated self-defined alarm rule takes effect immediately, and a guarantee is provided for realizing a timely alarm function.
And 105, calling a corresponding target custom alarm rule from the database through the back end according to the target monitoring service.
During specific implementation, the corresponding target self-defined alarm rule is directly called from a database at the back end according to the target monitoring service, so that the alarm time delay is avoided, and a guarantee is provided for realizing a more timely alarm function.
And 106, comparing the link tracking data of the target monitoring service with the target custom alarm rule by using the rear end to obtain an alarm trigger result, and alarming the target monitoring service through the target custom alarm rule according to the alarm trigger result.
In specific implementation, the rear end is used for comparing the link tracking data of the target monitoring service with the target custom alarm rule to judge whether the link tracking data of the target monitoring service meets the corresponding target custom alarm rule or not, so that an alarm trigger result is obtained, and the target monitoring service needing to be alarmed is alarmed according to the alarm trigger result and in a mode of the target custom alarm rule.
By the scheme, the user-defined alarm rule is set according to each monitoring service, so that the alarm rule can be configured according to specific needs, individuation of alarm rule configuration is guaranteed, the user-defined alarm rule corresponding to each monitoring service is stored in a database at the rear end in advance, the user-defined alarm rule corresponding to each monitoring service, which is stored in the database at the rear end in advance, is displayed by using a page at the front end, and further user-defined alarm rule change can be performed at the front end.
The method comprises the steps that a rear end and a rear end are utilized to monitor changes of all self-defined alarm rules displayed through a front-end page under different paths (Classpath) through Springs-boot-devtools, when a certain self-defined alarm rule is monitored to change, a jrebel tool (reloading tool) is utilized to update the self-defined alarm rule, a heat deployment function is achieved, restarting is not needed, the updated self-defined alarm rule takes effect immediately, and then a guarantee is provided for achieving the timely alarm function.
And then, the corresponding target self-defined alarm rule is directly called from a database at the back end according to the target monitoring service, so that the alarm time delay is avoided, and a guarantee is provided for realizing a more timely alarm function. The method comprises the steps of acquiring data of a target monitoring service by using a probe deployed at the rear end of a Skywalking (application performance monitoring system) system to obtain link tracking data of the target monitoring service, comparing the link tracking data with a target self-defined alarm rule to obtain an alarm trigger result, and giving an alarm to the target monitoring service through the target self-defined alarm rule according to the alarm trigger result, so that an accurate and timely alarm function is realized, and operation and maintenance management is facilitated.
In some embodiments, in step 104, the updating a custom alarm rule according to the change monitoring result includes:
step 1041, in response to determining that the change monitoring result is that the custom alarm rule is changed, reloading the custom alarm rule through the back end.
Step 1042, in response to determining that the change monitoring result is that the custom alarm rule is not changed, the back end does not reload the custom alarm rule.
In specific implementation, when the change monitoring result is any change of deleting, modifying or adding condition information deployed in the custom alarm rule, the back end loads the changed custom alarm rule by using a jrebel tool, so that a hot deployment function is realized, restarting is not needed, the updated custom alarm rule takes effect immediately, and a guarantee is provided for realizing a timely alarm function.
When the change monitoring result is that the condition information deployed in the custom alarm rule is changed by deletion, modification or addition, the back end does not need to reload the custom alarm rule, or the back end uses a jrebel tool to load the custom alarm rule in real time, and the custom alarm rule reloaded in real time is not changed.
In some embodiments, step 105 comprises:
step 1051, obtaining ID of target monitoring service;
step 1052, searching a corresponding target self-defined alarm rule from the database according to the ID of the target monitoring service through the back end, and calling the target self-defined alarm rule, where the database stores the self-defined alarm rule corresponding to the ID of each monitoring service.
In specific implementation, the ID of the target monitoring service is obtained, the customized alarm rule corresponding to the ID of each monitoring service is stored in the database in advance, the customized calling rule corresponding to the ID which is the same as the ID of the target monitoring service is searched from the database by the back end by taking the ID of the target monitoring service as the basis, and the customized calling rule is used as the target customized alarm rule to be called.
In some embodiments, in step 106, the comparing, by the back end, the link trace data of the target monitoring service with the target custom alarm rule to obtain an alarm trigger result includes:
step A1, comparing the target monitoring service link tracking data with a preset alarm triggering condition in the target custom alarm rule by using the back end;
step A2, in response to the fact that the target monitoring service link tracking data meets the preset alarm triggering condition, obtaining an alarm triggering result as a triggering alarm;
and step A3, responding to the situation that the target monitoring service link tracking data does not meet the preset alarm triggering condition, and obtaining an alarm triggering result as a non-triggering alarm.
When the method is implemented specifically, target monitoring service link tracking data is input into a pre-trained neural network model, the target monitoring service link tracking data is compared with alarm triggering conditions preset in target self-defined alarm rules through the neural network model, an alarm triggering result label is output, and an alarm triggering result is obtained according to the alarm triggering result label, for example, the alarm triggering result label is 1 or 0,0 represents that no alarm is triggered, represents that the target monitoring service link tracking data does not meet the alarm triggering conditions preset in the target self-defined alarm rules, no alarm is triggered, and the alarm triggering result is no alarm is triggered. And 1, triggering an alarm, wherein the target monitoring service link tracking data meets the alarm triggering condition preset in the target custom alarm rule and needs to trigger the alarm, and the alarm triggering result is the trigger alarm.
The preset alarm triggering conditions in the target custom alarm rule may be lower than a set threshold, greater than or equal to the set threshold, between set threshold ranges or outside the set threshold ranges, and the like, and the preset alarm triggering conditions may be set according to actual conditions, and are not specifically limited herein.
In some embodiments, an alarm push mode and an alarm push object are set in the target custom alarm rule;
in step 106, the warning the target monitoring service through the target custom warning rule according to the warning trigger result includes:
and responding to the alarm triggering result which is determined to be the alarm triggering, obtaining alarm information, and sending the alarm information to the alarm pushing object according to the alarm pushing mode.
When the alarm is triggered, the alarm information is generated, the alarm is given according to the preset push mode and the alarm push object in the target custom alarm rule, and the alarm information is sent to the alarm push object according to the push mode.
In some embodiments, the database is an ES database.
In specific implementation, an ES (elastic search, search server) database can provide a full-text search function for keyword index query, can adapt to processing and analysis of a large amount of data, and can realize direct retrieval of a target custom alarm rule from the ES database according to a target monitoring service.
In some embodiments, the ES database includes a plurality of service groups, and each service group has a custom alarm rule corresponding to a monitoring service ID.
In specific implementation, a plurality of service groups are set in the ES database, different custom alarm rules can be set individually according to corresponding monitoring services, and the different custom alarm rules are set in different service groups, so that the diversification of alarm rule setting is realized.
It should be noted that the method of the embodiment of the present application may be executed by a single device, such as a computer or a server. The method of the embodiment can also be applied to a distributed scene and completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the multiple devices may only perform one or more steps of the method of the embodiment, and the multiple devices interact with each other to complete the method.
It should be noted that the foregoing describes some embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Based on the same inventive concept, corresponding to the method of any embodiment, the application also provides an alarm device based on Skywalking.
Referring to fig. 2, the Skywalking-based alerting device is disposed in a Skywalking system, the Skywalking system includes a front end and a back end, and the device includes:
a link trace data obtaining module 201 configured to obtain link trace data of a target monitoring service through the backend;
a custom alarm rule sending module 202, configured to send a plurality of custom alarm rules pre-stored in a database of the back end to a page of the front end, where the database stores a custom alarm rule corresponding to each monitoring service;
the display module 203 is configured to display the received customized alarm rule through the page of the front end and send the displayed customized alarm rule to the back end;
the change monitoring module 204 is configured to perform change monitoring on the received custom alarm rule displayed on the front-end page through the back end to obtain a change monitoring result, and update the custom alarm rule according to the change monitoring result;
the calling module 205 is configured to call, by the backend, a corresponding target customized alarm rule from the database according to the target monitoring service;
the alarm module 206 is configured to compare the link trace data of the target monitoring service with the target customized alarm rule by using the backend to obtain an alarm trigger result, and alarm the target monitoring service according to the alarm trigger result and the target customized alarm rule.
In some embodiments, the change listening module 204 is specifically configured to:
in response to determining that the change monitoring result is that the custom alarm rule is changed, reloading the custom alarm rule through the back end;
and in response to the fact that the change monitoring result is that the custom alarm rule is not changed, the back end does not reload the custom alarm rule.
In some embodiments, the invoking module 205 is specifically configured to:
acquiring an ID of a target monitoring service;
and searching a corresponding target self-defined alarm rule from the database through the back end according to the ID of the target monitoring service, and calling the target self-defined alarm rule, wherein the database stores the self-defined alarm rule corresponding to the ID of each monitoring service.
In some embodiments, the alert module 206 is specifically configured to:
comparing the target monitoring service link tracking data with a preset alarm triggering condition in the target custom alarm rule by using the back end;
responding to the condition that the target monitoring service link tracking data meets the preset alarm triggering condition, and obtaining an alarm triggering result as a triggering alarm;
and responding to the situation that the target monitoring service link tracking data does not meet the preset alarm triggering condition, and obtaining an alarm triggering result as a non-triggering alarm.
In some embodiments, an alarm pushing mode and an alarm pushing object are set in the target custom alarm rule;
the alert module 206 is further specifically configured to:
and responding to the alarm triggering result which is determined to be the alarm triggering, obtaining alarm information, and sending the alarm information to the alarm pushing object according to the alarm pushing mode.
In some embodiments, the database is an ES database.
In some embodiments, the ES database includes a plurality of service groups, and each service group has a custom alarm rule corresponding to a monitoring service ID.
For convenience of description, the above devices are described as being divided into various modules by functions, which are described separately. Of course, the functionality of the various modules may be implemented in the same one or more pieces of software and/or hardware in the practice of the present application.
The apparatus in the foregoing embodiment is used to implement the corresponding skywalk-based alarm method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to the method in any embodiment, the application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the skywalk-based alert method in any embodiment when executing the program.
Fig. 3 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the device may include: a processor 301, a memory 302, an input/output interface 303, a communication interface 304, and a bus 305. Wherein the processor 301, the memory 302, the input/output interface 303 and the communication interface 304 are communicatively connected to each other within the device via a bus 305.
The processor 301 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present specification.
The Memory 302 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static Memory device, a dynamic Memory device, or the like. The memory 302 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 302 and called to be executed by the processor 301.
The input/output interface 303 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component within the device (not shown) or may be external to the device to provide corresponding functionality. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 304 is used for connecting a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, bluetooth and the like).
Bus 305 includes a path that transfers information between the various components of the device, such as processor 301, memory 302, input/output interface 303, and communication interface 304.
It should be noted that although the above-mentioned device only shows the processor 301, the memory 302, the input/output interface 303, the communication interface 304 and the bus 305, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
The electronic device of the above embodiment is used to implement the corresponding skywalk-based index acquisition method in any one of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to any of the above-described embodiment methods, the present application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the skywalk-based index acquisition method according to any of the above embodiments.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The computer instructions stored in the storage medium of the foregoing embodiment are used to enable the computer to execute the skywalk-based index acquisition method according to any one of the foregoing embodiments, and have the beneficial effects of corresponding method embodiments, and therefore, details are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the context of the present application, technical features in the above embodiments or in different embodiments may also be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures for simplicity of illustration and discussion, and so as not to obscure the embodiments of the application. Furthermore, devices may be shown in block diagram form in order to avoid obscuring embodiments of the application, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the embodiments of the application are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the application, it should be apparent to one skilled in the art that the embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures, such as Dynamic RAM (DRAM), may use the discussed embodiments.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present application are intended to be included within the scope of the present application.

Claims (10)

1. A Skywalking-based alarm method is applied to a Skywalking system, the Skywalking system comprises a front end and a back end, and the method comprises the following steps:
acquiring link tracking data of a target monitoring service through the back end;
sending a plurality of customized alarm rules pre-stored in a database of the back end to a page of the front end, wherein the database stores the customized alarm rules corresponding to each monitoring service;
displaying the received custom alarm rule through the page of the front end, and sending the displayed custom alarm rule to the rear end;
carrying out change monitoring on the received custom alarm rule displayed on the page of the front end through the back end to obtain a change monitoring result, and updating the custom alarm rule according to the change monitoring result;
calling a corresponding target self-defined alarm rule from the database through the back end according to the target monitoring service;
and comparing the link tracking data of the target monitoring service with the target self-defined alarm rule by using the rear end to obtain an alarm trigger result, and alarming the target monitoring service through the target self-defined alarm rule according to the alarm trigger result.
2. The method of claim 1, wherein updating a custom alarm rule based on the change monitoring result comprises:
in response to determining that the change monitoring result is that the custom alarm rule is changed, reloading the custom alarm rule through the back end;
and in response to determining that the change monitoring result is that the custom alarm rule is not changed, the back end does not reload the custom alarm rule.
3. The method of claim 1, wherein the retrieving, by the backend according to the target monitoring service, a corresponding target custom alarm rule from the database comprises:
acquiring an ID of a target monitoring service;
and searching a corresponding target self-defined alarm rule from the database through the back end according to the ID of the target monitoring service, and calling the target self-defined alarm rule, wherein the database stores the self-defined alarm rule corresponding to the ID of each monitoring service.
4. The method of claim 1, wherein the comparing, by the backend, the link trace data of the target monitoring service with the target custom alarm rule to obtain an alarm trigger result comprises:
comparing the target monitoring service link tracking data with a preset alarm triggering condition in the target custom alarm rule by using the back end;
responding to the condition that the target monitoring service link tracking data meets the preset alarm triggering condition, and obtaining an alarm triggering result as a triggering alarm;
and responding to the condition that the target monitoring service link tracking data does not meet the preset alarm triggering condition, and obtaining an alarm triggering result as a non-triggering alarm.
5. The method according to claim 4, wherein an alarm push mode and an alarm push object are set in the target custom alarm rule;
the alarming the target monitoring service through the target customized alarming rule according to the alarming triggering result comprises the following steps:
and responding to the alarm triggering result which is determined to be the alarm triggering, obtaining alarm information, and sending the alarm information to the alarm pushing object according to the alarm pushing mode.
6. The method of claim 1, wherein the database is an ES database.
7. The method of claim 6, wherein the ES database comprises a plurality of service groups, and wherein each service group has a custom alarm rule corresponding to a monitoring service ID.
8. A Skywalking-based alerting device, wherein the device is disposed in a Skywalking system, the Skywalking system including a front end and a back end, the device comprising:
a link trace data acquisition module configured to acquire link trace data of a target monitoring service through the backend;
the self-defined alarm rule sending module is used for sending a plurality of self-defined alarm rules pre-stored in a database of the rear end to a page of the front end, wherein the self-defined alarm rules corresponding to each monitoring service are stored in the database;
the display module is configured to display the received custom alarm rule through the page of the front end and send the displayed custom alarm rule to the back end;
the change monitoring module is configured to perform change monitoring on the received custom alarm rule displayed on the page of the front end through the back end to obtain a change monitoring result, and update the custom alarm rule according to the change monitoring result;
the calling module is configured to call a corresponding target self-defined alarm rule from the database through the back end according to the target monitoring service;
and the alarm module is configured to compare the link tracking data of the target monitoring service with the target custom alarm rule by using the rear end to obtain an alarm trigger result, and alarm the target monitoring service through the target custom alarm rule according to the alarm trigger result.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 7.
CN202210919155.XA 2022-08-02 2022-08-02 Skywalking-based alarm method and related equipment Pending CN115296980A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210919155.XA CN115296980A (en) 2022-08-02 2022-08-02 Skywalking-based alarm method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210919155.XA CN115296980A (en) 2022-08-02 2022-08-02 Skywalking-based alarm method and related equipment

Publications (1)

Publication Number Publication Date
CN115296980A true CN115296980A (en) 2022-11-04

Family

ID=83825453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210919155.XA Pending CN115296980A (en) 2022-08-02 2022-08-02 Skywalking-based alarm method and related equipment

Country Status (1)

Country Link
CN (1) CN115296980A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782486A (en) * 2020-07-03 2020-10-16 上海浦东发展银行股份有限公司 Alarm implementation method and system based on dynamic configuration
WO2021008031A1 (en) * 2019-07-16 2021-01-21 平安普惠企业管理有限公司 Processing method for implementing monitoring intellectualization on the basis of micro-services, and electronic device
CN114697192A (en) * 2022-03-16 2022-07-01 浪潮云信息技术股份公司 Skywalking-based application performance index alarm system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021008031A1 (en) * 2019-07-16 2021-01-21 平安普惠企业管理有限公司 Processing method for implementing monitoring intellectualization on the basis of micro-services, and electronic device
CN111782486A (en) * 2020-07-03 2020-10-16 上海浦东发展银行股份有限公司 Alarm implementation method and system based on dynamic configuration
CN114697192A (en) * 2022-03-16 2022-07-01 浪潮云信息技术股份公司 Skywalking-based application performance index alarm system

Similar Documents

Publication Publication Date Title
CN111600746A (en) Network fault positioning method, device and equipment
CN109358975A (en) A kind of analysis method, device, electronic equipment and storage medium that software is operating abnormally
CN112182349B (en) Query method, device and system for compliance files
CN107066519A (en) A kind of task detection method and device
CN112433923A (en) Backtracking file generation method, backtracking method and equipment
CN110021150B (en) Data processing method, device and equipment
CN108692735A (en) Processing method, device, storage medium and the electronic equipment of navigation routine
CN109345249B (en) Payment failure processing method and device
CN109189677B (en) Test method and device for updating state of variable value
US20140250149A1 (en) Identifying element relationships in a document
CN117234859B (en) Performance event monitoring method, device, equipment and storage medium
CN110020264B (en) Method and device for determining invalid hyperlinks
CN110647459A (en) Application testing method and device
CN115296980A (en) Skywalking-based alarm method and related equipment
CN111553749A (en) Activity push strategy configuration method and device
CN116205624A (en) Equipment operation management method based on digital twin and related products
CN105262829B (en) Geographical position monitoring method and system
CN114780378A (en) Service interface-based system stability detection traceability method and related equipment
CN108255667A (en) A kind of business monitoring method, device and electronic equipment
CN113656263B (en) Data processing method, system, storage medium and terminal
CN112817929B (en) Cloud storage type data updating application system
CN116112377B (en) Interface simulation method, device, equipment and storage medium
CN114968700A (en) Service logic abnormity warning method based on system function log and related equipment
CN110264211B (en) Wind control method, system, device and equipment
CN118152170A (en) Method for processing exception information of application program and related equipment

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