cluster

package
v0.0.0-...-d7363f7 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsClient

type MetricsClient interface {
	// GetContainersMetrics returns an array of ContainerMetricsSnapshots,
	// representing resource usage for every running container in the cluster
	GetContainersMetrics() ([]*model.ContainerMetricsSnapshot, error)
}

MetricsClient provides simple metrics on resources usage on containter level.

func NewMetricsClient

func NewMetricsClient(metricsGetter resourceclient.PodMetricsesGetter) MetricsClient

NewMetricsClient creates new instance of MetricsClient, which is used by recommender. It requires an instance of PodMetricsesGetter, which is used for underlying communication with metrics server.

type SpecClient

type SpecClient interface {
	// Returns BasicPodSpec for each pod in the cluster
	GetPodSpecs() ([]*model.BasicPodSpec, error)
}

SpecClient provides information about pods and containers Specification

func NewSpecClient

func NewSpecClient(podLister v1lister.PodLister) SpecClient

NewSpecClient creates new client which can be used to get basic information about pods specification It requires PodLister which is a data source for this client.

Jump to

Keyboard shortcuts

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