metrics

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 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

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

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) Run

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