k8sapiserver

package
v0.99.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sAPIServer

type K8sAPIServer struct {
	// contains filtered or unexported fields
}

K8sAPIServer is a struct that produces metrics from kubernetes api server

func New

func New(clusterNameProvider clusterNameProvider, logger *zap.Logger, options ...k8sAPIServerOption) (*K8sAPIServer, error)

New creates a k8sApiServer which can generate cluster-level metrics

func (*K8sAPIServer) GetMetrics

func (k *K8sAPIServer) GetMetrics() []pmetric.Metrics

GetMetrics returns an array of metrics

func (*K8sAPIServer) Shutdown added in v0.28.0

func (k *K8sAPIServer) Shutdown() error

Shutdown stops the k8sApiServer

type K8sClient added in v0.30.0

type K8sClient interface {
	GetClientSet() kubernetes.Interface
	GetEpClient() k8sclient.EpClient
	GetNodeClient() k8sclient.NodeClient
	GetPodClient() k8sclient.PodClient
	ShutdownNodeClient()
	ShutdownPodClient()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL