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 *pipelinev1.TaskRun) error
DurationAndCountDeleted counts deleted number and record duration for TaskRuns
Click to show internal directories.
Click to hide internal directories.