Distributed monitoring system registration method, device, equipment and medium

Through the automatic service discovery mechanism and unified registration format, the problems of low data integration efficiency and inflexible label adjustment in distributed monitoring systems are solved, and an efficient and personalized monitoring experience is achieved.

CN118550601APending Publication Date: 2024-08-27PARK DO CREDIT CO LTD

Patent Information

Application Number
CN202410535043.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The existing distributed monitoring system suffers from the problems of a wide variety of monitoring and registration data services, inflexible label adjustment, and inconsistent formats, resulting in low data integration efficiency, frequent configuration adjustments, and inability to meet personalized needs.

Method used

Integrate CMDB, application systems, user systems and custom tags through the automatic service discovery mechanism, provide flexible adjustment functions for specific tags, and unify the registration format to simplify data integration and configuration management.

Benefits of technology

It improves the efficiency and accuracy of data integration, supports flexible label adjustment, reduces the frequency of monitoring tool configuration adjustments, and provides a convenient, efficient and personalized monitoring experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550601A
    Figure CN118550601A
Patent Text Reader

Abstract

The invention provides a distributed monitoring system registration method and device, equipment and a medium, and the method comprises the steps: responding to the starting of a monitored service, carrying out the integration processing of data labels related to the monitored service, and obtaining a target label in an integrated format; registering the monitored service based on the target label, and after registration is successful, obtaining registration data of the monitored service through an automatic service discovery mechanism and a preset configuration format so as to collect monitoring data of the monitored service; wherein the configuration format is matched with the integration format. The registration efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of distributed monitoring technology, and in particular to a distributed monitoring system registration method, device, equipment and medium. Background Art

[0002] Consul is a tool specially designed for service discovery. It has important applications in microservice architecture, DevOps configuration center, and distributed monitoring systems. Prometheus is a distributed monitoring system that supports Consul's service discovery mechanism. The registration center can be said to be the "dynamic address book" of service monitoring relationships. By registering the up and down of service data, Prometheus triggers monitoring alarms, displays, and monitoring offline of services. Service data registration needs to include the characteristic attribute labels of the corresponding services. The main sources of attribute labels are CMDB, application systems, user systems, and custom fields. At the same time, service data label adjustment is also a very important and high-frequency operation. Operation and maintenance or R&D personnel need to frequently update the registered monitoring data labels, and the distributed Prometheus monitoring system also needs to frequently adapt to changes in registered metadata labels.

[0003] However, the existing technology has the following disadvantages: (1) There are many types of monitoring registration data services, which are related to CMDB, application systems, user systems and custom tags. Manual data integration is cumbersome and inefficient. (2) There are multiple tags in the registered monitoring service data, and there is a high-frequency need to add / modify / delete one or more specified tag data. The current service registration method only supports the overall deletion or addition of service dimension tag groups, and does not support the adjustment function for one or more specific tags. (3) The registration formats of monitoring data services are different, and Prometheus needs to adjust the configuration frequently to adapt to the changes in registration data of different types of monitoring services. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a distributed monitoring system registration method, apparatus, device and medium, which can improve registration efficiency.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a distributed monitoring system registration method, comprising the following steps:

[0007] In response to the start of the monitored service, integrating the data tags associated with the monitored service to obtain a target tag in an integrated format;

[0008] The monitored service is registered based on the target tag, and after successful registration, the registration data of the monitored service is obtained through an automatic service discovery mechanism and a preset configuration format to collect monitoring data of the monitored service; wherein the configuration format matches the integration format.

[0009] In a second aspect, an embodiment of the present application further provides a distributed monitoring system registration device, the device comprising:

[0010] An integration module, for responding to the start of the monitored service, integrating the data tags associated with the monitored service to obtain a target tag in an integrated format;

[0011] A processing module is used to register the monitored service based on the target tag, and after successful registration, obtain the registration data of the monitored service through an automatic service discovery mechanism and a preset configuration format to collect monitoring data of the monitored service; wherein the configuration format matches the integration format.

[0012] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to execute the distributed monitoring system registration method described in any one of the first aspects.

[0013] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the distributed monitoring system registration method described in any one of the first aspects is executed.

