metrics

package
v0.0.0-...-b29f263 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCounter

func AddCounter(name string) uint32

Registers a counter and returns an ID that can be used to access it There is a maximum of 1024 metrics, after which adding a new one will panic

func AddHistogram

func AddHistogram(name string, sampled bool) uint32

func IncCounter

func IncCounter(id uint32)

func IncCounterBy

func IncCounterBy(id uint32, amount uint64)

func ObserveHist

func ObserveHist(id uint32, value uint64)

func SetPrefix

func SetPrefix(p string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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