Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricSource ¶
func NewDBMonitorSource ¶
func NewDBMonitorSource(Db Db, monitor monitor.Monitor) []MetricSource
func NewUptimeSource ¶
func NewUptimeSource() MetricSource
type MetricsEmitter ¶
type MetricsEmitter struct {
// contains filtered or unexported fields
}
func NewMetricsEmitter ¶
func NewMetricsEmitter(logger lager.Logger, interval time.Duration, metrics ...MetricSource) *MetricsEmitter
func (*MetricsEmitter) EmitMetrics ¶
func (m *MetricsEmitter) EmitMetrics()
type MetricsSender ¶
type MetricsSender struct {
Logger lager.Logger
}
func (*MetricsSender) IncrementCounter ¶
func (ms *MetricsSender) IncrementCounter(name string)
func (*MetricsSender) SendDuration ¶
func (ms *MetricsSender) SendDuration(name string, duration time.Duration)
type NoOpMetricsSender ¶
type NoOpMetricsSender struct{}
func (*NoOpMetricsSender) IncrementCounter ¶
func (s *NoOpMetricsSender) IncrementCounter(string)
func (*NoOpMetricsSender) SendDuration ¶
func (s *NoOpMetricsSender) SendDuration(string, time.Duration)
Click to show internal directories.
Click to hide internal directories.