metricscollector

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsCollector

type MetricsCollector struct {
	// contains filtered or unexported fields
}

func NewMetricsCollector

func NewMetricsCollector(nodeLister listercorev1.NodeLister, metricsClientset metricsclient.Interface, nodeSelector labels.Selector) *MetricsCollector

func (*MetricsCollector) AllNodesUsage

func (mc *MetricsCollector) AllNodesUsage() (map[string]map[v1.ResourceName]*resource.Quantity, error)

func (*MetricsCollector) Collect

func (mc *MetricsCollector) Collect(ctx context.Context) error

func (*MetricsCollector) HasSynced

func (mc *MetricsCollector) HasSynced() bool

func (*MetricsCollector) MetricsClient

func (mc *MetricsCollector) MetricsClient() metricsclient.Interface

func (*MetricsCollector) NodeUsage

func (mc *MetricsCollector) NodeUsage(node *v1.Node) (map[v1.ResourceName]*resource.Quantity, error)

func (*MetricsCollector) Run

func (mc *MetricsCollector) Run(ctx context.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL