metrics

package
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 the pod stats.

Types

type Metrics

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

Metrics types

func CalculatePodStatsFromContainers

func CalculatePodStatsFromContainers(pod *api_v1.Pod) *Metrics

CalculatePodStatsFromContainers returns the cumulative metrics from the containers.

Jump to

Keyboard shortcuts

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