Documentation ¶
Overview ¶
Package metricget provides functionality for managing gathering metrics, calling external metric gathering logic through shell commands with relevant data piped to them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gatherer ¶
type Gatherer struct { Clientset kubernetes.Interface Config *config.Config Execute execute.Executer K8sMetricGatherer K8sMetricGatherer }
Gatherer handles triggering the metric gathering logic to gather metrics for a resource
type GetMetricer ¶
type GetMetricer interface {
GetMetrics(info metric.Info, podSelector labels.Selector, currentReplicas int32) ([]*metric.ResourceMetric, error)
}
GetMetricer provides methods for retrieving metrics
type K8sMetricGatherer ¶ added in v2.7.0
type K8sMetricGatherer interface {
Gather(specs []autoscalingv2.MetricSpec, namespace string, podSelector labels.Selector) ([]*metrics.Metric, error)
}
Click to show internal directories.
Click to hide internal directories.