[0014] The embodiments of the present application have the following beneficial effects:

[0015] (1) Simplify the data integration process and improve efficiency: In order to solve the problem of a wide variety of monitoring registration data services, this solution uses an automatic service discovery mechanism to achieve automatic integration of diversified data such as CMDB, application systems, user systems, and custom tags. This greatly reduces the tedious steps of manual data integration and improves the efficiency and accuracy of data integration. Users can more conveniently view and manage the data of various monitoring services without having to manually perform tedious data integration work.

[0016] (2) Support flexible adjustment of tags to meet personalized needs: In response to the need to adjust the tags of registered monitoring service data, this solution provides a flexible adjustment function for specific tags. Players can easily add, modify or delete one or more specified tag data without having to operate the entire tag group. This allows users to flexibly adjust the tag settings of the monitoring service according to actual needs to better meet personalized monitoring needs.

[0017] (3) Unify the registration format and reduce the frequency of configuration adjustment: To address the problem of different registration formats for monitoring data services, this solution achieves standardization and normalization of the registration format by integrating and processing the relevant data tags of the monitored services. This reduces the need for frequent configuration adjustments for monitoring tools such as Prometheus and reduces the cost of adapting to changes in registration data for different types of monitoring services. Users can use monitoring tools such as Prometheus more smoothly without having to frequently adjust configurations to adapt to different monitoring services. This allows users to focus more on analyzing and processing monitoring data.

[0018] In summary, this solution provides users with a more convenient, efficient and personalized monitoring experience by simplifying the data integration process, supporting flexible adjustment of tags and unifying the registration format, enabling users to better manage and utilize monitoring data. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 It is a flowchart of steps S101-S102 provided in an embodiment of the present application;

[0021] Figure 2 It is a principle block diagram of a distributed monitoring system registration method provided in an embodiment of the present application;

[0022] Figure 3 It is a flowchart of steps S301-S305 provided in an embodiment of the present application;

[0023] Figure 4a This is one of the code diagrams provided in the embodiment of the present application;

[0024] Figure 4b This is the second code diagram provided in the embodiment of the present application;

[0025] Figure 5It is a flowchart of steps S501-S502 provided in an embodiment of the present application;

[0026] Figure 6 It is a structural diagram of a distributed monitoring system registration device provided in an embodiment of the present application;

[0027] Figure 7 It is a schematic diagram of the composition structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0028] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0029] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0030] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0031] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0032] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0033] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0034] See also Figure 1 , Figure 1 This is a flow chart of steps S101-S102 of the distributed monitoring system registration method provided in the embodiment of the present application, which will be combined with Figure 1 Steps S101-S102 are shown for explanation.

[0035] Step S101, in response to the start of a monitored service, integrating data tags associated with the monitored service to obtain a target tag in an integrated format;

[0036] Step S102: register the monitored service based on the target tag, and after successful registration, obtain the registration data of the monitored service through an automatic service discovery mechanism and a preset configuration format to collect monitoring data of the monitored service; wherein the configuration format matches the integration format.

[0037] The above exemplary steps of the embodiments of the present application are described below respectively.

[0038] In step S101, in response to the start of a monitored service, data tags associated with the monitored service are integrated to obtain target tags in an integrated format.

[0039] In step S102, the monitored service is registered based on the target tag, and after successful registration, the registration data of the monitored service is obtained through an automatic service discovery mechanism and a preset configuration format to collect monitoring data of the monitored service; wherein the configuration format matches the integration format.

[0040] See also Figure 2 , Figure 2 is a principle block diagram of a distributed monitoring system registration method provided in an embodiment of the present application, such as Figure 2As shown, when a new monitored service (such as exporterA service) is started, the method starts to execute. The method obtains data tags associated with the monitored service from multiple system interfaces (such as CMDB interface, user system interface, application system interface and custom method) and performs integration processing. The integration process includes steps such as standardization format, removal of redundant data, and verification of data consistency, and finally obtains the target tag in the integrated format. Using the integrated target tag, the data of the monitored service is registered to the registration center by calling the registration interface of the registration center such as Consul. The registration center is responsible for storing and managing these registration data for query and use by other systems (such as monitoring systems).

[0041] Once the service is successfully registered, the monitoring system (such as Prometheus) obtains the registration data of the monitored service from the registry through an automatic service discovery mechanism (such as periodically polling the registry or listening to the change events of the registry). At the same time, the monitoring system uses a preset configuration format to parse and process these registration data. This preset configuration format matches the integration format mentioned above to ensure that the monitoring system can correctly understand and process the registration data. The monitoring system automatically collects monitoring data of the monitored service at defined intervals (such as every 15 seconds). This data can be performance indicators, event logs, etc., which are used to evaluate the operating status and performance of the service. Storing, alarming and displaying monitoring data: The monitoring system can store the collected monitoring data for subsequent analysis and query. At the same time, according to the preset alarm rules, the monitoring system can push alarm information to the Alert system, etc., and display monitoring details to the outside through systems such as Grafana.

[0042] In some embodiments, see Figure 3 , Figure 3 It is a flow chart of steps S301-S305 provided in an embodiment of the present application. The integration processing of the data tags associated with the monitored service to obtain the target tags in an integrated format can be achieved through steps S301-S305, which will be explained in combination with each step.

[0043] In step S301, the registration parameters of the monitored service are obtained, where the registration parameters include service type, target IP information and custom tag information.

[0044] In step S302, host-related data tags are obtained from the CMDB system based on the target IP information.

[0045] In step S303, based on the service tree information returned by the CMDB, user-related data tags are obtained from the user system.

[0046] In step S304, an application-related data tag is obtained from the application system based on the service type and the target IP information.

[0047] In step S305, the host-related data tag, the user-related data tag, and the application-related data tag are integrated based on the customized integration format to obtain target Json data, and the target Json data is used as the target tag.

[0048] Here, please continue to see Figure 2 , the registration parameters include service type, target IP information, and custom tag information. This information is the basis for identifying and managing monitored services. Using the target IP information as the query condition, retrieve the host information associated with the IP from the CMDB system. Host-related data tags may include host name, operating system, hardware configuration, etc. The CMDB system usually returns service tree information, which describes the hierarchical relationship and dependency relationship between services. According to the service tree information, data tags related to user permissions, roles, etc. can be obtained from the user system. According to the type of service (such as Web service, database service, etc.) and target IP information, retrieve application-related data tags from the application system. Application-related data tags may include application version, deployment status, associated business, etc. According to the predefined integration format (such as JSON format), the obtained host-related data tags, user-related data tags, and application-related data tags are combined and sorted. Data cleaning, deduplication, conversion, etc. may be required during the integration process to ensure data consistency and accuracy. The integrated data is presented in JSON format as the target tag. This target Json data contains all relevant information of the monitored service, and the format is unified to facilitate subsequent registration and monitoring operations.

[0049] Through the above steps, the data tags associated with the monitored services are integrated and processed to obtain the target tag in an integrated format. This target tag not only contains the information of the service itself, but also integrates data from multiple dimensions such as hosts, users, and applications, providing comprehensive and accurate data support for subsequent registration and monitoring.

[0050] In some embodiments, the integrated format includes:

[0051] id, name, address, port, tags, meta; wherein the id represents the unique identifier of the monitored service; the name represents the name of the monitored service; the address represents the address of the monitored service; the port represents the listening port number of the monitored service; the tags represent a group of tags or keywords that describe the monitored service, and there is at least one tag or keyword; the meta represents the source data or additional information of the monitored service.

[0052] The integrated format is a structure used to standardize the information of monitored services. It ensures the consistency and readability of data and facilitates subsequent registration and monitoring operations. The integrated format specifically includes the following fields:

[0053] id: represents the unique identifier of the monitored service. This field is used to uniquely identify and recognize each monitored service in the registry and other systems. The id can ensure the uniqueness of each service in the system, which is convenient for management and query.

[0054] name: indicates the name of the monitored service. This field provides a brief description or identification of the service, making it easier for users to understand and identify different services.

[0055] address: Indicates the address of the monitored service. This is usually the IP address or host name of the monitored service, which is used to identify the location of the service in the network. Through the address, the monitoring system can determine how to connect to the service and collect its monitoring data.

