taskrunmetrics

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricsOnStore

func MetricsOnStore(logger *zap.SugaredLogger) func(name string,
	value any)

MetricsOnStore returns a function that checks if metrics are configured for a config.Store, and registers it if so

Types

type Recorder

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

Recorder is used to actually record TaskRun metrics

func NewRecorder

func NewRecorder() *Recorder

NewRecorder creates a new metrics recorder instance to log the PipelineRun related metrics

func (*Recorder) DurationAndCountDeleted

func (r *Recorder) DurationAndCountDeleted(ctx context.Context, cfg *config.Metrics, tr *pipelinev1beta1.TaskRun) error

DurationAndCountDeleted counts deleted number and record duration for TaskRuns

Jump to

Keyboard shortcuts

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