monitors

package
v0.0.0-...-6dbdb44 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: EPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PodRunningReadyOrSucceeded

func PodRunningReadyOrSucceeded(p *v1.Pod) (bool, error)

PodRunningReadyOrSucceeded checks whether pod p's phase is running and it has a ready condition of status true or wheather the Pod already succeeded.

Types

type PodStartupLatencyDataMonitor

type PodStartupLatencyDataMonitor struct {
	sync.Mutex

	PodStartupData map[string]PodStartupMilestones
	// contains filtered or unexported fields
}

PodStartupLatencyDataMonitor monitors pod startup latency and exposes prometheus metric.

func NewPodStartupDataMonitor

func NewPodStartupDataMonitor(c clientset.Interface) *PodStartupLatencyDataMonitor

NewPodStartupLatencyDataMonitor creates a new PodStartupLatencyDataMonitor from a given client.

func (*PodStartupLatencyDataMonitor) DescribeEvents

func (pm *PodStartupLatencyDataMonitor) DescribeEvents(stopCh chan struct{}) error

Descibe all pod events in given namespace for Eclipse Che

type PodStartupMilestones

type PodStartupMilestones struct {
	// contains filtered or unexported fields
}

PodStartupMilestones keeps all milestone timestamps from Pod creation.

func (*PodStartupMilestones) IsComplete

func (data *PodStartupMilestones) IsComplete() bool

IsComplete returns true is data is complete (ready to be included in the metric) and if it haven't been included in the metric yet.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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