metrics

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JobStatusCounter

func JobStatusCounter(kind string, reader client.Reader, filter func(status v1.JobStatus) bool) (result int32, err error)

func StartMonitoringForDefaultRegistry

func StartMonitoringForDefaultRegistry(metricsPort int)

Types

type JobMetrics

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

JobMetrics holds the kinds of metrics counter for some type of job workload.

func NewJobMetrics

func NewJobMetrics(kind string, client client.Client) *JobMetrics

func (*JobMetrics) AllPodsLaunchDelaySeconds

func (m *JobMetrics) AllPodsLaunchDelaySeconds(pods []*corev1.Pod, job metav1.Object, status v1.JobStatus)

func (*JobMetrics) CreatedInc

func (m *JobMetrics) CreatedInc()

func (*JobMetrics) DeletedInc

func (m *JobMetrics) DeletedInc()

func (*JobMetrics) FailureInc

func (m *JobMetrics) FailureInc()

func (*JobMetrics) FirstPodLaunchDelaySeconds

func (m *JobMetrics) FirstPodLaunchDelaySeconds(activePods []*corev1.Pod, job metav1.Object, status v1.JobStatus)

func (*JobMetrics) RestartInc

func (m *JobMetrics) RestartInc()

func (*JobMetrics) SuccessInc

func (m *JobMetrics) SuccessInc()

Jump to

Keyboard shortcuts

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