Documentation ¶
Overview ¶
Package metric 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 }
Gatherer handles triggering the metric gathering logic to gather metrics for a resource
func (*Gatherer) GetMetrics ¶
func (m *Gatherer) GetMetrics(resource metav1.Object) (*ResourceMetrics, error)
GetMetrics gathers metrics for the resource supplied
type GetMetricer ¶ added in v0.9.0
type GetMetricer interface {
GetMetrics(resource metav1.Object) (*ResourceMetrics, error)
}
GetMetricer provides methods for retrieving metrics
Click to show internal directories.
Click to hide internal directories.