Documentation ¶
Index ¶
- Constants
- func PrintSample(sample *model.Sample) string
- type ApiServerMetrics
- type ClusterAutoscalerMetrics
- type ControllerManagerMetrics
- type KubeletMetrics
- type Metrics
- type MetricsCollection
- type MetricsGrabber
- func (g *MetricsGrabber) Grab() (MetricsCollection, error)
- func (g *MetricsGrabber) GrabFromApiServer() (ApiServerMetrics, error)
- func (g *MetricsGrabber) GrabFromClusterAutoscaler() (ClusterAutoscalerMetrics, error)
- func (g *MetricsGrabber) GrabFromControllerManager() (ControllerManagerMetrics, error)
- func (g *MetricsGrabber) GrabFromKubelet(nodeName string) (KubeletMetrics, error)
- func (g *MetricsGrabber) GrabFromScheduler() (SchedulerMetrics, error)
- type SchedulerMetrics
Constants ¶
View Source
const (
ProxyTimeout = 2 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func PrintSample ¶
Types ¶
type ApiServerMetrics ¶
type ApiServerMetrics Metrics
func NewApiServerMetrics ¶
func NewApiServerMetrics() ApiServerMetrics
func (*ApiServerMetrics) Equal ¶
func (m *ApiServerMetrics) Equal(o ApiServerMetrics) bool
type ClusterAutoscalerMetrics ¶
type ClusterAutoscalerMetrics Metrics
func NewClusterAutoscalerMetrics ¶
func NewClusterAutoscalerMetrics() ClusterAutoscalerMetrics
func (*ClusterAutoscalerMetrics) Equal ¶
func (m *ClusterAutoscalerMetrics) Equal(o ClusterAutoscalerMetrics) bool
type ControllerManagerMetrics ¶
type ControllerManagerMetrics Metrics
func NewControllerManagerMetrics ¶
func NewControllerManagerMetrics() ControllerManagerMetrics
func (*ControllerManagerMetrics) Equal ¶
func (m *ControllerManagerMetrics) Equal(o ControllerManagerMetrics) bool
type KubeletMetrics ¶
type KubeletMetrics Metrics
func GrabKubeletMetricsWithoutProxy ¶
func GrabKubeletMetricsWithoutProxy(nodeName string) (KubeletMetrics, error)
GrabKubeletMetricsWithoutProxy retrieve metrics from the kubelet on the given node using a simple GET over http. Currently only used in integration tests.
func NewKubeletMetrics ¶
func NewKubeletMetrics() KubeletMetrics
func (*KubeletMetrics) Equal ¶
func (m *KubeletMetrics) Equal(o KubeletMetrics) bool
type Metrics ¶
func NewMetrics ¶
func NewMetrics() Metrics
type MetricsCollection ¶
type MetricsCollection struct { ApiServerMetrics ApiServerMetrics ControllerManagerMetrics ControllerManagerMetrics KubeletMetrics map[string]KubeletMetrics SchedulerMetrics SchedulerMetrics ClusterAutoscalerMetrics ClusterAutoscalerMetrics }
type MetricsGrabber ¶
type MetricsGrabber struct {
// contains filtered or unexported fields
}
func NewMetricsGrabber ¶
func (*MetricsGrabber) Grab ¶
func (g *MetricsGrabber) Grab() (MetricsCollection, error)
func (*MetricsGrabber) GrabFromApiServer ¶
func (g *MetricsGrabber) GrabFromApiServer() (ApiServerMetrics, error)
func (*MetricsGrabber) GrabFromClusterAutoscaler ¶
func (g *MetricsGrabber) GrabFromClusterAutoscaler() (ClusterAutoscalerMetrics, error)
func (*MetricsGrabber) GrabFromControllerManager ¶
func (g *MetricsGrabber) GrabFromControllerManager() (ControllerManagerMetrics, error)
func (*MetricsGrabber) GrabFromKubelet ¶
func (g *MetricsGrabber) GrabFromKubelet(nodeName string) (KubeletMetrics, error)
func (*MetricsGrabber) GrabFromScheduler ¶
func (g *MetricsGrabber) GrabFromScheduler() (SchedulerMetrics, error)
type SchedulerMetrics ¶
type SchedulerMetrics Metrics
func NewSchedulerMetrics ¶
func NewSchedulerMetrics() SchedulerMetrics
func (*SchedulerMetrics) Equal ¶
func (m *SchedulerMetrics) Equal(o SchedulerMetrics) bool
Click to show internal directories.
Click to hide internal directories.