Documentation ¶
Index ¶
- func JobStatusCounter(kind string, reader client.Reader, filter func(status v1.JobStatus) bool) (result int32, err error)
- func StartMonitoringForDefaultRegistry(metricsPort int)
- type JobMetrics
- func (m *JobMetrics) AllPodsLaunchDelaySeconds(pods []*corev1.Pod, job metav1.Object, status v1.JobStatus)
- func (m *JobMetrics) CreatedInc()
- func (m *JobMetrics) DeletedInc()
- func (m *JobMetrics) FailureInc()
- func (m *JobMetrics) FirstPodLaunchDelaySeconds(activePods []*corev1.Pod, job metav1.Object, status v1.JobStatus)
- func (m *JobMetrics) RestartInc()
- func (m *JobMetrics) SuccessInc()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JobStatusCounter ¶
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 (*JobMetrics) CreatedInc ¶
func (m *JobMetrics) CreatedInc()
func (*JobMetrics) DeletedInc ¶
func (m *JobMetrics) DeletedInc()
func (*JobMetrics) FailureInc ¶
func (m *JobMetrics) FailureInc()
func (*JobMetrics) FirstPodLaunchDelaySeconds ¶
func (*JobMetrics) RestartInc ¶
func (m *JobMetrics) RestartInc()
func (*JobMetrics) SuccessInc ¶
func (m *JobMetrics) SuccessInc()
Click to show internal directories.
Click to hide internal directories.