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 PipelineRun 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, pr *pipelinev1.PipelineRun) error
DurationAndCountDeleted counts for deleted number and records duration PipelineRuns
Click to show internal directories.
Click to hide internal directories.