node

package
v0.0.0-...-4bff489 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AdjustedPollingRateGaugeVec *prometheus.GaugeVec
)

Functions

This section is empty.

Types

type Node

type Node struct {
	AdjustedPollingRate bool

	MaxNodeQueryConcurrency int

	Set             mapset.Set[string]
	KubeletEndpoint *sync.Map // key=nodeName val=kubeletEndpoint
	WaitGroup       *sync.WaitGroup
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector(sampleInterval int64) Node

func (*Node) Get

func (n *Node) Get()

func (*Node) Query

func (n *Node) Query(node string) ([]byte, error)

func (*Node) SetMetrics

func (n *Node) SetMetrics(nodeName string, availableBytes float64, capacityBytes float64)

func (*Node) Watch

func (n *Node) Watch()

Jump to

Keyboard shortcuts

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