metrics

package
v1.5.5-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2017 License: Apache-2.0 Imports: 15 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 ControllerManagerMetrics

type ControllerManagerMetrics Metrics

func NewControllerManagerMetrics

func NewControllerManagerMetrics() ControllerManagerMetrics

func (*ControllerManagerMetrics) Equal

type KubeletMetrics

type KubeletMetrics Metrics

func GrabKubeletMetricsWithoutProxy added in v1.3.0

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
}

type MetricsGrabber

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

func NewMetricsGrabber

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

func (*MetricsGrabber) Grab

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

func (*MetricsGrabber) GrabFromApiServer

func (g *MetricsGrabber) GrabFromApiServer() (ApiServerMetrics, 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)

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