Documentation ¶
Index ¶
- type K8sClient
- func (k *K8sClient) GetComponentStatus(overallHealth *int, kubeAPIHealth *int)
- func (k *K8sClient) GetEndpointStatus(kubeAPIHealth *int)
- func (k *K8sClient) GetMetrics() *metrics.Collector
- func (k *K8sClient) GetNodeStatus(overallHealth *int, kubeAPIHealth *int)
- func (k *K8sClient) SetKubeAPIAndOverallHealth(overallHealth *int, kubeAPIHealth *int)
- func (k *K8sClient) StopTimer(startTime time.Time)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sClient ¶
type K8sClient struct {
// contains filtered or unexported fields
}
K8sClient is a struct containing config, clientset, logger and metricsController
func NewK8sClient ¶
NewK8sClient is a function which takes a config and a logger and returns a K8sClient
func (*K8sClient) GetComponentStatus ¶
GetComponentStatus is a method for the K8sClient struct that fetches the components status and calls the AddComponentsMetricsEntry method to add the metrics to a MetricsPoint
func (*K8sClient) GetEndpointStatus ¶
GetEndpointStatus is a method for the K8sClient struct that fetches the endpoints status and calls the AddSimpleMetricsEntry method to add the metrics to a MetricsPoint
func (*K8sClient) GetMetrics ¶
GetMetrics is am method for the K8sClient struct that returns the K8sClient metricsCollector
func (*K8sClient) GetNodeStatus ¶
GetNodeStatus is a method for the K8sClient struct that fetches the node status and calls the AddNodesMetricsEntry method to add the metrics to a MetricsPoint
func (*K8sClient) SetKubeAPIAndOverallHealth ¶
SetKubeAPIAndOverallHealth is a method for the K8sClient struct that calls the AddSimpleMetricsEntry method to add the metrics to a MetricsPoint