Monitoring alarm system, method, device and computer storage medium

By deploying data processing devices in the cloud cluster and using the second edge cluster to collect and integrate the multi-dimensional monitoring data of the first edge cluster, the problem of traditional monitoring solutions increasing the pressure on the edge cluster is solved, and more comprehensive monitoring and flexible alarm strategies are achieved. , which improves the monitoring and visualization capabilities of the edge computing platform.

CN115996180BActive Publication Date: 2024-09-20SHENZHEN QIANHAI HUANRONG LIANYI INFORMATION TECHNOLOGY SERVICES CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202211531153.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-01
Publication Date
2024-09-20
Estimated Expiration
2042-12-01

AI Technical Summary

Technical Problem

When traditional monitoring solutions are deployed in edge clusters, they will increase the pressure and overhead of the edge clusters, limiting the application scenarios of edge computing.

Method used

A monitoring and alarm system based on distributed edge computing is designed. By deploying data processing devices in the cloud cluster, the second edge cluster is used to collect and integrate the multi-dimensional monitoring data of the first edge cluster, thereby reducing the need for separate deployment in each edge cluster. Monitor the needs of solutions, reduce resource requirements, and implement flexible alarm strategies through third-party management systems.

Benefits of technology

It reduces the pressure on edge clusters, reduces the resource requirements for monitoring deployment, avoids restrictions on edge computing application scenarios, expands the monitoring dimension, and makes the monitoring data visualization of the distributed edge computing platform more comprehensive, supplemented by flexible alarm strategies. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115996180B
    Figure CN115996180B
Patent Text Reader

Abstract

The present application relates to the field of edge computing, and discloses a monitoring alarm system, method, device and storage medium for reducing the pressure on edge clusters. The edge node collects its own node status data and container monitoring data; the data processing device obtains the node status data and container monitoring data from the edge node through the second edge cluster; the container monitoring data collected from all edge nodes are integrated to obtain the workload monitoring data of each first edge cluster, the node status data collected from all edge nodes are integrated to obtain the system status monitoring data of each first edge cluster, and the cluster operation status monitoring data is regularly collected from the second edge cluster; the container monitoring data, workload monitoring data, node status data, system status monitoring data and cluster operation status monitoring data are pre-processed to obtain alarm monitoring data, and the alarm monitoring data is sent to a third-party management system, so that the third-party management system sends the alarm monitoring data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of edge computing technology, and in particular to a monitoring alarm system, method, device and storage medium. Background Art

[0002] For cluster system monitoring, traditional monitoring solutions generally deploy monitoring solutions separately in cluster systems, which can realize monitoring and alarming of ordinary clusters. However, for edge clusters, if traditional monitoring solutions are used, it is necessary to monitor edge clusters, and a set of monitoring solutions needs to be deployed in each edge cluster. However, the operating environment of edge clusters is generally resource-constrained, which will greatly increase the pressure on edge clusters and increase cluster overhead, thereby reducing the application scenarios of edge computing. Summary of the invention

[0003] Based on this, it is necessary to provide a monitoring alarm system, method, device and storage medium to address the above technical problems so as to reduce the pressure on the edge cluster.

[0004] A monitoring and alarm system based on distributed edge computing, the monitoring and alarm system comprising a first edge cluster located in a target physical area, a second edge cluster located in a cloud, a cloud cluster located in the cloud, and a third-party management system, the first edge cluster comprising edge nodes, and the cloud cluster being deployed with a data processing device;

[0005] The edge node collects its own node status data and container monitoring data;

[0006] The data processing device obtains the node status data and the container monitoring data from the edge node through the second edge cluster;

[0007] The data processing device integrates the container monitoring data collected from all edge nodes to obtain the workload monitoring data of each first edge cluster, integrates the node status data collected from all edge nodes to obtain the system status monitoring data of each first edge cluster, and regularly collects cluster operation status monitoring data from the second edge cluster;

[0008] The data processing device pre-processes the container monitoring data, workload monitoring data, node status data, system status monitoring data and cluster operation status monitoring data to obtain alarm monitoring data, and sends the alarm monitoring data to a third-party management system, so that the third-party management sends the alarm monitoring data according to a preset alarm notification channel.

[0009] Optionally, the edge node is deployed with a Kubelet component and a cAdvisor component, and the second edge cluster is deployed with an Apiserver component;

[0010] The edge node collects container monitoring data of the containers running on the edge node through the cAdvisor component;

[0011] The edge node collects the container monitoring data collected by the cAdvisor component through the Kubelet component, and reports the container monitoring data to the Apiserver component through the Kubelet component;

[0012] The data processing device obtains the container monitoring data from the interface exposed by the Apiserver component.

[0013] Optionally, the edge node is deployed with an Exporter proxy and a pusher component, and the second edge cluster is deployed with a push-gateway component;

