Alarm method and alarm device of operation and maintenance system, storage medium and electronic equipment

By establishing alarm rules in the Nacos configuration center and automatically synchronizing them to the Prometheus configuration file using the confd component, the problem of manually loading the Prometheus configuration file when it is modified is solved, achieving automated alarm rule management and efficient configuration information synchronization.

CN118227414BActive Publication Date: 2026-01-13CHERY AUTOMOBILE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410333798.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-18
Publication Date
2026-01-13
Estimated Expiration
2044-03-18

AI Technical Summary

Technical Problem

In existing technologies, modifications to the configuration files of Prometheus monitoring systems require manual execution of the reload command or storage in a database, as configurations cannot be automatically loaded, resulting in low efficiency in configuration information management.

Method used

Alarm rules are created through the Nacos configuration center, and the configuration management tool confd component is used to automatically synchronize the alarm rules to the configuration file of the Prometheus monitoring system, thereby achieving automatic hot loading of alarm rules.

Benefits of technology

It improves the efficiency of configuration information management, realizes automated management and timely alarm of alarm rules, and reduces manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118227414B_ABST
    Figure CN118227414B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an alarm method of an operation and maintenance system, an alarm device of the operation and maintenance system, a storage medium and an electronic device. The alarm method of the operation and maintenance system comprises: based on a monitoring target in the operation and maintenance system, establishing an alarm rule for alarming the monitoring target in a Nacos configuration center; through a configuration management tool confd component, automatically synchronizing the alarm rule in the Nacos configuration center to a configuration file of a Prometheus monitoring system; based on the Prometheus monitoring system, monitoring the monitoring target in the operation and maintenance system, and based on the alarm rule in the configuration file of the Prometheus monitoring system, alarming an abnormal running state of the monitoring target in the operation and maintenance system. In the present application, when the alarm rule in the configuration file of the Prometheus monitoring system needs to be modified, the configuration file of the Prometheus monitoring system does not need to be manually modified, thereby facilitating the improvement of the configuration information management efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and in particular to an alarm method, alarm device, storage medium and electronic device for an operation and maintenance system. Background Technology

[0002] With the rapid development of automated operation and maintenance technologies, standardized management of monitoring and alarms, as well as automated configuration loading, are particularly important. Currently, most methods involve manually modifying the Prometheus configuration file, which is stored in the Prometheus installation directory. After modification, the `reload` command needs to be manually executed to reload the configuration. Alternatively, the configuration can be stored in a database, but this does not allow for automatic configuration loading. Summary of the Invention

[0003] In view of this, the present disclosure aims to provide an alarm method, an alarm device, a storage medium, and an electronic device for an operation and maintenance system.

[0004] The technical solution disclosed herein is implemented as follows:

[0005] Firstly, this disclosure provides an alarm method for an operation and maintenance system.

[0006] The alarm method for the operation and maintenance system provided in this embodiment includes:

[0007] Based on the monitoring targets in the operation and maintenance system, alarm rules for alerting the monitoring targets are established in the Nacos configuration center.

[0008] By using the configuration management tool confd component, the alarm rules in the Nacos configuration center are automatically synchronized to the configuration file of the Prometheus monitoring system;

[0009] The Prometheus monitoring system monitors the targets in the operation and maintenance system, and based on the alarm rules in the configuration file of the Prometheus monitoring system, it issues alarms when the operating status of the monitored targets in the operation and maintenance system is abnormal.

[0010] In some embodiments, the step of automatically synchronizing the alarm rules in the Nacos configuration center to the configuration file of the Prometheus monitoring system via the configuration management tool confd component includes:

[0011] The alarm rules in the Nacos configuration center are monitored in real time through the configuration management tool confd component, and if the alarm rules in the Nacos configuration center change, the latest alarm rules in the Nacos configuration center are updated and synchronized to the configuration file of the Prometheus monitoring system.

[0012] In some embodiments, after the alarm rules in the Nacos configuration center are automatically synchronized to the configuration file of the Prometheus monitoring system through the configuration management tool confd component, the method comprises:

[0013] The Prometheus process is hot-loaded to make the alarm rule configuration take effect.

[0014] In some embodiments, the monitoring target at least includes one of the following:

[0015] CPU usage, memory availability, disk availability, node status;

[0016] The alarm rules for alarming the monitoring target at least include one of the following:

