Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NodeStatsList []Node
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { Name string Capacity_disk int Capacity_memory int Capacity_cpu int Usage_disk int Usage_memory int Usage_cpu float32 Free_disk int Free_memory int Free_cpu float32 Usage_disk_percent float32 Usage_memory_percent float32 Usage_cpu_percent float32 TotalPods string LabelToDisplay string Labels map[string]string }
func GetMetricsForNode ¶
func GetMetricsForNode(nodestats *Node, node *core.Node, nm *v1beta1.NodeMetrics, metric string) []Node
This Go function takes in node statistics, node information, node metrics, a specific metric, and returns an array of nodes. responsible for collecting memory, cpu, and disk statistics for each node
Click to show internal directories.
Click to hide internal directories.