[0014] The edge node collects its own node status data through the Exporter component;

[0015] The edge node collects node status data from the collection Exporter agent regularly through the pusher component, adds node labels and cluster labels to the node status data, and pushes the node status data with node labels and cluster labels to the push-gateway component. The node label corresponds to the edge node, and the cluster label corresponds to the first edge cluster.

[0016] The data processing device obtains the required node status data from the push-gateway component according to the label classification.

[0017] Optionally, the second edge cluster is deployed with an Apiserver component and a Kube-state-metrics component;

[0018] The second edge cluster collects cluster operation status monitoring data through the Kube-state-metrics component and sends it to the Apiserver component;

[0019] The data processing device collects cluster operation status monitoring data from the interface exposed by the Apiserver component.

[0020] Optionally, the data processing device obtains a container list corresponding to each edge node of the first edge cluster, aggregates the container monitoring data corresponding to all containers in each container list, obtains the workload monitoring data of each edge node, aggregates each group of workload monitoring data corresponding to each edge node, and obtains the workload monitoring data of the first edge cluster.

[0021] Optionally, the data processing device obtains an edge node list corresponding to the first edge cluster, aggregates node status data corresponding to all edge nodes in each edge node list, and obtains corresponding system status monitoring data of the first edge cluster.

[0022] A monitoring alarm method for a monitoring alarm system, the monitoring alarm system comprising a first edge cluster located in a target physical area, a second edge cluster located in a cloud, a cloud cluster located in the cloud, and a third-party management system, the first edge cluster comprising edge nodes, the cloud cluster being deployed with a data processing device, the method comprising:

[0023] The data processing device obtains the container monitoring data collected by the edge node itself from the edge node through the second edge cluster;

[0024] The data processing device obtains the node status data collected by the edge node itself from the edge node through the second edge cluster;

[0025] The data processing device integrates the container monitoring data collected from all edge nodes to obtain the workload monitoring data of each first edge cluster, integrates the node status data collected from all edge nodes to obtain the system status monitoring data of each first edge cluster, and regularly collects cluster operation status monitoring data from the second edge cluster;

[0026] The data processing device pre-processes the container monitoring data, workload monitoring data, node status data, system status monitoring data and cluster operation status monitoring data to obtain alarm monitoring data, and sends the alarm monitoring data to a third-party management system.

[0027] Optionally, the edge node is deployed with a Kubelet component and a cAdvisor component, the second edge cluster is deployed with an Apiserver component, and the data processing device obtains container monitoring data collected by the edge node itself from the edge node through the second edge cluster, including:

[0028] The data processing device obtains the container monitoring data from the interface exposed by the Apiserver component;

[0029] Among them, the container monitoring data is the container monitoring data of the container running on the edge node collected by the edge node through the cAdvisor component, and the container monitoring data is collected and reported to the Apiserver component through the Kubelet component.

[0030] Optionally, the edge node is deployed with an Exporter agent and a pusher component, and the second edge cluster is deployed with a push-gateway component; the data processing device obtains the node status data collected by the edge node itself from the edge node through the second edge cluster, including:

[0031] The data processing device obtains the required node status data from the push-gateway component according to the label classification.

[0032] Among them, the node status data is collected by the edge node through the Exporter component, and then regularly collected from the Exporter agent through the pusher component and marked with node labels and cluster labels and pushed to the push-gateway component. Among them, the node label corresponds to the edge node, and the cluster label corresponds to the first edge cluster.

[0033] Optionally, the second edge cluster is deployed with an Apiserver component and a Kube-state-metrics component; cluster operation status monitoring data is regularly collected from the second edge cluster, including:

[0034] The data processing device collects cluster operation status monitoring data from the interface exposed by the Apiserver component; wherein the cluster operation status monitoring data is collected by the second edge cluster through the Kube-state-metrics component and sent to the Apiserver component.

[0035] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the monitoring alarm method are implemented.

[0036] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the monitoring and alarm methods described above are implemented.

[0037] In the above-mentioned solution, a data processing device is deployed in the cloud cluster, and the second edge cluster is used to complete the collection and early warning of monitoring data of several dimensions related to the first edge cluster. There is no need to deploy a monitoring solution separately in each edge cluster, which reduces the pressure of increasing edge clusters, so that edge clusters have more energy to handle edge computing application scenarios, reduce the resource requirements of monitoring deployment, avoid limiting the application scenarios of edge computing, reduce overall costs, and expand the monitoring dimensions, so that the distributed edge computing platform monitoring data is visualized and more comprehensive. It is supplemented by corresponding flexible and customizable alarm strategies to help grasp the status of the cluster. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0039] Figure 1 This is a system schematic diagram of a monitoring alarm system in one embodiment of the present application;

[0040] Figure 2 This is a schematic diagram of obtaining container monitoring data in one embodiment of the present application;

[0041] Figure 3 This is a schematic diagram of obtaining node status monitoring data in one embodiment of the present application;

[0042] Figure 4 This is a schematic diagram of obtaining cluster system operation status data in one embodiment of the present application;

[0043] Figure 5 This is another overall system diagram of the monitoring alarm system in one embodiment of the present application;

[0044] Figure 6 It is a schematic diagram of a computer device in one embodiment of the present application. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0046] To avoid the traditional solution that requires a monitoring solution to be deployed in each edge cluster, which greatly increases the pressure on the edge cluster and the cost of the edge cluster, the present application embodiment specifically proposes a new monitoring and alarm solution for edge computing scenarios. For ease of understanding, some concepts involved in the present application embodiment are first described:

[0047] The first edge cluster refers to an edge cluster located in a certain target physical area, that is, an edge cluster located at the edge, denoted as the first edge cluster, which is a specific execution unit in the edge computing application scenario;

[0048] The second edge cluster refers to an edge cluster located in the cloud, that is, an edge cluster deployed in the cloud, which is mainly used to manage the cloud edge cluster of the first edge cluster;

[0049] Cloud cluster refers to a non-edge cluster located in the cloud;

[0050] The third-party management system refers to a third-party notification channel that is customized to access the cloud cluster.

[0051] In one embodiment of the present application, Figure 1 As shown, a monitoring and alarm system based on distributed edge computing is provided, which includes four parts, namely a first edge cluster located in a target physical area, a second edge cluster located in the cloud, a cloud cluster located in the cloud, and a third-party management system; wherein the first edge cluster includes at least one or more edge nodes, and the cloud cluster is deployed with a data processing device, wherein:

[0052] The edge node is used to collect its own node status data and container monitoring data. It can be understood that the edge container is a container running in each edge node, each edge node includes at least one edge container, and the edge container is a specific execution unit for implementing edge computing. In this embodiment, the edge node itself will collect node status data reflecting its node status through some specific components, as well as collect container monitoring data of each container running on the edge node, and the container is data reflecting the state of the container.

[0053] The data processing device is used to obtain the above-mentioned node status data and container monitoring data from the edge nodes through the second edge cluster; then integrate the container monitoring data collected from all edge nodes to obtain the workload monitoring data of each first edge cluster, integrate the node status data collected from all edge nodes to obtain the system status monitoring data of each first edge cluster, and regularly collect cluster operation status monitoring data from the second edge cluster. It can be seen that in this embodiment, on the one hand, compared with the traditional solution that requires a set of monitoring solutions to be deployed in each edge cluster, a data processing device is uniformly deployed in the cloud cluster, and the data processing device deployed in the cloud cluster is used to uniformly process the monitoring of each edge cluster, which will not greatly increase the pressure on the edge cluster and increase the edge cluster overhead. On the other hand, in order to better collect the required monitoring data, this embodiment also collects the required monitoring data through the second edge cluster that manages the first edge cluster in the cloud, so as to give more functions to the original edge cluster management and deploy monitoring components. On the other hand, after the data processing device collects the monitoring data of the two dimensions of node status data and container monitoring data, it will also integrate the monitoring data of the two dimensions of system status monitoring data and workload monitoring data of the first edge cluster based on the data of these two dimensions, and obtain the cluster operation status monitoring data, and obtain five dimensions of monitoring data respectively. Compared with the traditional solution, the monitoring dimension is also increased, which greatly improves the monitoring visualization of the entire distributed edge computing platform, which is beneficial to the overall operation and maintenance of the cluster, and makes the monitoring solution more effective and comprehensive.

[0054] The data processing device is used to pre-process the container monitoring data, workload monitoring data, node status data, system status monitoring data and cluster operation status monitoring data to obtain alarm monitoring data, and send the alarm monitoring data to the third-party management system, so that the third-party management sends the alarm monitoring data according to the preset alarm notification channel. After the data processing device obtains the monitoring data of the above five dimensions, it will pre-process the monitoring data of these five dimensions based on the alarm requirements, and send the alarm monitoring data to the third-party management system after obtaining it, so that the third-party management sends the alarm monitoring data according to the preset alarm notification channel, thereby completing the final monitoring alarm mechanism. In this embodiment, based on all the above-mentioned monitoring dimensions, a flexible and customized alarm strategy can be implemented through the third-party management system, which is convenient for timely grasping the operation status of the entire distributed edge platform.

[0055] In this embodiment, a new distributed monitoring and alarm mechanism based on edge computing is proposed, which is to deploy a data processing device in the cloud cluster, and use the second edge cluster to complete the collection and early warning of monitoring data of several dimensions related to the first edge cluster. There is no need to deploy a monitoring solution separately in each edge cluster, which reduces the pressure of increasing edge clusters, so that edge clusters have more energy to handle edge computing application scenarios, reduce the resource requirements of monitoring deployment, avoid limiting the application scenarios of edge computing, reduce overall costs, and expand the monitoring dimension, so that the distributed edge computing platform monitoring data is visualized and more comprehensive. It is supplemented by corresponding flexible and customizable alarm strategies to help grasp the status of the cluster.

