metrics

package
v0.0.0-...-1fc8ff4 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2018 License: MIT Imports: 5 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 {
	// GetResourceMetric gets the given resource metric (and an associated oldest timestamp)
	// for all pods matching the specified selector in the given namespace
	GetResourceMetric() (NodeMetricsInfo, time.Time, error)
}

MetricsClient knows how to query a remote interface to retrieve container-level resource metrics as well as pod-level arbitrary metrics

func NewRESTMetricsClient

func NewRESTMetricsClient(resourceClient resourceclient.NodeMetricsesGetter) MetricsClient

NewRESTMetricsClient returns a metricsClient.

type NodeMetricsInfo

type NodeMetricsInfo map[string]int64

NodeMetricsInfo contains pod metric values as a map from pod names to metric values (the metric values are expected to be the metric as a milli-value)

Jump to

Keyboard shortcuts

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