[0017] If the CPU usage exceeds a first threshold, a first alarm information is sent;

[0018] If the memory availability is lower than a second threshold, a second alarm information is sent;

[0019] If the disk availability is lower than a third threshold, a third alarm information is sent;

[0020] If the node status is abnormal, a fourth alarm information is sent.

[0021] In a second aspect, the disclosure provides an alarm device of an operation and maintenance system, comprising:

[0022] An alarm rule establishing module is configured to establish alarm rules for alarming monitoring targets in the operation and maintenance system in the Nacos configuration center based on the monitoring targets in the operation and maintenance system;

[0023] An alarm rule synchronization module is configured to automatically synchronize the alarm rules in the Nacos configuration center to the configuration file of the Prometheus monitoring system through the configuration management tool confd component;

[0024] A running state alarm module is configured to monitor the monitoring targets in the operation and maintenance system based on the Prometheus monitoring system, and alarm the running state of the monitoring targets in the operation and maintenance system when the running state is abnormal based on the alarm rules in the configuration file of the Prometheus monitoring system.

[0025] In some embodiments, the alarm rule synchronization module is configured to

[0026] The alarm rule in the Nacos configuration center is monitored in real time by the confd component of the configuration management tool, and if the alarm rule in the Nacos configuration center changes, the latest alarm rule in the Nacos configuration center is synchronized and updated to the configuration file of the Prometheus monitoring system.

[0027] In some embodiments, after the alarm rule in the Nacos configuration center is automatically synchronized to the configuration file of the Prometheus monitoring system by the confd component of the configuration management tool, the alarm rule synchronization module is configured to

[0028] The Prometheus process is hot-loaded to make the alarm rule configuration effective.

[0029] In some embodiments, the monitoring target at least includes one of the following:

[0030] CPU usage, memory availability, disk availability, node status;

[0031] The alarm rule for alarming the monitoring target at least includes one of the following:

[0032] If the CPU usage exceeds a first threshold, a first alarm information is sent out;

[0033] If the memory availability is lower than a second threshold, a second alarm information is sent out;

[0034] If the disk availability is lower than a third threshold, a third alarm information is sent out;

[0035] If the node status is abnormal, a fourth alarm information is sent out.

[0036] In a third aspect, the present disclosure provides a computer readable storage medium having an alarm program of an operation and maintenance system stored thereon, wherein the alarm program of the operation and maintenance system, when executed by a processor, implements the alarm method of the operation and maintenance system of the first aspect.

[0037] In a fourth aspect, the present disclosure provides an electronic device comprising a memory, a processor, and an alarm program of an operation and maintenance system stored on the memory and executable on the processor, wherein the processor executes the alarm program of the operation and maintenance system to implement the alarm method of the operation and maintenance system of the first aspect.

[0038] The alarm method of the operation and maintenance system according to the embodiment of the present disclosure comprises: based on a monitoring target in the operation and maintenance system, establishing an alarm rule for alarming the monitoring target in a Nacos configuration center; through a configuration management tool confd component, automatically synchronizing the alarm rule in the Nacos configuration center into a configuration file of a Prometheus monitoring system; based on the Prometheus monitoring system, monitoring the monitoring target in the operation and maintenance system, and based on the alarm rule in the configuration file of the Prometheus monitoring system, alarming when the running state of the monitoring target in the operation and maintenance system is abnormal. In the present application, when the alarm rule in the configuration file of the Prometheus monitoring system needs to be modified, the alarm rule in the Nacos configuration center can be directly modified, and through the configuration management tool confd component, the alarm rule in the Nacos configuration center is automatically synchronized into the configuration file of the Prometheus monitoring system, so that the whole process does not need to manually modify the configuration file of the Prometheus monitoring system, thereby facilitating the improvement of the configuration information management efficiency.

[0039] Additional aspects and advantages of the present disclosure will be made apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0040] Figure 1 is an alarm method flow chart of an operation and maintenance system according to an exemplary embodiment;

[0041] Figure 2 is an alarm flow chart of an operation and maintenance system according to an exemplary embodiment;

[0042] Figure 3 is an alarm device structure schematic diagram of an operation and maintenance system according to an exemplary embodiment. DETAILED DESCRIPTION

[0043] The embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference signs represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the accompanying drawings are exemplary and are intended to explain the present disclosure, and cannot be understood as a limitation of the present disclosure.

[0044] With the rapid development of automatic operation and maintenance technology, the standardized management of monitoring and alarming and the automatic loading configuration are particularly important. At present, most methods are to manually modify the configuration file of prometheus, and the configuration file is saved in the installation directory of prometheus. After the configuration is modified, the reload command needs to be manually executed to load the configuration. Or save the configuration in the database, but cannot automatically load the configuration.

[0045] In view of the above, the present disclosure provides an alarm method of an operation and maintenance system. Figure 1 is an alarm method flow chart of an operation and maintenance system according to an exemplary embodiment. As shown in the figure, the alarm method of the operation and maintenance system comprises: Figure 1

[0046] Step 10, based on the monitoring target in the operation and maintenance system, an alarm rule for alarming the monitoring target is established in the Nacos configuration center;

[0047] Step 11, through the configuration management tool confd component, the alarm rule in the Nacos configuration center is automatically synchronized to the configuration file of the Prometheus monitoring system;

[0048] Step 12, based on the Prometheus monitoring system, the monitoring target in the operation and maintenance system is monitored, and based on the alarm rule in the configuration file of the Prometheus monitoring system, the running state of the monitoring target in the operation and maintenance system is alarmed when an exception occurs.

[0049] In exemplary embodiments, two technical components of nacos and prometheus are not associated with dependencies, alarm rules are managed through nacos, and configuration management tools automatically listen to and load configurations. In this way, the two are organically combined, ultimately realizing unified management of alarm rules, and alarm rules can be automatically hot-loaded after being added or modified.

[0050] The alarm method of the operation and maintenance system according to the present disclosure comprises establishing an alarm rule for alarming a monitoring target in a Nacos configuration center based on the monitoring target in the operation and maintenance system; through a configuration management tool confd component, the alarm rule in the Nacos configuration center is automatically synchronized to the configuration file of the Prometheus monitoring system; based on the Prometheus monitoring system, the monitoring target in the operation and maintenance system is monitored, and based on the alarm rule in the configuration file of the Prometheus monitoring system, the running state of the monitoring target in the operation and maintenance system is alarmed when an exception occurs. In the present application, when the alarm rule in the configuration file of the Prometheus monitoring system needs to be modified, the alarm rule in the Nacos configuration center can be directly modified, and through the configuration management tool confd component, the alarm rule in the Nacos configuration center is automatically synchronized to the configuration file of the Prometheus monitoring system, the entire process does not need to manually modify the configuration file of the Prometheus monitoring system, thereby facilitating the improvement of configuration information management efficiency.

[0051] ​In some embodiments, the method further comprises:

[0052] In some embodiments, the method further comprises:

[0053] In some embodiments, the method further comprises:

[0054] In some embodiments, the method further comprises:

[0055] In some embodiments, the method further comprises:

[0056] In some embodiments, the method further comprises:

[0057] In some embodiments, the method further comprises:

[0058] In some embodiments, the monitoring target comprises at least one of:

[0059] CPU usage, memory availability, disk availability, node status;

[0060] In some embodiments, the alarm rule for the monitoring target comprises at least one of:

[0061] CPU usage exceeds the first threshold, a first alarm information is sent out;

[0062] The memory available rate is lower than the second threshold, a second alarm information is sent out;

[0063] The disk available rate is lower than the third threshold, a third alarm information is sent out;

[0064] The node state appears abnormal, a fourth alarm information is sent out.

[0065] In an example embodiment, the monitoring target can include other targets in addition to the above targets, such as Deployment pod available rate, etc. Here is only an example, and the present application does not limit this.

[0066] In an example embodiment, the first threshold, the second threshold, and the third threshold can be set by the user as needed, and the present application does not limit this. For example, the first threshold is 90%, etc. The first alarm information, the second alarm information, and the third alarm information can be different alarm information. For example, the first alarm information is a sound alarm, the second alarm information is a light alarm, and the third alarm information is a pop-up alarm, etc. In this way, the alarm rule is used to realize timely alarm when the monitoring target appears abnormal running state.

[0067] Figure 2 is an alarm flowchart of an operation and maintenance system according to an example embodiment. As shown in Figure 2 , the alarm flow of the operation and maintenance system includes:

[0068] Step 20, the operation and maintenance configure alarm rules on Nacos;

