metrics

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintPodStats

func PrintPodStats(pod *api_v1.Pod, metrics *Metrics)

PrintPodStats displays stats for Pod

Types

type GroupMetrics

type GroupMetrics struct {
	CPULimit       float64
	MemoryLimit    float64
	CPURequest     float64
	MemoryRequest  float64
	StorageClaimed float64
}

GroupMetrics Details Here Active resource is the resource quantity active in the current month

type Metrics

type Metrics struct {
	CPULimit      *resource.Quantity
	MemoryLimit   *resource.Quantity
	CPURequest    *resource.Quantity
	MemoryRequest *resource.Quantity
}

Metrics information

func CalculateNodeStats

func CalculateNodeStats(nodes []v1.Node) *Metrics

CalculateNodeStats returns node metrics.

func CalculatePodStatsFromContainers

func CalculatePodStatsFromContainers(pods []v1.Pod) *Metrics

CalculatePodStatsFromContainers returns pods stats from containers.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL