metrics

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter struct {
	Config   *config.Params
	Logger   *logrus.Logger
	Registry gometrics.Registry
	// contains filtered or unexported fields
}

func (*Emitter) Close added in v0.0.5

func (m *Emitter) Close(printStats bool)

Any emmiter related clean up actions go here

func (*Emitter) IncrCounter added in v0.0.5

func (m *Emitter) IncrCounter(key []string, val float32)

Increment counter metric key = slice of strings that will be joined with "." to be used as the metric namespace val = float32 metric value

func (*Emitter) Init added in v0.0.5

func (m *Emitter) Init()

init sets up external and internal metric sinks.

func (*Emitter) MeasureRuntime added in v0.0.5

func (m *Emitter) MeasureRuntime(key []string, start time.Time)

Measure time elapsed since invocation

func (*Emitter) UpdateGauge added in v0.0.5

func (m *Emitter) UpdateGauge(key []string, val float32)

Set gauge metric key = slice of strings that will be joined with "." to be used as the metric namespace val = float32 metric value

type Metric added in v0.0.5

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

Jump to

Keyboard shortcuts

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