Documentation ¶
Index ¶
Constants ¶
View Source
const CustomMetrics = "custom_metrics"
CustomMetrics is the name of the field we add in the context.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics is a struct containing all custom prometheus metrics
func (*Metrics) AddCustomMetricsMiddleware ¶
func (m *Metrics) AddCustomMetricsMiddleware(next echo.HandlerFunc) echo.HandlerFunc
AddCustomMetricsMiddleware is the function to add the middleware in echo
func (*Metrics) IncAllFlag ¶
func (m *Metrics) IncAllFlag()
IncAllFlag increment the number call to AllFlag
func (*Metrics) IncCollectEvalData ¶ added in v1.7.0
IncCollectEvalData add new
func (*Metrics) IncFlagEvaluation ¶
IncFlagEvaluation increment the number of flag evaluations
func (*Metrics) MetricList ¶
func (m *Metrics) MetricList() []*prometheus.Metric
MetricList return the available metrics
Click to show internal directories.
Click to hide internal directories.