Prometheus high-availability system based on Kubernetes environment and implementation method of system
An implementation method and environment technology, applied in the field of cloud computing, can solve problems such as data collection loss
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0071] as attached figure 1 Shown, the Prometheus high-availability system based on the Kubernetes environment of the present invention, this system comprises Manager end (service end) and Client end (client end), and Manager end and Client end are all deployed in Kubernetes with Pod mode;
[0072] Among them, the Manager side is used to dynamically obtain the access address of the Pod node of the Client side through the Apiserver of Kubernetes, pull the monitoring data of the Client side corresponding to the address and deduplicate the data, and send a command to update the Prometheus configuration;
[0073] The client side is used to determine the node of the Master role in the cluster through a distributed election strategy.
[0074] The Manager side in this embodiment includes,
[0075] The Metric module is used to obtain monitoring data from multiple Pod nodes, and deduplicate the monitoring data and return it to the monitoring data requester;
[0076] The Configure mod...
Embodiment 2
[0088] The Prometheus high-availability implementation method based on the Kubernetes environment of the present invention is specifically as follows:
[0089] S1. Deploy an odd number of Pod nodes in StatefulSet mode in Kubernetes, and label each Pod node as label={"prometheus_cluster":"true"};
[0090] The Manager side is deployed in Deployment mode, and the number of Pods is not limited;
[0091] S2. The Pod node storage on each client side uses persistent storage PersistentVolume to ensure that after the Pod node is rebuilt, the data of the original Pod node will not be lost, thereby ensuring that its update is an incremental update;
[0092] S3. After the Sidecar on the client side is started, it enters the sleep state for a duration of T sleep , and set Sidecar's own status as candidate candidate;
[0093] S4, Sidecar obtains and filters out the IP addresses of the Pod nodes of each node of the Prometheus cluster through the Apiserver of Kubernetes and the identificati...
Embodiment 3
[0127] An embodiment of the present invention also provides an electronic device, including: a memory and at least one processor;
[0128] Wherein, the memory stores computer-executable instructions;
[0129] The at least one processor executes the computer-executed instructions stored in the memory, so that the at least one processor executes the Prometheus high-availability implementation method based on the Kubernetes environment in any embodiment of the present invention.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com

