metric

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const GOFFSubSystem = "gofeatureflag"

GOFFSubSystem is the name of the prefix we are using for all the metrics

Variables

This section is empty.

Functions

func NewPrometheusNotifier added in v1.17.0

func NewPrometheusNotifier(metricsService Metrics) notifier.Notifier

Types

type Metrics

type Metrics struct {
	Registry *prom.Registry
	// contains filtered or unexported fields
}

Metrics is a struct containing all custom prometheus metrics

func NewMetrics

func NewMetrics() (Metrics, error)

NewMetrics is the constructor for the custom metrics nolint:funlen

func (*Metrics) IncAllFlag

func (m *Metrics) IncAllFlag()

IncAllFlag increment the number call to AllFlag

func (*Metrics) IncCollectEvalData added in v1.7.0

func (m *Metrics) IncCollectEvalData(numberEvents float64)

IncCollectEvalData is collecting the number of events collected through the API.

func (*Metrics) IncFlagChange added in v1.17.0

func (m *Metrics) IncFlagChange()

IncFlagChange is incrementing the counters when a flag is created, updated or deleted.

func (*Metrics) IncFlagCreated added in v1.17.0

func (m *Metrics) IncFlagCreated(flagName string)

IncFlagCreated is incrementing the counters when a flag is created.

func (*Metrics) IncFlagDeleted added in v1.17.0

func (m *Metrics) IncFlagDeleted(flagName string)

IncFlagDeleted is incrementing the counters when a flag is deleted.

func (*Metrics) IncFlagEvaluation

func (m *Metrics) IncFlagEvaluation(flagName string)

func (*Metrics) IncFlagUpdated added in v1.17.0

func (m *Metrics) IncFlagUpdated(flagName string)

IncFlagUpdated is incrementing the counters when a flag is updated.

func (*Metrics) IncForceRefresh added in v1.28.0

func (m *Metrics) IncForceRefresh()

IncForceRefresh increment the number call to ForceRefresh

Jump to

Keyboard shortcuts

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