metrics

package
v0.0.0-...-3651c1b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NOP = nopMetrics{}

Functions

This section is empty.

Types

type Metrics

type Metrics interface {
	IncCounter(name string)
	SetGauge(name string, value int)
}

func New

func New(cfg *config.ConfigMetrics) Metrics

func NopMetrics

func NopMetrics() Metrics

type UdpMetrics

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

func NewUdpMetrics

func NewUdpMetrics(addr, prefix string) (*UdpMetrics, error)

func (*UdpMetrics) IncCounter

func (s *UdpMetrics) IncCounter(name string)

func (*UdpMetrics) SetGauge

func (s *UdpMetrics) SetGauge(name string, value int)

Jump to

Keyboard shortcuts

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