Versions in this module Expand all Collapse all v1 v1.3.1 Mar 29, 2024 v1.3.0 Aug 31, 2023 Changes in this version + func ParseSelectedMetrics(wantedMetrics string) []string + func RegisterCounter(id string, varType utils.CounterType) utils.Counter + func RegisterFunc(id string, callerFunc MonitorFunc) + type Metrics struct + CallerFuncs map[string]MonitorFunc + Counters map[string][]utils.Counter + func (m *Metrics) RegisterCounter(id string, varType utils.CounterType) utils.Counter + func (m *Metrics) RegisterFunc(id string, mFunc MonitorFunc) + func (m *Metrics) Start() + func (m *Metrics) Stop() error + type Monitor interface + RegisterCounter func(string, utils.CounterType) utils.Counter + RegisterFunc func(string, MonitorFunc) + Start func() + Stop func() error + func NewMetricsMonitor(logger lager.Logger, interval time.Duration, writer eventwriter.Writer, ...) Monitor + func NewNoMonitor() Monitor + type MonitorFunc func() interface + type NoMonitor struct + func (nm *NoMonitor) RegisterCounter(id string, varType utils.CounterType) utils.Counter + func (nm *NoMonitor) RegisterFunc(id string, caller MonitorFunc) + func (nm *NoMonitor) Start() + func (nm *NoMonitor) Stop() error