metrics

package
v1.13.6 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProxyTimeout = 2 * time.Minute
)

Variables

This section is empty.

Functions

func PrintSample

func PrintSample(sample *model.Sample) string

Types

type ApiServerMetrics

type ApiServerMetrics Metrics

func NewApiServerMetrics

func NewApiServerMetrics() ApiServerMetrics

func (*ApiServerMetrics) Equal

type ClusterAutoscalerMetrics

type ClusterAutoscalerMetrics Metrics

func NewClusterAutoscalerMetrics

func NewClusterAutoscalerMetrics() ClusterAutoscalerMetrics

func (*ClusterAutoscalerMetrics) Equal

type ControllerManagerMetrics

type ControllerManagerMetrics Metrics

func NewControllerManagerMetrics

func NewControllerManagerMetrics() ControllerManagerMetrics

func (*ControllerManagerMetrics) Equal

type KubeletMetrics

type KubeletMetrics Metrics

func GrabKubeletMetricsWithoutProxy

func GrabKubeletMetricsWithoutProxy(nodeName string) (KubeletMetrics, error)

GrabKubeletMetricsWithoutProxy retrieve metrics from the kubelet on the given node using a simple GET over http. Currently only used in integration tests.

func NewKubeletMetrics

func NewKubeletMetrics() KubeletMetrics

func (*KubeletMetrics) Equal

func (m *KubeletMetrics) Equal(o KubeletMetrics) bool

type Metrics

type Metrics map[string]model.Samples

func NewMetrics

func NewMetrics() Metrics

func (*Metrics) Equal

func (m *Metrics) Equal(o Metrics) bool

type MetricsCollection

type MetricsCollection struct {
	ApiServerMetrics         ApiServerMetrics
	ControllerManagerMetrics ControllerManagerMetrics
	KubeletMetrics           map[string]KubeletMetrics
	SchedulerMetrics         SchedulerMetrics
	ClusterAutoscalerMetrics ClusterAutoscalerMetrics
}

type MetricsGrabber

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

func NewMetricsGrabber

func NewMetricsGrabber(c clientset.Interface, ec clientset.Interface, kubelets bool, scheduler bool, controllers bool, apiServer bool, clusterAutoscaler bool) (*MetricsGrabber, error)

func (*MetricsGrabber) Grab

func (g *MetricsGrabber) Grab() (MetricsCollection, error)

func (*MetricsGrabber) GrabFromApiServer

func (g *MetricsGrabber) GrabFromApiServer() (ApiServerMetrics, error)

func (*MetricsGrabber) GrabFromClusterAutoscaler

func (g *MetricsGrabber) GrabFromClusterAutoscaler() (ClusterAutoscalerMetrics, error)

func (*MetricsGrabber) GrabFromControllerManager

func (g *MetricsGrabber) GrabFromControllerManager() (ControllerManagerMetrics, error)

func (*MetricsGrabber) GrabFromKubelet

func (g *MetricsGrabber) GrabFromKubelet(nodeName string) (KubeletMetrics, error)

func (*MetricsGrabber) GrabFromScheduler

func (g *MetricsGrabber) GrabFromScheduler() (SchedulerMetrics, error)

func (*MetricsGrabber) HasRegisteredMaster

func (g *MetricsGrabber) HasRegisteredMaster() bool

HasRegisteredMaster returns if metrics grabber was able to find a master node

type SchedulerMetrics

type SchedulerMetrics Metrics

func NewSchedulerMetrics

func NewSchedulerMetrics() SchedulerMetrics

func (*SchedulerMetrics) Equal

Jump to

Keyboard shortcuts

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