[0056] It should be noted that, in some embodiments, the data processing device can be implemented using the Prometheus Server component, without specific limitation. It can be understood that the Prometheus Server can pull the required monitoring data metrics to the local time series database (such as the current disk) for storage through the Pull mode, wherein the object pulled by the Prometheus Server can be a push gateway (Push-gateway) or other components that can expose monitoring data metrics. At the same time, the Prometheus Server can regularly notify the Alert-manager (alarm manager) component of the alarm information according to the existing monitoring data and the configured alarm rules. In addition, the PromQL statement can also be used to query the monitoring data that has been collected and stored. Therefore, the data processing device can use the Prometheus Server component, which can very conveniently deploy the required data collection and push work.

[0057] In the above embodiment, it is described how to obtain the monitoring data of the above five dimensions. The following describes how to collect or integrate the monitoring data of the above dimensions. The embodiment of the present application has a unique component deployment processing method, which is described in detail below.

[0058] In one embodiment, a component deployment method is provided in which a data processing device collects container monitoring data from an edge node of a first edge cluster, such as Figure 2As shown, in this embodiment, the edge node is deployed with Kubelet components and cAdvisor components, and the second edge cluster is deployed with Apiserver components; the edge node collects container monitoring data of the container running on the edge node through the cAdvisor component; the edge node collects the container monitoring data collected by the cAdvisor component through the Kubelet component, and reports the container monitoring data to the Apiserver component through the Kubelet component; the data processing device obtains the container monitoring data from the interface exposed by the Apiserver component. Among them, the container monitoring data includes container data such as the performance status and operation status of the container, which is not specifically limited.

[0059] It is understandable that the Kubelet component is a core component of Kubernetes (k8s), and cAdvisor is a container monitoring tool, which is embedded in k8s as a monitoring component of k8s. After deploying Prometheus Server as a monitoring component, it is necessary to collect data of various dimensions and expose the address to the Prometheus server so that the Prometheus server can pull monitoring data. In this embodiment, a new way to collect container monitoring data is first proposed. The edge container is a container running on each edge node in each edge node, and is a specific execution unit of edge computing. Its monitoring data is mainly collected by the edge node through the cAdvisor component, and uniformly collected and reported to the Apiserver deployed by the second edge cluster through the cluster component Kubelet. Therefore, it can be collected directly through the interface exposed by the Apiserver in the cloud, which is very convenient and improves the feasibility of the solution.

[0060] In one embodiment, after obtaining the container monitoring data of the first edge cluster, the data processing device may further integrate the container monitoring data of each edge node to obtain monitoring data reflecting the workload status of the first edge cluster, i.e., workload monitoring data. Specifically, the data processing device obtains a container list corresponding to each edge node of the first edge cluster, aggregates the container monitoring data corresponding to all containers in each container list, obtains the workload monitoring data of each edge node, aggregates each group of workload monitoring data corresponding to each edge node, and obtains the workload monitoring data of the first edge cluster. The monitoring data of this dimension is processed based on the edge cluster container monitoring. Each container belongs to the workload of a cluster. For example, the edge cluster Q1 located at the edge, including edge nodes 1-edge nodes N, will collect the container monitoring data of all containers of each edge node in edge nodes 1-edge nodes N, and then the edge cluster Q1 can be summarized based on the container monitoring data in the workload dimension by using the PromQL query statement. The PromQL statement is as follows:

[0061] sum(rate(container_cpu_usage_seconds_total{pod="~"<POD_NAME_LIST> ",cluster=~"<CLUSTER_NAME> ",namespace=~" <namespace>"}[2m]));

[0062] The angle brackets need to be replaced according to the actual situation. For example, POD_NAME_LIST is a container list of all containers under this workload. The above statement can be used to find the monitoring data of all containers under each edge cluster workload. At this time, the combination is the monitoring data of the workload of the corresponding edge cluster.

[0063] In this embodiment, workload monitoring data of the edge cluster may be further obtained based on the container monitoring data integration.

[0064] In one embodiment, a component deployment method is provided in which a data processing device collects node status data from edge nodes of a first edge cluster, such as Figure 3 As shown, in this embodiment, the edge node is deployed with an Exporter agent (NodeExporter) and a pusher component (Prometheus pusher), and the second edge cluster is deployed with a push-gateway component; the edge node collects its own node status data through the Exporter component; the edge node regularly collects node status data from the Exporter agent through the pusher component, and tags the node status data with node labels and cluster labels, and pushes the node status data with node labels and cluster labels to the push-gateway component, wherein the node label corresponds to the edge node, and the cluster label corresponds to the first edge cluster; the data processing device obtains the required node status data from the push-gateway component according to the label classification. Among them, the node status data includes the node status, performance data or other node parameters of the edge node, etc., which are not specifically limited.

[0065] In this embodiment, it can be understood that since the collection of system status monitoring data of edge nodes is relatively complicated, but since the location of the edge nodes of the first edge cluster located at the edge is not in the same network as the Prometheus Server, it is impossible to directly collect node-exporter by Prometheus Server in the previous form. In this embodiment, node status data is collected by deploying Node-exporter on each edge node, that is, the monitoring data of the actual node status dimension is obtained by collecting the running status of the edge node by node-exporter based on the interface exposed by the operating system. In an embodiment of the present application, a self-developed Prometheus-pusher component is used to push the collected node status data to the push gateway (push-gateway component) of the second edge cluster located in the cloud, and the data processing device then directly collects data from the push-gateway through the Prometheus Server.

[0066] Among them, the working principle of the Prometheus-pusher component is: regularly collect data from exporters such as Node-exporter, store it in memory, and push the data to the specified address (push-gateway deployed in the cloud) in a unified manner through grouping. In this process, the specific node status data is labeled with the node label and the cluster label (label) for subsequent monitoring data screening and classification. The specific node information and cluster information are directly injected into the environment variables of the node system when the edge cluster is automatically deployed. Therefore, Prometheus-pusher can directly use this information through environment variables to obtain the unique node label and cluster label corresponding to each node. After the node status data is pushed to the push-gateway, the Prometheus Server can classify and receive the data according to the label for subsequent data analysis and alarm use.

[0067] In this embodiment, a new method for obtaining node status monitoring data is proposed. By deploying agents and push components and combining them with push gateways, data is collected regularly. The collected data is also marked with node labels and cluster labels to facilitate subsequent classification warnings or other custom query requirements, making the operation and maintenance of the acquired monitoring data more convenient and expanding the application scenarios of data operation and maintenance.

[0068] In one embodiment, after obtaining the node status data of the first edge cluster, the data processing device may further integrate the node status monitoring data of all edge nodes in the first edge cluster, thereby obtaining monitoring data reflecting the system operation status of the first edge cluster, that is, system status monitoring data. Specifically, the data processing device obtains the edge node list corresponding to the first edge cluster, aggregates the node status data corresponding to all edge nodes in each edge node list, and obtains the system status monitoring data of the first edge cluster.

[0069] It should be noted that the system status monitoring data of the edge cluster is obtained by processing the node status data of the edge nodes. Similar to the relationship between workload monitoring data and container monitoring data, it can also be obtained by filtering and aggregating the node status data of the edge nodes through PromQL. The PromQL statement form is as follows, where the angle brackets need to be replaced according to the actual situation. For example, NODE_NAME_LIST is a list of all nodes in the cluster.

[0070] sum(rate(node_cpu_seconds_total{node=~"<NODE_NAME_LIST> ",cluster=~"<CLUSTER_NAME> ",mode!="idle"}[2m]));

[0071] The above statements can be used to query the monitoring data of all edge nodes in each edge cluster. The combined data is the system status monitoring data that reflects the system status of the corresponding edge cluster.

[0072] It can be seen from the above embodiments that the monitoring data of four dimensions, namely, container monitoring data, node status data, workload monitoring data and system status monitoring data, can be obtained. In addition, the embodiment of the present application further obtains the relevant operation data of the second edge cluster that manages the first edge cluster through a specific component deployment method. Figure 4 As shown, the second edge cluster is deployed with an Apiserver component and a Kube-state-metrics component; the second edge cluster collects cluster operation status monitoring data through the Kube-state-metrics component and sends it to the Apiserver component; the data processing device collects cluster operation status monitoring data from the interface exposed by the Apiserver component.

[0073] In this embodiment, the cluster operation status monitoring data are mainly indicators of the system operation status, such as CPU, memory, network, etc. There are also overall cluster status monitoring data, such as the number of container restarts, the number of abnormal container status, the number of abnormal node status, cloud edge network connection status and other monitoring data. This type of monitoring data is collected through Kube-state-metrics, and then it can be collected regularly by configuring the collection path of Prometheus Server. After Kube-state-metrics runs normally, you need to configure the collection address of Prometheus Server.

[0074] like Figure 5 As shown, it is a schematic diagram of the architecture of the overall monitoring and alarm system. It can be seen that after the deployment of the monitoring core components Prometheus, Alertmanager (alarm manager) and other related components, the monitoring component PrometheusServer is the center of the entire monitoring. It captures the data of each monitoring dimension and stores it in the time series database. At the same time, the query of monitoring data is also queried (Query) through the API interface provided by Prometheus Server. After the above-mentioned multi-dimensional data collection, Prometheus Server already has data of various dimensions of the entire cluster of the first edge cluster. At this time, through the setting of alarm rules, the monitoring data based on all the above dimensions can be alarmed. The alarm can be pre-processed by grouping, filtering, etc. through Alert-manager, and finally sent to the edge-dashboard. The edge-dashboard is an edge push component, which is used to push the grouped and filtered data to the third-party management system for alarm notification. Among them, the customized alarm rules can be as follows:

[0075]

[0076] Among them, name is the name of the alarm, alert is the name of the alarm rule, for is the duration of the indicator before the alarm is issued, labels is the custom label, and summary is the summary. The above contents can be replaced according to the actual situation to obtain the required alarm rule.

[0077] In the above embodiment, a description is given from a system perspective. Based on the monitoring alarm system, a corresponding monitoring alarm method is provided below. The monitoring alarm system includes a first edge cluster located in a target physical area, a second edge cluster located in the cloud, a cloud cluster located in the cloud, and a third-party management system. The first edge cluster includes an edge node, and the cloud cluster is deployed with a data processing device. The method includes:

[0078] The data processing device obtains the container monitoring data collected by the edge node itself from the edge node through the second edge cluster;

[0079] The data processing device obtains the node status data collected by the edge node itself from the edge node through the second edge cluster;

[0080] The data processing device integrates the container monitoring data collected from all edge nodes to obtain the workload monitoring data of each first edge cluster, integrates the node status data collected from all edge nodes to obtain the system status monitoring data of each first edge cluster, and regularly collects cluster operation status monitoring data from the second edge cluster;

[0081] The data processing device pre-processes the container monitoring data, workload monitoring data, node status data, system status monitoring data and cluster operation status monitoring data to obtain alarm monitoring data, and sends the alarm monitoring data to a third-party management system.

[0082] In one embodiment, the edge node is deployed with a Kubelet component and a cAdvisor component, the second edge cluster is deployed with an Apiserver component, and the data processing device obtains container monitoring data collected by the edge node itself from the edge node through the second edge cluster, including: the data processing device obtains the container monitoring data from the interface exposed by the Apiserver component; wherein the container monitoring data is the container monitoring data of the container running on the edge node collected by the edge node through the cAdvisor component, and the container monitoring data is collected through the Kubelet component and reported to the Apiserver component.

[0083] In one embodiment, the edge node is deployed with an Exporter agent and a pusher component, and the second edge cluster is deployed with a push-gateway component; the data processing device obtains node status data collected by the edge node itself from the edge node through the second edge cluster, including: the data processing device obtains the required node status data from the push-gateway component according to label classification, wherein the node status data is collected by the edge node through the Exporter component, and then regularly collected from the Exporter agent through the pusher component and tagged with a node label and a cluster label and pushed to the push-gateway component, wherein the node label corresponds to the edge node, and the cluster label corresponds to the first edge cluster.

[0084] In one embodiment, the second edge cluster is deployed with an Apiserver component and a Kube-state-metrics component; cluster operation status monitoring data is regularly collected from the second edge cluster, including: a data processing device collects the cluster operation status monitoring data from the interface exposed by the Apiserver component; wherein the cluster operation status monitoring data is collected by the second edge cluster through the Kube-state-metrics component and sent to the Apiserver component.

[0085] In one embodiment, a data processing device integrates container monitoring data collected from all edge nodes to obtain workload monitoring data of each first edge cluster, including: the data processing device obtains a container list corresponding to each edge node of the first edge cluster, aggregates container monitoring data corresponding to all containers in each container list, obtains workload monitoring data of each edge node, aggregates each group of workload monitoring data corresponding to each edge node, and obtains workload monitoring data of the first edge cluster.

[0086] In one embodiment, a data processing device integrates node status data collected from all edge nodes to obtain system status monitoring data of each first edge cluster, including: the data processing device obtains an edge node list corresponding to the first edge cluster, aggregates node status data corresponding to all edge nodes in each edge node list, and obtains the corresponding system status monitoring data of the first edge cluster.

[0087] It should be noted that for the content of the monitoring alarm method, please refer to the description of the aforementioned system embodiment, which will not be repeated here.

[0088] In summary, the embodiments of the present application solve the problems of data monitoring that is not suitable for distributed edge computing platforms and the single dimension of monitoring and alarm support in conventional alarm technology through five-dimensional monitoring indicators and flexible and customizable alarm strategies based on distributed edge computing platforms, and improve the monitoring visualization and notification flexibility capabilities in edge computing scenarios, thereby greatly improving the actual application capabilities of edge computing scenarios.

[0089] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0090] In one embodiment, a data processing device is provided, which corresponds one-to-one to the data processing device in the above system embodiment. Figure 6 As shown, the data processing device includes an acquisition module, an integration module, a preprocessing module and a sending module. The detailed description of each functional module is as follows:

[0091] An acquisition module is used to acquire container monitoring data collected by the edge node itself from the edge node through the second edge cluster; acquire node status data collected by the edge node itself from the edge node through the second edge cluster; and regularly acquire cluster operation status monitoring data from the second edge cluster;

[0092] An integration module is used to integrate the container monitoring data collected from all edge nodes to obtain the workload monitoring data of each first edge cluster, and integrate the node status data collected from all edge nodes to obtain the system status monitoring data of each first edge cluster.

[0093] A preprocessing module is used to preprocess container monitoring data, workload monitoring data, node status data, system status monitoring data, and cluster operation status monitoring data to obtain alarm monitoring data;

[0094] The sending module is used to send the alarm monitoring data to a third-party management system.

[0095] In one embodiment, the edge node is deployed with a Kubelet component and a cAdvisor component, the second edge cluster is deployed with an Apiserver component, and the acquisition module is specifically used to: obtain container monitoring data from the interface exposed by the Apiserver component; wherein the container monitoring data is the container monitoring data of the container running on the edge node collected by the edge node through the cAdvisor component, and the container monitoring data is collected through the Kubelet component and reported to the Apiserver component.

[0096] In one embodiment, the edge node is deployed with an Exporter agent and a pusher component, and the second edge cluster is deployed with a push-gateway component; the acquisition module is specifically used to: obtain the required node status data from the push-gateway component according to the label classification, wherein the node status data is collected by the edge node through the Exporter component, and then regularly collected from the Exporter agent through the pusher component and marked with a node label and a cluster label and pushed to the push-gateway component, wherein the node label corresponds to the edge node, and the cluster label corresponds to the first edge cluster.

[0097] In one embodiment, the second edge cluster is deployed with an Apiserver component and a Kube-state-metrics component; the acquisition module is specifically used to: collect cluster operation status monitoring data from the interface exposed by the Apiserver component; wherein the cluster operation status monitoring data is collected by the second edge cluster through the Kube-state-metrics component and sent to the Apiserver component.

[0098] In one embodiment, the integration module is specifically used to: obtain a container list corresponding to each edge node of the first edge cluster, aggregate container monitoring data corresponding to all containers in each of the container lists, obtain workload monitoring data of each edge node, aggregate each group of workload monitoring data corresponding to each edge node, and obtain workload monitoring data of the first edge cluster.

[0099] In one embodiment, the integration module is specifically used to: obtain an edge node list corresponding to the first edge cluster, aggregate node status data corresponding to all edge nodes in each edge node list, and obtain corresponding system status monitoring data of the first edge cluster.

[0100] For the specific definition of the data processing device, please refer to the definition of the data processing method above, which will not be repeated here. Each module in the above data processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0101] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium and an internal memory. The readable storage medium stores an operating system, computer-readable instructions and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the readable storage medium. The database of the computer device is used to store data involved in the monitoring and alarm method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instructions are executed by the processor, the content involved in a monitoring and alarm method is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.

[0102] In one embodiment, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, the steps implemented by the data processing device in the monitoring alarm method are implemented.

[0103] In one embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the monitoring alarm method as described in any one of the above are implemented.

[0104] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0105] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0106] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.< / namespace>

