metrics

package
v0.0.0-...-c49e6b2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDDClient

func NewDDClient(addr string) (*ddClient, error)

func NewNOOPClient

func NewNOOPClient() *noopClient

Types

type MetricsClient

type MetricsClient interface {
	GetAddr() string
	GetNamespace() string
	SetNamespace(string)
	GetTags() map[string]string
	SetTags(map[string]string)
	Init() error
	Gauge(name string, value float64, rate float64, tags map[string]string) error
	Count(name string, value int64, rate float64, tags map[string]string) error
	Histogram(name string, value float64, rate float64, tags map[string]string) error
	Decr(name string, rate float64, tags map[string]string) error
	Incr(name string, rate float64, tags map[string]string) error
	Set(name string, value string, rate float64, tags map[string]string) error
	Timing(name string, value time.Duration, rate float64, tags map[string]string) error
	TimingMS(name string, value float64, rate float64, tags map[string]string) error
}

func NewMetricsClient

func NewMetricsClient(addr string) (MetricsClient, error)

type ProcStats

type ProcStats struct {
	Timestamp     time.Time
	NumCPUs       int
	NumGoRoutines int
	MemStats      runtime.MemStats
	CPUTimes      cpu.TimesStat
	NumFDs        int32
	IOCounters    []net.IOCountersStat
}

func GetProcStats

func GetProcStats() *ProcStats

Jump to

Keyboard shortcuts

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