node

package
v0.0.0-...-03bd59f Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 19 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) 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
JackTT - Gopher 🇻🇳