monitoring

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	RequeueCnt        *prometheus.CounterVec
	ReconciliationCnt *prometheus.CounterVec
	ReconciliationDur *prometheus.HistogramVec
	EnqueueCnt        *prometheus.CounterVec
	EnqueueDur        *prometheus.HistogramVec
	ErrCnt            *prometheus.CounterVec
	// contains filtered or unexported fields
}

func NewMetrics

func NewMetrics() *Metrics

func (*Metrics) Init

func (m *Metrics) Init(isUnitTest bool)

func (*Metrics) RecordEnqueueCnt

func (m *Metrics) RecordEnqueueCnt(target string)

func (*Metrics) RecordEnqueueDur

func (m *Metrics) RecordEnqueueDur(target string, elapsed float64)

func (*Metrics) RecordErrorCnt

func (m *Metrics) RecordErrorCnt(target string)

func (*Metrics) RecordReconciliationCnt

func (m *Metrics) RecordReconciliationCnt(target string)

func (*Metrics) RecordReconciliationDur

func (m *Metrics) RecordReconciliationDur(target string, elapsed float64)

func (*Metrics) RecordRequeueCnt

func (m *Metrics) RecordRequeueCnt(target string)

type MetricsI

type MetricsI interface {
	RecordRequeueCnt(target string)
	RecordReconciliationCnt(target string)
	RecordReconciliationDur(target string, elapsed float64)
	RecordEnqueueCnt(target string)
	RecordEnqueueDur(target string, elapsed float64)
	RecordErrorCnt(target string)
}

Jump to

Keyboard shortcuts

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