[0056] port: indicates the listening port number of the monitored service. This field specifies the ports on which the service listens for requests or provides data. Through the port, the monitoring system can know how to communicate with the service and obtain the required monitoring information.

[0057] Tags: represents a set of labels or keywords that describe the monitored service. These labels or keywords are used to further describe the attributes, functions or classifications of the service. The tags field can contain multiple tags, each of which is a descriptive string. Through tags, the monitoring system can classify and filter services in a more fine-grained manner to meet different monitoring needs.

[0058] meta: Indicates the source data or additional information of the monitored service. This field is used to store other important information related to the service, which may not be directly used for monitoring, but is helpful for understanding and managing the service. The meta field can contain various types of data, such as service version information, deployment status, associated businesses, etc. Through meta, the monitoring system can provide more comprehensive service information to help users better understand and manage services.

[0059] By defining such an integrated format, we can ensure that the information of the monitored service remains consistent and readable during the registration and monitoring process. At the same time, the format is also flexible and can be expanded and customized according to actual needs. This helps to simplify the development and maintenance of the monitoring system and improve the efficiency and accuracy of monitoring.

[0060] For examples, see Figure 4a and Figure 4b , Figure 4a This is one of the code diagrams provided in the embodiment of the present application. Figure 4b This is the second code diagram provided in the embodiment of the present application, such as Figure 4a As shown, the integrated target label can be Figure 4a In the format shown, id, name, address, port, tags, and meta are integrated variables. Each variable includes one or more actual data. These actual data are obtained from the CMDB system, user system, and application system, and are reassigned to the variables id, name, address, port, tags, and meta. Correspondingly, Figure 4b As shown, on the monitoring side, there is no need to monitor specific data, but to monitor the defined "fixed" variables, such as host and address. Since the monitoring side directly references the variables, even if the values ​​of these variables are adjusted, the monitoring side does not need to make adjustments and can obtain the adjusted values.

[0061] Specifically, in some embodiments, see Figure 5 , Figure 5 It is a flowchart of steps S501-S502 provided in an embodiment of the present application. The method also includes steps S501-S502, which will be described in combination with each step.

[0062] In step S501, in response to an adjustment operation on the target tag, an adjustment parameter is obtained; wherein the adjustment operation includes at least one of adding, deleting, and modifying.

[0063] In step S502, the monitored service is re-registered based on the adjustment parameters, and after the re-registration is successful and without modifying the configuration format, the registration data of the monitored service is obtained through the automatic service discovery mechanism.

[0064] Here, when the user or system needs to adjust the target tag of the registered monitored service, an adjustment operation will be triggered. These adjustment operations can include adding new tags, deleting existing tags, or modifying tags. The method will receive and parse these adjustment operations and obtain the corresponding adjustment parameters. These parameters will be used in the subsequent re-registration process.

[0065] Using the obtained adjustment parameters, the method will update the target tag and re-register the monitored service based on the updated target tag. The re-registration process is similar to the initial registration process, and the registration information of the service will be updated by calling the registration interface of the registration center.

[0066] Once the re-registration is successful, the monitoring system will obtain the registration data of the monitored service from the registration center again through the automatic service discovery mechanism. Since the configuration format is not modified during the re-registration process, the monitoring system can still correctly parse and process the registration data.

[0067] In the above way, users can flexibly adjust the label information of the monitored service to adapt to different monitoring needs or scenario changes. At the same time, due to the consistency of the automatic service discovery mechanism and configuration format, these adjustments will not affect the normal operation and data collection of the monitoring system. The implementation of this function improves the flexibility and maintainability of the monitoring system, allowing users to more conveniently manage and adjust the information of the monitored services.

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

[0069] The monitoring data is stored, and alarm information is pushed to the Alter system according to the preset alarm rules or the monitoring details are displayed through the Grafana system.

[0070] Here, the monitoring system will store the collected monitoring data periodically or in real time. This is usually achieved by writing the data to a database or storage system for subsequent analysis, query and tracing. The stored monitoring data can include various performance indicators, event logs, etc., which are used to evaluate the operating status of the service, performance bottlenecks and potential problems.

