metrics

package
v1.22.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

type Recorder struct {
	// contains filtered or unexported fields
}

Recorder records the canary analysis as Prometheus metrics

func NewRecorder

func NewRecorder(controller string, register bool) Recorder

NewRecorder creates a new recorder and registers the Prometheus metrics

func (*Recorder) SetAnalysis added in v1.20.0

func (cr *Recorder) SetAnalysis(cd *flaggerv1.Canary, metricTemplateName string, val float64)

func (*Recorder) SetDuration

func (cr *Recorder) SetDuration(cd *flaggerv1.Canary, duration time.Duration)

SetDuration sets the time spent in seconds performing canary analysis

func (*Recorder) SetInfo

func (cr *Recorder) SetInfo(version string, meshProvider string)

SetInfo sets the version and mesh provider labels

func (*Recorder) SetStatus

func (cr *Recorder) SetStatus(cd *flaggerv1.Canary, phase flaggerv1.CanaryPhase)

SetStatus sets the last known canary analysis status

func (*Recorder) SetTotal

func (cr *Recorder) SetTotal(namespace string, total int)

SetTotal sets the total number of canaries per namespace

func (*Recorder) SetWeight

func (cr *Recorder) SetWeight(cd *flaggerv1.Canary, primary int, canary int)

SetWeight sets the weight values for primary and canary destinations

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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