[0069] Step 21, synchronize the alarm rules on Nacos to Prometheus monitoring system through confd component to load configuration;

[0070] Step 22, send alarm notification to Alert manage alarm routing through Prometheus monitoring system;

[0071] Step 23, send alarm information to mailbox through Alert manage alarm routing.

[0072] The present disclosure provides an alarm device of an operation and maintenance system. Figure 3 is an alarm device structure diagram of an operation and maintenance system according to an example embodiment. As shown in Figure 3 , the device includes:

[0073] The alarm rule establishing module 30 is configured to establish, in the Nacos configuration center, an alarm rule for alarming the monitoring target based on the monitoring target in the operation and maintenance system.

[0074] The alarm rule synchronizing module 31 is configured to automatically synchronize, by a configuration management tool confd component, the alarm rule in the Nacos configuration center to a configuration file of the Prometheus monitoring system.

[0075] The running state alarming module 32 is configured to monitor, based on the Prometheus monitoring system, the monitoring target in the operation and maintenance system, and alarm, based on the alarm rule in the configuration file of the Prometheus monitoring system, an abnormality of a running state of the monitoring target in the operation and maintenance system.

[0076] In the example embodiment, the two technical components of nacos and prometheus are not associated with each other, the alarm rule is managed by nacos, and the configuration management tool automatically listens to and loads the configuration. In this way, the two are organically combined, and finally the unified management of the alarm rule is achieved, and the alarm rule can be automatically hot-loaded after being added or modified.

[0077] The alarm device of the operation and maintenance system according to the embodiment of the present disclosure is configured to establish, in the Nacos configuration center, an alarm rule for alarming the monitoring target based on the monitoring target in the operation and maintenance system, automatically synchronize, by a configuration management tool confd component, the alarm rule in the Nacos configuration center to a configuration file of the Prometheus monitoring system, monitor, based on the Prometheus monitoring system, the monitoring target in the operation and maintenance system, and alarm, based on the alarm rule in the configuration file of the Prometheus monitoring system, an abnormality of a running state of the monitoring target in the operation and maintenance system. In the present application, when the alarm rule in the configuration file of the Prometheus monitoring system needs to be modified, the alarm rule in the Nacos configuration center can be directly modified, and the alarm rule in the Nacos configuration center is automatically synchronized to the configuration file of the Prometheus monitoring system by the configuration management tool confd component, so that the configuration file of the Prometheus monitoring system does not need to be manually modified in the whole process, thereby facilitating the improvement of the configuration information management efficiency.

[0078] In some embodiments, the alarm rule synchronizing module is configured to

[0079] The alarm rule in the Nacos configuration center is monitored in real time by the configuration management tool confd component, and if the alarm rule in the Nacos configuration center changes, the latest alarm rule in the Nacos configuration center is updated to the configuration file of the Prometheus monitoring system.

[0080] In an example embodiment, the alarm rule added in the Nacos configuration center is automatically synchronized to the Prometheus by the configuration tool confd or a shell script.

[0081] The alarm rule can be newly created in the Nacos configuration center through a page provided by the nacos. After the alarm rule is created, the configuration tool will listen to the modification of the nacos in real time. When the modification of the nacos configuration is listened to, the configuration is synchronized to the alarm rule configuration file of the Prometheus. After the configuration tool is synchronized, the Prometheus process is hot loaded to make the configuration effective. After the alarm rule configuration of the Prometheus is effective, the alarm information is sent to the Alertmanage according to the threshold of the monitoring information. The Alertmanage sends the alarm notification to the mailbox through the communication mode, so as to realize the whole automatic monitoring and alarm process.

[0082] In some embodiments, after the alarm rule in the Nacos configuration center is automatically synchronized to the configuration file of the Prometheus monitoring system by the configuration management tool confd component, the alarm rule synchronization module is configured to

[0083] The Prometheus process is hot loaded to make the alarm rule configuration effective.

[0084] In an example embodiment, the configuration is synchronized to the Prometheus and can be automatically hot loaded to make the configuration of the Prometheus effective. The application can call the hot loading interface of the Prometheus through the configuration tool confd or the shell script to realize the automatic hot loading and make the configuration of the Prometheus effective.

[0085] In some embodiments, the monitoring target at least includes one of the following:

[0086] CPU usage, memory availability, disk availability, node status;