[0071] The monitoring system will analyze and judge the monitoring data according to the preset alarm rules. These alarm rules can be defined based on thresholds, trends, events and other conditions. When the monitoring data meets the alarm rules, the monitoring system will generate corresponding alarm information and push the alarm information to the Alert system through API calls or other methods. The Alert system is responsible for receiving, processing and managing these alarm information, and can notify relevant personnel through emails, SMS, Slack, etc., so as to respond and handle potential problems in a timely manner.

[0072] In addition to the alarm function, the monitoring system will also integrate monitoring data into visualization tools such as Grafana to intuitively display monitoring details. Through the Grafana system, users can customize dashboards, charts, and panels to display key indicators, trend analysis, event logs, and other information. This helps users better understand the operating status and performance of the service, identify potential problems, and develop corresponding optimization strategies.

[0073] The above method provides a comprehensive distributed monitoring system by storing monitoring data, pushing alarm information and displaying monitoring details through the Grafana system, which helps users to find problems in time, track the causes and take corresponding measures, thereby improving the stability and availability of the system.

[0074] In some embodiments, the monitoring data of the monitored service is automatically collected at preset intervals based on a pull method.

[0075] Here, the monitoring system will actively pull monitoring data from the monitored service at pre-set time intervals. Specifically, the monitoring system will configure a timer or scheduler to trigger data collection tasks regularly. When the collection task is triggered, the monitoring system will send a request to the specified interface of the monitored service to obtain the monitoring data of the service in the previous time period. After receiving the request, the monitored service will return the corresponding monitoring data to the monitoring system.

[0076] This automatic collection mechanism based on the pull method has some advantages. First, it can flexibly set the collection interval according to actual needs to meet the needs of different monitoring scenarios. Second, since the monitoring system actively initiates the request, the real-time and accuracy of the data can be ensured. In addition, the pull method can also reduce the burden on the monitored service because it only needs to return data when it receives a request.

[0077] It should be noted that when using the pull method to collect monitoring data, it should be ensured that the monitored service provides a stable interface and a reliable data return mechanism to ensure the accuracy and reliability of data collection. At the same time, the monitoring system also needs to be able to handle abnormal situations, such as the monitored service is unavailable or the returned data format is incorrect.

[0078] In summary, the embodiments of the present application have the following beneficial effects:

[0079] (1) Simplify the data integration process and improve efficiency: In order to solve the problem of a wide variety of monitoring registration data services, this solution uses an automatic service discovery mechanism to achieve automatic integration of diversified data such as CMDB, application systems, user systems, and custom tags. This greatly reduces the tedious steps of manual data integration and improves the efficiency and accuracy of data integration. Users can more conveniently view and manage the data of various monitoring services without having to manually perform tedious data integration work.

[0080] (2) Support flexible adjustment of tags to meet personalized needs: In response to the need to adjust the tags of registered monitoring service data, this solution provides a flexible adjustment function for specific tags. Players can easily add, modify or delete one or more specified tag data without having to operate the entire tag group. This allows users to flexibly adjust the tag settings of the monitoring service according to actual needs to better meet personalized monitoring needs.

[0081] (3) Unify the registration format and reduce the frequency of configuration adjustment: To address the problem of different registration formats for monitoring data services, this solution achieves standardization and normalization of the registration format by integrating and processing the relevant data tags of the monitored services. This reduces the need for frequent configuration adjustments for monitoring tools such as Prometheus and reduces the cost of adapting to changes in registration data for different types of monitoring services. Users can use monitoring tools such as Prometheus more smoothly without having to frequently adjust configurations to adapt to different monitoring services. This allows users to focus more on analyzing and processing monitoring data.

[0082] In summary, this solution provides users with a more convenient, efficient and personalized monitoring experience by simplifying the data integration process, supporting flexible adjustment of tags and unifying the registration format, enabling users to better manage and utilize monitoring data.

[0083] Based on the same inventive concept, the embodiment of the present application also provides a distributed monitoring system registration device corresponding to the distributed monitoring system registration method in the first embodiment. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned distributed monitoring system registration method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0084] like Figure 6 As shown, Figure 6 : is a schematic diagram of the structure of a distributed monitoring system registration device 600 provided in an embodiment of the present application. The distributed monitoring system registration device 600 includes:

