Documentation ¶
Index ¶
- Constants
- func NewPrometheusNotifier(metricsService Metrics) notifier.Notifier
- type Metrics
- func (m *Metrics) IncAllFlag()
- func (m *Metrics) IncCollectEvalData(numberEvents float64)
- func (m *Metrics) IncFlagChange()
- func (m *Metrics) IncFlagCreated(flagName string)
- func (m *Metrics) IncFlagDeleted(flagName string)
- func (m *Metrics) IncFlagEvaluation(flagName string)
- func (m *Metrics) IncFlagUpdated(flagName string)
- func (m *Metrics) IncForceRefresh()
Constants ¶
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
Types ¶
type Metrics ¶
Metrics is a struct containing all custom prometheus metrics
func NewMetrics ¶
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
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
IncFlagCreated is incrementing the counters when a flag is created.
func (*Metrics) IncFlagDeleted ¶ added in v1.17.0
IncFlagDeleted is incrementing the counters when a flag is deleted.
func (*Metrics) IncFlagEvaluation ¶
func (*Metrics) IncFlagUpdated ¶ added in v1.17.0
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