[0087] The alarm rule for alarming the monitoring target at least includes one of the following:

[0088] If the CPU usage exceeds a first threshold, a first alarm information is sent out;

[0089] When the memory availability rate is lower than the second threshold, a second alarm information is sent out;

[0090] When the disk availability rate is lower than the third threshold, a third alarm information is sent out;

[0091] When the node state is abnormal, a fourth alarm information is sent out.

[0092] In the example embodiment, the monitoring target can further include other targets besides the above targets, such as Deployment pod availability rate, etc. This is only an example, and the present application does not limit this.

[0093] In the example embodiment, the first threshold, the second threshold and the third threshold can be set by the user as needed, and the present application does not limit this. For example, the first threshold is 90%, etc. The first alarm information, the second alarm information and the third alarm information can be different alarm information. For example, the first alarm information is a sound alarm, the second alarm information is a light alarm, and the third alarm information is a pop-up alarm, etc. In this way, the alarm rule is used to realize timely alarm when the monitoring target is abnormal.

[0094] The present disclosure provides a computer readable storage medium having an operation and maintenance system alarm program stored thereon, and the operation and maintenance system alarm program is executed by a processor to implement the operation and maintenance system alarm method of each of the above embodiments.

[0095] The present disclosure provides an electronic device comprising a memory, a processor, and an operation and maintenance system alarm program stored on the memory and executable on the processor, and the processor executes the operation and maintenance system alarm program to implement the operation and maintenance system alarm method of each of the above embodiments.

[0096] It should be noted that the logical and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a list of executable instructions for implementing logic functions, and can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor- containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions, or a combination of the above. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer-readable medium can be a product of the manufacturing and / or processing, and / or an article of manufacture. More specific examples (a non-exhaustive list) of the computer-readable medium include the following: an electronic connection having one or more wires (electronic devices), a portable computer diskette (magnetic devices), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber (optical devices), and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, for example via optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and stored in a computer memory.

[0097] It should be understood that portions of the present disclosure can be implemented in hardware, software, firmware, or combinations thereof. In the above-described embodiments, a number of steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any of the following technologies, or a combination thereof, known in the art can be used: discrete logic circuitry having logic gates for implementing logic functions on data signals, application specific integrated circuits having appropriate combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.

[0098] In the description of the present specification, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" and the like means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. In the present specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Also, the specific features, structures, materials or characteristics described can be combined in any suitable manner in one or more embodiments or examples.

[0099] In the description of the present disclosure, it needs to be understood that the orientation or positional relationship indicated by the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like is based on the orientation or positional relationship shown in the drawings, and is only for the purpose of facilitating the description of the present disclosure and simplifying the description, and does not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present disclosure.

[0100] In addition, the terms "first", "second", and the like used in the embodiments of the present disclosure are only for descriptive purposes, and cannot be understood as indicating or implying relative importance, or implicitly indicating the number of technical features referred to in the embodiments. Therefore, the features defined with the terms "first", "second" and the like in the embodiments of the present disclosure can explicitly or implicitly indicate that at least one such feature is included in the embodiments. In the description of the present disclosure, the meaning of the word "multiple" is at least two or two or more, such as two, three, four, etc., unless otherwise specifically limited in the embodiments.

[0101] In the present disclosure, unless otherwise specifically defined or limited in the embodiments, the terms "mounting", "connecting", "connecting" and "fixing" and the like appearing in the embodiments should be understood broadly, for example, the connection can be a fixed connection, or a detachable connection, or integrated, which can be understood, or can be a mechanical connection, an electrical connection, etc. Of course, it can also be directly connected, or indirectly connected through an intermediate medium, or it can be the internal communication of two elements, or the interaction relationship between two elements. For those skilled in the art, the specific meaning of the above terms in the present disclosure can be understood according to the specific implementation situation.

[0102] In the present disclosure, unless otherwise specifically defined or limited, the first feature "on" or "under" the second feature can be that the first and second features are in direct contact, or the first and second features are indirectly in contact through an intermediate medium. Moreover, the first feature "above", "above" and "above" the second feature can be that the first feature is directly above or obliquely above the second feature, or only indicates that the horizontal height of the first feature is higher than that of the second feature. The first feature "below", "below" and "below" the second feature can be that the first feature is directly below or obliquely below the second feature, or only indicates that the horizontal height of the first feature is less than that of the second feature.

