pods

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gather

type Gather struct {
	MetricsClient metricsclient.MetricsClient
	PodLister     corelisters.PodLister
}

Gather (Pods) provides functionality for retrieving metrics for pods metric specs.

func (*Gather) GetMetric

func (c *Gather) GetMetric(metricName string, namespace string, selector labels.Selector, metricSelector labels.Selector) (*Metric, error)

GetMetric retrieves a pods metric

type Gatherer

type Gatherer interface {
	GetMetric(metricName string, namespace string, selector labels.Selector, metricSelector labels.Selector) (*Metric, error)
}

Gatherer (Pods) allows retrieval of pods metrics.

type Metric

type Metric struct {
	PodMetricsInfo metricsclient.PodMetricsInfo
	ReadyPodCount  int64
	IgnoredPods    sets.String
	MissingPods    sets.String
	TotalPods      int
	Timestamp      time.Time
}

Metric (Pods) is a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.

Jump to

Keyboard shortcuts

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