Method and device for monitoring Kubernetes resource data

A resource data and monitoring device technology, applied in program control devices, electrical digital data processing, hardware monitoring, etc., can solve problems such as incomplete collection of resource data attribute information, and achieve the effects of reducing difficulty, expanding monitoring scope, and improving integrity

Active Publication Date: 2021-01-05
NR ELECTRIC CO LTD +1
View PDF1 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to overcome the deficiencies in the prior art, provide a monitoring method and device for Kubernetes resource data, and can solve the problem of incomplete collection of attribute information of resource data

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for monitoring Kubernetes resource data
  • Method and device for monitoring Kubernetes resource data
  • Method and device for monitoring Kubernetes resource data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] Such as figure 1 As shown, the embodiment of the present invention provides a kind of monitoring method of Kubernetes resource data, comprises the following steps:

[0050] Deploy the Prometheus monitoring component in the Kubernetes cluster environment, call the API interface of the Prometheus monitoring component, and obtain the performance data of the Kubernetes cluster resources;

[0051] Define the Kubernetes client KubernetesClient, call the API interface of the client KubernetesClient, and obtain the static information and running status information of the Kubernetes cluster resources;

[0052] Store the performance data of Kubernetes cluster resources and the static information and running status information of Kubernetes cluster resources in the monitoring component, and monitor the resource data of Kubernetes cluster through the monitoring component.

[0053] Such as figure 2 As shown, the schematic diagram of the framework of the monitoring method for Kube...

Embodiment 2

[0072] The present invention provides a kind of monitoring device of Kubernetes resource data, and described device comprises following components:

[0073] Prometheus monitoring component, used to obtain performance data of Kubernetes cluster resources;

[0074] The Kubernetes client component is used to obtain static information and running status information of Kubernetes cluster resources;

[0075] The monitoring component is used to store and display the performance data of Kubernetes cluster resources, as well as the static information and running status information of Kubernetes cluster resources.

[0076] Specifically, the Prometheus monitoring component includes the following components:

[0077] Node-exporter component, said node-exporter component includes CPU, memory, network and file system, can be directly installed on each master node of Kubernetes cluster, collects the performance data of node level;

[0078] Prometheus component, described Prometheus compone...

Embodiment 3

[0082]The embodiment of the present invention also provides a monitoring device for Kubernetes resource data, including a processor and a storage medium;

[0083] The storage medium is used to store instructions;

[0084] The processor is configured to operate according to the instructions to perform the steps of any one of the methods of the first aspect.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for monitoring Kubernetes resource data, and the method comprises the following steps: deploying a Prometheus monitoring assembly in a Kubernetes clusterenvironment, calling an API interface of the Prometheus monitoring assembly, and obtaining the performance data of Kubernetes cluster resources; defining a client of the Kubernetes, and calling an APIof the client to obtain static information and running state information of the Kubernetes cluster resources; and storing the performance data of the cluster resources and the static information andthe running state information of the cluster resources in a monitoring component, and monitoring the resource data of the cluster through the monitoring component. According to the method, the integrity of Kubernetes cluster resource attribute information collection can be improved, the monitoring range can be expanded, and monitoring of the container process level is included.

Description

technical field [0001] The invention relates to a monitoring method and device for Kubernetes resource data, and belongs to the technical field of electric power system cloud platforms. Background technique [0002] With the development of modern Internet technology, the frequency of development and application of cloud platform technology is getting higher and higher. The application of container technology on cloud platforms has gradually become mainstream. Docker, as the most widely used container technology, makes software deployment easier and truly realizes the purpose of deploying and running everywhere. More importantly, Docker has the advantages of low resource usage and high operating efficiency compared with traditional virtual machine technology. In the cloud platform, Kubernetes is an open source Docker container cluster management system across host clusters, which is used to manage containerized applications on multiple hosts in the cloud platform, and provid...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/30G06F9/455
CPCG06F11/3058G06F11/3006G06F9/45558G06F2009/4557G06F2009/45595G06F2009/45591
Inventor 张康孙超吕志强王艳蓉赵振
Owner NR ELECTRIC CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products