[0085] An integration module 601 is used to respond to the start of the monitored service and integrate the data tags associated with the monitored service to obtain a target tag in an integrated format;

[0086] Processing module 602 is used to register the monitored service based on the target tag, and after successful registration, obtain the registration data of the monitored service through the automatic service discovery mechanism and a preset configuration format to collect monitoring data of the monitored service; wherein the configuration format matches the integration format.

[0087] Those skilled in the art should understand that Figure 6 The implementation functions of each unit in the distributed monitoring system registration device 600 shown can be understood by referring to the relevant description of the aforementioned distributed monitoring system registration method. Figure 6 The functions of each unit in the distributed monitoring system registration device 600 shown can be implemented by a program running on a processor, or can be implemented by a specific logic circuit.

[0088] In a possible implementation, the integration module 601 integrates the data tags associated with the monitored service to obtain a target tag in an integrated format, including:

[0089] Obtain the registration parameters of the monitored service, where the registration parameters include service type, target IP information, and custom tag information;

[0090] Based on the target IP information, obtain host-related data tags from the CMDB system;

[0091] Based on the service tree information returned by the CMDB, obtain user-related data tags from the user system;

[0092] Acquire application-related data tags from the application system based on the service type and the target IP information;

[0093] The host-related data tag, the user-related data tag, and the application-related data tag are integrated based on the customized integration format to obtain target Json data, and the target Json data is used as the target tag.

[0094] In a possible implementation, the integrated format includes:

[0095] id, name, address, port, tags, meta; wherein the id represents the unique identifier of the monitored service; the name represents the name of the monitored service; the address represents the address of the monitored service; the port represents the listening port number of the monitored service; the tags represent a group of tags or keywords that describe the monitored service, and there is at least one tag or keyword; the meta represents the source data or additional information of the monitored service.

[0096] In a possible implementation, the adjustment module is used to respond to an adjustment operation on the target tag and obtain an adjustment parameter; wherein the adjustment operation includes at least one of adding, deleting, and modifying;

[0097] The monitored service is re-registered based on the adjustment parameters, and after the re-registration is successful and without modifying the configuration format, the registration data of the monitored service is obtained through the automatic service discovery mechanism.

[0098] In a possible implementation, the processing module 602 further includes:

[0099] The monitoring data is stored, and alarm information is pushed to the Alter system according to the preset alarm rules or the monitoring details are displayed through the Grafana system.

[0100] In a possible implementation manner, the monitoring data of the monitored service is automatically collected at preset intervals based on a pull method.

[0101] The above distributed monitoring system registration device has the following beneficial effects:

[0102] (1) Simplify the data integration process and improve efficiency: In order to solve the problem of a wide variety of monitoring registration data services, this solution uses an automatic service discovery mechanism to achieve automatic integration of diversified data such as CMDB, application systems, user systems, and custom tags. This greatly reduces the tedious steps of manual data integration and improves the efficiency and accuracy of data integration. Users can more conveniently view and manage the data of various monitoring services without having to manually perform tedious data integration work.

[0103] (2) Support flexible adjustment of tags to meet personalized needs: In response to the need to adjust the tags of registered monitoring service data, this solution provides a flexible adjustment function for specific tags. Players can easily add, modify or delete one or more specified tag data without having to operate the entire tag group. This allows users to flexibly adjust the tag settings of the monitoring service according to actual needs to better meet personalized monitoring needs.

[0104] (3) Unify the registration format and reduce the frequency of configuration adjustment: To address the problem of different registration formats for monitoring data services, this solution achieves standardization and normalization of the registration format by integrating and processing the relevant data tags of the monitored services. This reduces the need for frequent configuration adjustments for monitoring tools such as Prometheus and reduces the cost of adapting to changes in registration data for different types of monitoring services. Users can use monitoring tools such as Prometheus more smoothly without having to frequently adjust configurations to adapt to different monitoring services. This allows users to focus more on analyzing and processing monitoring data.

[0105] In summary, this solution provides users with a more convenient, efficient and personalized monitoring experience by simplifying the data integration process, supporting flexible adjustment of tags and unifying the registration format, enabling users to better manage and utilize monitoring data.

[0106] like Figure 7 As shown, Figure 7 The present invention provides a schematic diagram of the structure of an electronic device 700, wherein the electronic device 700 includes:

[0107] A processor 701, a storage medium 702 and a bus 703, wherein the storage medium 702 stores machine-readable instructions executable by the processor 701. When the electronic device 700 is running, the processor 701 communicates with the storage medium 702 via the bus 703, and the processor 701 executes the machine-readable instructions to perform the steps of the distributed monitoring system registration method described in the embodiment of the present application.

[0108] In actual application, the components in the electronic device 700 are coupled together via the bus 703. It is understood that the bus 703 is used to realize the connection and communication between these components. In addition to the data bus, the bus 703 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 7 Various buses are labeled as bus 703.

[0109] The above electronic device has the following beneficial effects:

[0110] (1) Simplify the data integration process and improve efficiency: In order to solve the problem of a wide variety of monitoring registration data services, this solution uses an automatic service discovery mechanism to achieve automatic integration of diversified data such as CMDB, application systems, user systems, and custom tags. This greatly reduces the tedious steps of manual data integration and improves the efficiency and accuracy of data integration. Users can more conveniently view and manage the data of various monitoring services without having to manually perform tedious data integration work.

[0111] (2) Support flexible adjustment of tags to meet personalized needs: In response to the need to adjust the tags of registered monitoring service data, this solution provides a flexible adjustment function for specific tags. Players can easily add, modify or delete one or more specified tag data without having to operate the entire tag group. This allows users to flexibly adjust the tag settings of the monitoring service according to actual needs to better meet personalized monitoring needs.

[0112] (3) Unify the registration format and reduce the frequency of configuration adjustment: To address the problem of different registration formats for monitoring data services, this solution achieves standardization and normalization of the registration format by integrating and processing the relevant data tags of the monitored services. This reduces the need for frequent configuration adjustments for monitoring tools such as Prometheus and reduces the cost of adapting to changes in registration data for different types of monitoring services. Users can use monitoring tools such as Prometheus more smoothly without having to frequently adjust configurations to adapt to different monitoring services. This allows users to focus more on analyzing and processing monitoring data.

[0113] In summary, this solution provides users with a more convenient, efficient and personalized monitoring experience by simplifying the data integration process, supporting flexible adjustment of tags and unifying the registration format, enabling users to better manage and utilize monitoring data.

[0114] The embodiment of the present application further provides a computer-readable storage medium, which stores executable instructions. When the executable instructions are executed by at least one processor 701, the distributed monitoring system registration method described in the embodiment of the present application is implemented.

[0115] In some embodiments, the storage medium can be a magnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface storage, an optical disk, or a compact disc read-only memory (CD ROM); it can also be various devices including one or any combination of the above memories.

[0116] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0117] As an example, executable instructions may, but do not necessarily, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (for example, files storing one or more modules, subroutines, or code portions).

[0118] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0119] The computer-readable storage medium has the following advantages:

[0120] (1) Simplify the data integration process and improve efficiency: In order to solve the problem of a wide variety of monitoring registration data services, this solution uses an automatic service discovery mechanism to achieve automatic integration of diversified data such as CMDB, application systems, user systems, and custom tags. This greatly reduces the tedious steps of manual data integration and improves the efficiency and accuracy of data integration. Users can more conveniently view and manage the data of various monitoring services without having to manually perform tedious data integration work.

[0121] (2) Support flexible adjustment of tags to meet personalized needs: In response to the need to adjust the tags of registered monitoring service data, this solution provides a flexible adjustment function for specific tags. Players can easily add, modify or delete one or more specified tag data without having to operate the entire tag group. This allows users to flexibly adjust the tag settings of the monitoring service according to actual needs to better meet personalized monitoring needs.

