Documentation ¶
Index ¶
Constants ¶
const ( // ReasonCancelled indicates that a PipelineRun was cancelled. ReasonCancelled = "Cancelled" // Deprecated: "PipelineRunCancelled" indicates that a PipelineRun was cancelled. ReasonCancelledDeprecated = "PipelineRunCancelled" )
Variables ¶
This section is empty.
Functions ¶
func MetricsOnStore ¶
func MetricsOnStore(logger *zap.SugaredLogger) func(name string, value interface{})
func WithInformer ¶
Types ¶
type InformerKey ¶
type InformerKey struct{}
InformerKey is used for associating the Informer inside the context.Context.
type Recorder ¶
Recorder holds keys for Tekton metrics
func NewRecorder ¶
NewRecorder creates a new metrics recorder instance to log the PipelineRun related metrics
func (*Recorder) DurationAndCount ¶
func (r *Recorder) DurationAndCount(pr *v1beta1.PipelineRun) error
DurationAndCount logs the duration of PipelineRun execution and count for number of PipelineRuns succeed or failed returns an error if its failed to log the metrics
func (*Recorder) ReportRunningPipelineRuns ¶
func (r *Recorder) ReportRunningPipelineRuns(ctx context.Context, lister listers.PipelineRunLister)
ReportRunningPipelineRuns invokes RunningPipelineRuns on our configured PeriodSeconds until the context is cancelled.
func (*Recorder) RunningPipelineRuns ¶
func (r *Recorder) RunningPipelineRuns(lister listers.PipelineRunLister) error
RunningPipelineRuns logs the number of PipelineRuns running right now returns an error if its failed to log the metrics
type RecorderKey ¶
type RecorderKey struct{}
RecorderKey is used for associating the Recorder inside the context.Context.