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 CPUInitializationPeriod time.Duration DelayOfInitialReadinessStatus time.Duration }
Gather (Resource) provides functionality for retrieving metrics for resource metric specs.
func (*Gather) GetMetric ¶
func (c *Gather) GetMetric(resource corev1.ResourceName, namespace string, selector labels.Selector) (*Metric, error)
GetMetric retrieves a resource metric
func (*Gather) GetRawMetric ¶
func (c *Gather) GetRawMetric(resource corev1.ResourceName, namespace string, selector labels.Selector) (*Metric, error)
GetRawMetric retrieves a a raw resource metric
type Gatherer ¶
type Gatherer interface { GetMetric(resource corev1.ResourceName, namespace string, selector labels.Selector) (*Metric, error) GetRawMetric(resource corev1.ResourceName, namespace string, selector labels.Selector) (*Metric, error) }
Gatherer (Resource) allows retrieval of resource metrics.
type Metric ¶
type Metric struct { PodMetricsInfo metricsclient.PodMetricsInfo `json:"pod_metrics_info"` Requests map[string]int64 `json:"requests"` ReadyPodCount int64 `json:"ready_pod_count"` IgnoredPods sets.String `json:"ignored_pods"` MissingPods sets.String `json:"missing_pods"` TotalPods int `json:"total_pods"` Timestamp time.Time `json:"timestamp"` }
Metric (Resource) is a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics (the "pods" source).
Click to show internal directories.
Click to hide internal directories.