metrics

package
v0.0.0-...-cb9ab9a Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodeResourceRequest

func NodeResourceRequest(promServerIP string) (map[string]float64, error)

Types

type TempNodeResourceStruct

type TempNodeResourceStruct struct {
	NodeName          string
	Resource          string
	ResourceUnit      string
	ResourceAvailable string
}

func NodeAllocatableResources

func NodeAllocatableResources(promServerIP string) ([]TempNodeResourceStruct, error)

type TempNodeStatusStruct

type TempNodeStatusStruct struct {
	NodeName             string
	Condition            string
	ConditionStatus      string
	ConditionStatusValue string
}

func NodeStatusPhase

func NodeStatusPhase(promServerIP string) ([]TempNodeStatusStruct, error)

[]TempNodeStatusStruct, error

type TempPodStatusStruct

type TempPodStatusStruct struct {
	PodName    string
	PodPhase   string
	PhaseValue string
}

func PodStatusPhase

func PodStatusPhase(promServerIP string) ([]TempPodStatusStruct, error)

type TempPodsNotScheduledStruct

type TempPodsNotScheduledStruct struct {
	Namespace string
	PodName   string
}

func PodsNotScheduled

func PodsNotScheduled(promServerIP string) ([]TempPodsNotScheduledStruct, error)

Jump to

Keyboard shortcuts

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