Claims

1. A monitoring and alarm system based on distributed edge computing, characterized in that: The monitoring and alarm system includes a first edge cluster located in a target physical area, a second edge cluster located in a cloud, a cloud cluster located in the cloud, and a third-party management system, wherein the first edge cluster includes an edge node, and the cloud cluster is deployed with a data processing device; The edge node collects its own node status data and container monitoring data; The data processing device obtains the node status data and container monitoring data from the edge node through the second edge cluster; The data processing device integrates the container monitoring data collected from all the edge nodes to obtain the workload monitoring data of each of the first edge clusters, integrates the node status data collected from all the edge nodes to obtain the system status monitoring data of each of the first edge clusters, and periodically collects cluster operation status monitoring data from the second edge cluster; The data processing device pre-processes the container monitoring data, workload monitoring data, node status data, system status monitoring data and cluster operation status monitoring data to obtain alarm monitoring data, and sends the alarm monitoring data to the third-party management system, so that the third-party management system sends the alarm monitoring data according to a preset alarm notification channel.

2. The monitoring and alarm system according to claim 1, characterized in that: The edge node is deployed with a Kubelet component and a cAdvisor component, and the second edge cluster is deployed with an Apiserver component; The edge node collects container monitoring data of the container running on the edge node through the cAdvisor component; The edge node collects the container monitoring data collected by the cAdvisor component through the Kubelet component, and reports the container monitoring data to the Apiserver component through the Kubelet component; The data processing device obtains the container monitoring data from the interface exposed by the Apiserver component.

3. The monitoring alarm system according to claim 1, characterized in that: The edge node is deployed with an Exporter proxy and a pusher component, and the second edge cluster is deployed with a push-gateway component; The edge node collects its own node status data through the Exporter component; The edge node periodically collects the node status data from the Exporter agent through the pusher component, adds a node label and a cluster label to the node status data, and pushes the node status data with the node label and the cluster label to the push-gateway component, wherein the node label corresponds to the edge node, and the cluster label corresponds to the first edge cluster; The data processing device obtains the required node status data from the push-gateway component according to the label classification.

4. The monitoring and alarm system according to claim 1, characterized in that: The second edge cluster is deployed with an Apiserver component and a Kube-state-metrics component; The second edge cluster collects the cluster operation status monitoring data through the Kube-state-metrics component and sends it to the Apiserver component; The data processing device collects the cluster operation status monitoring data from the interface exposed by the Apiserver component.

5. The monitoring and alarm system according to any one of claims 1 to 4, characterized in that: The data processing device obtains a container list corresponding to each edge node of the first edge cluster, aggregates the container monitoring data corresponding to all containers in each container list, obtains the workload monitoring data of each edge node, aggregates each group of workload monitoring data corresponding to each edge node, and obtains the workload monitoring data of the first edge cluster.

6. The monitoring and alarm system according to any one of claims 1 to 4, characterized in that: The data processing device obtains an edge node list corresponding to the first edge cluster, aggregates node status data corresponding to all edge nodes in each edge node list, and obtains corresponding system status monitoring data of the first edge cluster.

7. A monitoring and alarm method for a monitoring and alarm system, characterized in that: The monitoring and alarm system includes a first edge cluster located in a target physical area, a second edge cluster located in a cloud, a cloud cluster located in the cloud, and a third-party management system, the first edge cluster includes an edge node, the cloud cluster is deployed with a data processing device, and the method includes: The data processing device obtains, from the edge node through the second edge cluster, the container monitoring data collected by the edge node itself; The data processing device obtains the node status data collected by the edge node itself from the edge node through the second edge cluster; The data processing device integrates the container monitoring data collected from all the edge nodes to obtain the workload monitoring data of each of the first edge clusters, integrates the node status data collected from all the edge nodes to obtain the system status monitoring data of each of the first edge clusters, and periodically collects cluster operation status monitoring data from the second edge cluster; The data processing device pre-processes the container monitoring data, workload monitoring data, node status data, system status monitoring data and cluster operation status monitoring data to obtain alarm monitoring data, and sends the alarm monitoring data to the third-party management system.

8. The monitoring alarm method according to claim 7, characterized in that: The edge node is deployed with a Kubelet component and a cAdvisor component, the second edge cluster is deployed with an Apiserver component, and the data processing device obtains container monitoring data collected by the edge node itself from the edge node through the second edge cluster, including: The data processing device obtains the container monitoring data from the interface exposed by the Apiserver component; Among them, the container monitoring data is the container monitoring data of the container running on the edge node collected by the edge node through the cAdvisor component, and the container monitoring data is collected and reported to the Apiserver component through the Kubelet component.

9. The monitoring alarm method according to claim 7, characterized in that: The edge node is deployed with an Exporter agent and a pusher component, and the second edge cluster is deployed with a push-gateway component; the data processing device obtains the node status data collected by the edge node itself from the edge node through the second edge cluster, including: The data processing device obtains the required node status data from the push-gateway component according to the label classification, The node status data is collected by the edge node through the Exporter component, and is periodically collected from the Exporter agent through the pusher component and is labeled with a node label and a cluster label and then pushed to the push-gateway component, wherein the node label corresponds to the edge node, and the cluster label corresponds to the first edge cluster.

10. The monitoring alarm method according to claim 7, characterized in that: The second edge cluster is deployed with an Apiserver component and a Kube-state-metrics component; and the periodic collection of cluster operation status monitoring data from the second edge cluster includes: The data processing device collects the cluster operation status monitoring data from the interface exposed by the Apiserver component; wherein the cluster operation status monitoring data is collected by the second edge cluster through the Kube-state-metrics component and sent to the Apiserver component.

11. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the monitoring alarm method according to any one of claims 7 to 10 are implemented.

12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the monitoring alarm method according to any one of claims 7 to 10 are implemented.

Citation Information

Patent Citations

  • Container monitoring alarm method, system and device based on multiple clusters and storage medium

    CN112511339A

  • Node state information acquisition method and device, electronic equipment and readable storage medium

    CN113742031A

  • Edge cluster monitoring method and system

    CN113986662A

  • Data processing method and apparatus, and computing node

    US20210203554A1

  • Method and apparatus for monitoring distributed storage system

    WO2021129367A1