Documentation ¶
Index ¶
- Constants
- func PrintSample(sample *model.Sample) string
- type ApiServerMetrics
- 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) 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 ¶ added in v0.4.0
func (m *ApiServerMetrics) Equal(o ApiServerMetrics) bool
type ControllerManagerMetrics ¶
type ControllerManagerMetrics Metrics
func NewControllerManagerMetrics ¶
func NewControllerManagerMetrics() ControllerManagerMetrics
func (*ControllerManagerMetrics) Equal ¶ added in v0.4.0
func (m *ControllerManagerMetrics) Equal(o ControllerManagerMetrics) bool
type KubeletMetrics ¶
type KubeletMetrics Metrics
func GrabKubeletMetricsWithoutProxy ¶ added in v1.3.0
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 ¶ added in v0.4.0
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 }
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) 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 ¶ added in v0.4.0
func (m *SchedulerMetrics) Equal(o SchedulerMetrics) bool
Click to show internal directories.
Click to hide internal directories.