metrics

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2016 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

Jump to

Keyboard shortcuts

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