metrics

package
v0.0.0-...-8789a92 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// WorkflowRunReconcileTimeHistogram report the reconciling time cost of workflow run controller with state transition recorded
	WorkflowRunReconcileTimeHistogram = prometheus.NewHistogramVec(prometheus.HistogramOpts{
		Name:        "workflowrun_reconcile_time_seconds",
		Help:        "workflow run reconcile duration distributions.",
		Buckets:     velametrics.FineGrainedBuckets,
		ConstLabels: prometheus.Labels{},
	}, []string{"begin_phase", "end_phase"})

	// GenerateTaskRunnersDurationHistogram report the generate task runners execution duration.
	GenerateTaskRunnersDurationHistogram = prometheus.NewHistogramVec(prometheus.HistogramOpts{
		Name:        "generate_task_runners_time_seconds",
		Help:        "generate task runners duration distributions.",
		Buckets:     velametrics.FineGrainedBuckets,
		ConstLabels: prometheus.Labels{},
	}, []string{"controller"})

	// WorkflowRunPhaseCounter report the number of workflow run phase
	WorkflowRunPhaseCounter = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "workflowrun_phase_number",
		Help: "workflow run phase number",
	}, []string{"phase"})

	// WorkflowRunFinishedTimeHistogram report the time for finished workflow run
	WorkflowRunFinishedTimeHistogram = prometheus.NewHistogramVec(prometheus.HistogramOpts{
		Name:        "workflowrun_finished_time_seconds",
		Help:        "workflow run finished time distributions.",
		Buckets:     velametrics.FineGrainedBuckets,
		ConstLabels: prometheus.Labels{},
	}, []string{"phase"})

	// WorkflowRunInitializedCounter report the workflow run initialize execute number.
	WorkflowRunInitializedCounter = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "workflowrun_initialized_num",
		Help: "workflow run initialize times",
	}, []string{})

	// WorkflowRunStepPhaseGauge report the number of workflow run step state
	WorkflowRunStepPhaseGauge = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "workflowrun_step_phase_number",
		Help: "workflow step phase number",
	}, []string{"step_type", "phase"})

	// WorkflowRunStepDurationHistogram report the step execution duration.
	WorkflowRunStepDurationHistogram = prometheus.NewHistogramVec(prometheus.HistogramOpts{
		Name:        "workflowrun_step_duration_ms",
		Help:        "workflow run step latency distributions.",
		Buckets:     velametrics.FineGrainedBuckets,
		ConstLabels: prometheus.Labels{},
	}, []string{"controller", "step_type"})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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