Documentation ¶
Index ¶
- func AddMetricsTransportWrapper(ctx context.Context, config *rest.Config) *rest.Config
- func IsValidMetricName(name string) bool
- func ValidateMetricLabels(metrics map[string]string) error
- func ValidateMetricValues(metric *wfv1.Prometheus) error
- type Callbacks
- type ErrorCause
- type IsLeaderCallback
- type MetricWorkflowPhase
- type Metrics
- func (m *Metrics) ChangePodPending(ctx context.Context, reason, namespace string)
- func (m *Metrics) ChangePodPhase(ctx context.Context, phase, namespace string)
- func (m *Metrics) ChangeWorkflowPhase(ctx context.Context, phase MetricWorkflowPhase, namespace string)
- func (m *Metrics) CountWorkflowTemplate(ctx context.Context, phase MetricWorkflowPhase, name, namespace string, ...)
- func (m *Metrics) CronWfPolicy(ctx context.Context, name, namespace string, policy wfv1.ConcurrencyPolicy)
- func (m *Metrics) CronWfTrigger(ctx context.Context, name, namespace string)
- func (m *Metrics) CronWorkflowSpecError(ctx context.Context)
- func (m *Metrics) CronWorkflowSubmissionError(ctx context.Context)
- func (m *Metrics) CustomMetricExists(key string) bool
- func (m *Metrics) GetCustomMetric(key string) *telemetry.Instrument
- func (m *Metrics) NewAddsMetric(name string) workqueue.CounterMetric
- func (m *Metrics) NewDepthMetric(name string) workqueue.GaugeMetric
- func (m *Metrics) NewLatencyMetric(name string) workqueue.HistogramMetric
- func (m *Metrics) NewLongestRunningProcessorSecondsMetric(name string) workqueue.SettableGaugeMetric
- func (m *Metrics) NewRetriesMetric(name string) workqueue.CounterMetric
- func (m *Metrics) NewUnfinishedWorkSecondsMetric(name string) workqueue.SettableGaugeMetric
- func (m *Metrics) NewWorkDurationMetric(name string) workqueue.HistogramMetric
- func (m *Metrics) OperationCompleted(ctx context.Context, durationSeconds float64)
- func (m *Metrics) OperationPanic(ctx context.Context)
- func (m *Metrics) PodMissingEnsure(ctx context.Context, recentlyStarted bool, phase string)
- func (m *Metrics) PodMissingInc(ctx context.Context, recentlyStarted bool, phase string)
- func (m *Metrics) RateLimiterWithBusyWorkers(ctx context.Context, workQueue workqueue.RateLimiter, queueName string) workqueue.RateLimitingInterface
- func (m *Metrics) RecordWorkflowTemplateTime(ctx context.Context, duration time.Duration, name, namespace string, ...)
- func (m *Metrics) StopRealtimeMetricsForWfUID(key string)
- func (m *Metrics) UpsertCustomMetric(ctx context.Context, metricSpec *wfv1.Prometheus, ownerKey string, ...) error
- type PodPhaseCallback
- type RealTimeValueFunc
- type WorkflowConditionCallback
- type WorkflowPhaseCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidMetricName ¶
func ValidateMetricLabels ¶
func ValidateMetricValues ¶ added in v3.3.0
func ValidateMetricValues(metric *wfv1.Prometheus) error
Types ¶
type Callbacks ¶ added in v3.6.0
type Callbacks struct { PodPhase PodPhaseCallback WorkflowPhase WorkflowPhaseCallback WorkflowCondition WorkflowConditionCallback IsLeader IsLeaderCallback }
type ErrorCause ¶
type ErrorCause string
const ( ErrorCauseOperationPanic ErrorCause = "OperationPanic" ErrorCauseCronWorkflowSubmissionError ErrorCause = "CronWorkflowSubmissionError" ErrorCauseCronWorkflowSpecError ErrorCause = "CronWorkflowSpecError" )
type IsLeaderCallback ¶ added in v3.6.0
type IsLeaderCallback func() bool
type MetricWorkflowPhase ¶ added in v3.6.0
type MetricWorkflowPhase string
const ( WorkflowUnknown MetricWorkflowPhase = MetricWorkflowPhase(wfv1.WorkflowUnknown) WorkflowPending MetricWorkflowPhase = MetricWorkflowPhase(wfv1.WorkflowPending) WorkflowRunning MetricWorkflowPhase = MetricWorkflowPhase(wfv1.WorkflowRunning) WorkflowSucceeded MetricWorkflowPhase = MetricWorkflowPhase(wfv1.WorkflowSucceeded) WorkflowFailed MetricWorkflowPhase = MetricWorkflowPhase(wfv1.WorkflowFailed) WorkflowError MetricWorkflowPhase = MetricWorkflowPhase(wfv1.WorkflowError) WorkflowNew MetricWorkflowPhase = "New" )
func ConvertWorkflowPhase ¶ added in v3.6.0
func ConvertWorkflowPhase(inPhase wfv1.WorkflowPhase) MetricWorkflowPhase
type Metrics ¶
func CreateDefaultTestMetrics ¶ added in v3.6.0
func CreateDefaultTestMetrics() (*Metrics, *telemetry.TestMetricsExporter, error)
CreateDefaultTestMetrics creates a boring testExporter enabled metrics, suitable for many tests
func (*Metrics) ChangePodPending ¶ added in v3.6.0
func (*Metrics) ChangePodPhase ¶ added in v3.6.0
func (*Metrics) ChangeWorkflowPhase ¶ added in v3.6.0
func (m *Metrics) ChangeWorkflowPhase(ctx context.Context, phase MetricWorkflowPhase, namespace string)
func (*Metrics) CountWorkflowTemplate ¶ added in v3.6.0
func (*Metrics) CronWfPolicy ¶ added in v3.6.0
func (*Metrics) CronWfTrigger ¶ added in v3.6.0
func (*Metrics) CronWorkflowSpecError ¶ added in v3.2.0
func (*Metrics) CronWorkflowSubmissionError ¶
func (*Metrics) CustomMetricExists ¶ added in v3.6.0
CustomMetricExists returns if metric exists from its key This is exported for testing only
func (*Metrics) GetCustomMetric ¶
func (m *Metrics) GetCustomMetric(key string) *telemetry.Instrument
GetCustomMetric returns a custom (or any) metric from it's key This is exported for legacy testing only
func (*Metrics) NewAddsMetric ¶
func (m *Metrics) NewAddsMetric(name string) workqueue.CounterMetric
func (*Metrics) NewDepthMetric ¶
func (m *Metrics) NewDepthMetric(name string) workqueue.GaugeMetric
func (*Metrics) NewLatencyMetric ¶
func (m *Metrics) NewLatencyMetric(name string) workqueue.HistogramMetric
func (*Metrics) NewLongestRunningProcessorSecondsMetric ¶
func (m *Metrics) NewLongestRunningProcessorSecondsMetric(name string) workqueue.SettableGaugeMetric
func (*Metrics) NewRetriesMetric ¶
func (m *Metrics) NewRetriesMetric(name string) workqueue.CounterMetric
func (*Metrics) NewUnfinishedWorkSecondsMetric ¶
func (m *Metrics) NewUnfinishedWorkSecondsMetric(name string) workqueue.SettableGaugeMetric
func (*Metrics) NewWorkDurationMetric ¶
func (m *Metrics) NewWorkDurationMetric(name string) workqueue.HistogramMetric
func (*Metrics) OperationCompleted ¶
func (*Metrics) OperationPanic ¶
func (*Metrics) PodMissingEnsure ¶ added in v3.6.0
func (*Metrics) PodMissingInc ¶ added in v3.6.0
func (*Metrics) RateLimiterWithBusyWorkers ¶
func (m *Metrics) RateLimiterWithBusyWorkers(ctx context.Context, workQueue workqueue.RateLimiter, queueName string) workqueue.RateLimitingInterface
func (*Metrics) RecordWorkflowTemplateTime ¶ added in v3.6.0
func (*Metrics) StopRealtimeMetricsForWfUID ¶ added in v3.6.0
func (*Metrics) UpsertCustomMetric ¶
func (m *Metrics) UpsertCustomMetric(ctx context.Context, metricSpec *wfv1.Prometheus, ownerKey string, valueFunc RealTimeValueFunc) error
type PodPhaseCallback ¶ added in v3.6.0
PodPhaseCallback is the function prototype to provide this gauge with the phase of the pods
type RealTimeValueFunc ¶ added in v3.6.0
type RealTimeValueFunc func() float64
type WorkflowConditionCallback ¶ added in v3.6.0
WorkflowConditionCallback is the function prototype to provide this gauge with the condition of the workflows
type WorkflowPhaseCallback ¶ added in v3.6.0
WorkflowPhaseCallback is the function prototype to provide this gauge with the phase of the pods
Source Files ¶
- callbacks.go
- counter_cronworkflow_policy.go
- counter_cronworkflow_trigger.go
- counter_error.go
- counter_log.go
- counter_pod_missing.go
- counter_pod_pending.go
- counter_pod_phase.go
- counter_template.go
- counter_workflow_phase.go
- gauge_pod_phase.go
- gauge_workflow_condition.go
- gauge_workflow_phase.go
- histogram_durations.go
- histogram_template.go
- leader.go
- metrics.go
- metrics_custom.go
- metrics_k8s_request.go
- test_helpers.go
- util.go
- work_queue.go
Click to show internal directories.
Click to hide internal directories.