metrics

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricSource added in v0.3.0

type MetricSource struct {
	Name   string
	Unit   string
	Getter func() (float64, error)
}

func NewUptimeSource added in v0.3.0

func NewUptimeSource() MetricSource

type MetricsEmitter added in v0.3.0

type MetricsEmitter struct {
	// contains filtered or unexported fields
}

func NewMetricsEmitter added in v0.3.0

func NewMetricsEmitter(logger lager.Logger, interval time.Duration, metrics ...MetricSource) *MetricsEmitter

func (*MetricsEmitter) EmitMetrics added in v0.5.0

func (m *MetricsEmitter) EmitMetrics()

func (*MetricsEmitter) Run added in v0.3.0

func (m *MetricsEmitter) Run(signals <-chan os.Signal, ready chan<- struct{}) error

type MetricsSender added in v0.17.0

type MetricsSender struct {
	Logger lager.Logger
}

func (*MetricsSender) IncrementCounter added in v0.17.0

func (ms *MetricsSender) IncrementCounter(name string)

func (*MetricsSender) SendDuration added in v0.17.0

func (ms *MetricsSender) SendDuration(name string, duration time.Duration)

Jump to

Keyboard shortcuts

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