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 PodReadyCounter podutil.PodReadyCounter }
Gather (External) provides functionality for retrieving metrics for external metric specs.
func (*Gather) GetMetric ¶
func (c *Gather) GetMetric(metricName, namespace string, metricSelector *metav1.LabelSelector, podSelector labels.Selector) (*Metric, error)
GetMetric retrieves an external metric
func (*Gather) GetPerPodMetric ¶
func (c *Gather) GetPerPodMetric(metricName, namespace string, metricSelector *metav1.LabelSelector) (*Metric, error)
GetPerPodMetric retrieves an external per pod metric
type Gatherer ¶
type Gatherer interface { GetMetric(metricName, namespace string, metricSelector *metav1.LabelSelector, podSelector labels.Selector) (*Metric, error) GetPerPodMetric(metricName, namespace string, metricSelector *metav1.LabelSelector) (*Metric, error) }
Gatherer (External) allows retrieval of external metrics.
type Metric ¶
Metric (External) is a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
Click to show internal directories.
Click to hide internal directories.