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() }
Click to show internal directories.
Click to hide internal directories.