[0122] (3) Unify the registration format and reduce the frequency of configuration adjustment: To address the problem of different registration formats for monitoring data services, this solution achieves standardization and normalization of the registration format by integrating and processing the relevant data tags of the monitored services. This reduces the need for frequent configuration adjustments for monitoring tools such as Prometheus and reduces the cost of adapting to changes in registration data for different types of monitoring services. Users can use monitoring tools such as Prometheus more smoothly without having to frequently adjust configurations to adapt to different monitoring services. This allows users to focus more on analyzing and processing monitoring data.

[0123] In summary, this solution provides users with a more convenient, efficient and personalized monitoring experience by simplifying the data integration process, supporting flexible adjustment of tags and unifying the registration format, enabling users to better manage and utilize monitoring data.

[0124] In the several embodiments provided in the present application, it should be understood that the disclosed methods and electronic devices can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0125] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0126] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0127] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a platform server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0128] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A distributed monitoring system registration method, characterized in that: The method comprises: In response to the start of the monitored service, integrating the data tags associated with the monitored service to obtain a target tag in an integrated format; The monitored service is registered based on the target tag, and after successful registration, the registration data of the monitored service is obtained through an automatic service discovery mechanism and a preset configuration format to collect monitoring data of the monitored service; wherein the configuration format matches the integration format.

2. The distributed monitoring system registration method according to claim 1, characterized in that: The step of integrating the data tags associated with the monitored service to obtain a target tag in an integrated format includes: Obtain the registration parameters of the monitored service, where the registration parameters include service type, target IP information, and custom tag information; Based on the target IP information, obtain host-related data tags from the CMDB system; Based on the service tree information returned by the CMDB, obtain user-related data tags from the user system; Acquire application-related data tags from the application system based on the service type and the target IP information; The host-related data tag, the user-related data tag, and the application-related data tag are integrated based on the customized integration format to obtain target Json data, and the target Json data is used as the target tag.

3. The distributed monitoring system registration method according to claim 1, characterized in that: The integration formats include: id, name, address, port, tags, meta; wherein the id represents the unique identifier of the monitored service; the name represents the name of the monitored service; the address represents the address of the monitored service; the port represents the listening port number of the monitored service; the tags represent a group of tags or keywords that describe the monitored service, and there is at least one tag or keyword; the meta represents the source data or additional information of the monitored service.

4. The distributed monitoring system registration method according to claim 1, characterized in that: The method further comprises: In response to an adjustment operation on the target tag, an adjustment parameter is obtained; wherein the adjustment operation includes at least one of adding, deleting, and modifying; The monitored service is re-registered based on the adjustment parameters, and after the re-registration is successful and without modifying the configuration format, the registration data of the monitored service is obtained through the automatic service discovery mechanism.

5. The distributed monitoring system registration method according to claim 1, characterized in that: The method further comprises: The monitoring data is stored, and alarm information is pushed to the Alter system according to the preset alarm rules or the monitoring details are displayed through the Grafana system.

6. The distributed monitoring system registration method according to claim 1, characterized in that: The monitoring data of the monitored service is automatically collected at preset intervals based on the pull method.

7. A distributed monitoring system registration device, characterized in that: The device comprises: An integration module, configured to respond to the start of a monitored service and integrate the data tags associated with the monitored service to obtain a target tag in an integrated format; A processing module is used to register the monitored service based on the target tag, and after successful registration, obtain the registration data of the monitored service through an automatic service discovery mechanism and a preset configuration format to collect monitoring data of the monitored service; wherein the configuration format matches the integration format.

8. The distributed monitoring system registration device according to claim 7, characterized in that: The device also includes: An adjustment module is used to respond to an adjustment operation on the target tag and obtain adjustment parameters; wherein the adjustment operation includes at least one of addition, deletion, and modification; re-register the monitored service based on the adjustment parameters, and after successful re-registration and without modifying the configuration format, obtain the registration data of the monitored service through the automatic service discovery mechanism.

9. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to execute the distributed monitoring system registration method as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the distributed monitoring system registration method according to any one of claims 1 to 6 is executed.

Citation Information

Patent Citations

  • Micro-service monitoring method, device and system, computer equipment and storage medium

    CN112217864A

  • System monitoring device and method based on prometheus service

    CN113986649A

  • Monitoring object updating method based on distributed monitoring system

    CN116401261A

Cited By

  • Label sequence processing method and device

    CN120386878A