[0103] Although the embodiments of the present disclosure have been shown and described above, it is understood that the above-described embodiments are exemplary, and it is not construed that the present disclosure is limited to the above-described embodiments, and a person of ordinary skill in the art can make changes, modifications, replacements, and variations to the above-described embodiments within the scope of the present disclosure.

Claims

1. An alarm method for an operation and maintenance system, characterized in that, include: Based on the monitoring targets in the operation and maintenance system, alarm rules for alerting the monitoring targets are established in the Nacos configuration center. The confd component of the configuration management tool automatically synchronizes the alarm rules in the Nacos configuration center to the configuration file of the Prometheus monitoring system. This includes real-time monitoring of the alarm rules in the Nacos configuration center through the confd component. If the alarm rules in the Nacos configuration center change, the latest alarm rules in the Nacos configuration center are synchronized and updated to the configuration file of the Prometheus monitoring system. The Prometheus monitoring system monitors the targets in the operation and maintenance system, and based on the alarm rules in the configuration file of the Prometheus monitoring system, it issues alarms when the operating status of the monitored targets in the operation and maintenance system is abnormal.

2. The alarm method for the operation and maintenance system according to claim 1, characterized in that, The method, which involves automatically synchronizing the alarm rules in the Nacos configuration center to the configuration file of the Prometheus monitoring system using the confd component of the configuration management tool, includes: Hot-loading the Prometheus process enables the alarm rule configuration to take effect.

3. The alarm method for the operation and maintenance system according to claim 1, characterized in that, The monitoring targets include at least one of the following: CPU utilization, memory availability, disk availability, node status; The alarm rules for alerting the monitored target shall include at least one of the following: If the CPU utilization exceeds the first threshold, the first alarm message will be issued. If the memory availability rate falls below the second threshold, a second alarm message will be issued. If the disk availability rate falls below the third threshold, a third alarm message will be issued. If a node's status becomes abnormal, a fourth alarm message will be issued.

4. An alarm device for an operation and maintenance system, characterized in that, include: The alarm rule establishment module is used to establish alarm rules for the monitoring targets in the operation and maintenance system within the Nacos configuration center. The alarm rule synchronization module is used to automatically synchronize alarm rules in the Nacos configuration center to the configuration file of the Prometheus monitoring system through the configuration management tool confd component. This includes real-time monitoring of alarm rules in the Nacos configuration center through the configuration management tool confd component, and if the alarm rules in the Nacos configuration center change, synchronizing and updating the latest alarm rules in the Nacos configuration center to the configuration file of the Prometheus monitoring system. The operation status alarm module is used to monitor the monitoring targets in the operation and maintenance system based on the Prometheus monitoring system, and to issue alarms when the operation status of the monitoring targets in the operation and maintenance system is abnormal based on the alarm rules in the configuration file of the Prometheus monitoring system.

5. The alarm device for the operation and maintenance system according to claim 4, characterized in that, After the alarm rules in the Nacos configuration center are automatically synchronized to the configuration file of the Prometheus monitoring system via the configuration management tool confd component, the alarm rule synchronization module is used for... Hot-loading the Prometheus process enables the alarm rule configuration to take effect.

6. The alarm device for the operation and maintenance system according to claim 4, characterized in that, The monitoring targets include at least one of the following: CPU utilization, memory availability, disk availability, node status; The alarm rules for alerting the monitored target shall include at least one of the following: If the CPU utilization exceeds the first threshold, the first alarm message will be issued. If the memory availability rate falls below the second threshold, a second alarm message will be issued. If the disk availability rate falls below the third threshold, a third alarm message will be issued. If a node's status becomes abnormal, a fourth alarm message will be issued.

7. A computer-readable storage medium, characterized in that, It stores the alarm program of the operation and maintenance system. When the alarm program of the operation and maintenance system is executed by the processor, it implements the alarm method of the operation and maintenance system as described in any one of claims 1-3.

8. An electronic device, characterized in that, The system includes a memory, a processor, and an alarm program for the operation and maintenance system stored in the memory and capable of running on the processor. When the processor executes the alarm program for the operation and maintenance system, it implements the alarm method for the operation and maintenance system as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Scattered data micro-service automatic operation and maintenance system

    CN112804362A

  • Method and device for automatically monitoring service, electronic equipment and storage medium

    CN114168431A