Versions in this module Expand all Collapse all v0 v0.12.0 Sep 18, 2019 Changes in this version + func Clear() + func NewDevnull() + func NewGraphite(prefix, addr string, interval, bufferSize int, timeout time.Duration) + func WriteFloat64(buf, prefix, key []byte, val float64, now time.Time) []byte + func WriteInt32(buf, prefix, key []byte, val int32, now time.Time) []byte + func WriteUint32(buf, prefix, key []byte, val uint32, now time.Time) []byte + func WriteUint64(buf, prefix, key []byte, val uint64, now time.Time) []byte + type Bool struct + func NewBool(name string) *Bool + func (b *Bool) Peek() bool + func (b *Bool) ReportGraphite(prefix, buf []byte, now time.Time) []byte + func (b *Bool) Set(val bool) + func (b *Bool) SetFalse() + func (b *Bool) SetTrue() + type Counter32 struct + func NewCounter32(name string) *Counter32 + func (c *Counter32) Add(val int) + func (c *Counter32) AddUint32(val uint32) + func (c *Counter32) Inc() + func (c *Counter32) Peek() uint32 + func (c *Counter32) ReportGraphite(prefix, buf []byte, now time.Time) []byte + func (c *Counter32) SetUint32(val uint32) + type Counter64 struct + func NewCounter64(name string) *Counter64 + func (c *Counter64) AddUint64(val uint64) + func (c *Counter64) Inc() + func (c *Counter64) ReportGraphite(prefix, buf []byte, now time.Time) []byte + func (c *Counter64) SetUint64(val uint64) + type CounterRate32 struct + func NewCounterRate32(name string) *CounterRate32 + func (c *CounterRate32) Add(val int) + func (c *CounterRate32) AddUint32(val uint32) + func (c *CounterRate32) Inc() + func (c *CounterRate32) Peek() uint32 + func (c *CounterRate32) ReportGraphite(prefix, buf []byte, now time.Time) []byte + func (c *CounterRate32) SetUint32(val uint32) + type Gauge32 struct + func NewGauge32(name string) *Gauge32 + func (g *Gauge32) Add(val int) + func (g *Gauge32) AddUint32(val uint32) + func (g *Gauge32) Dec() + func (g *Gauge32) DecUint32(val uint32) + func (g *Gauge32) Inc() + func (g *Gauge32) ReportGraphite(prefix, buf []byte, now time.Time) []byte + func (g *Gauge32) Set(val int) + func (g *Gauge32) SetUint32(val uint32) + type Gauge64 uint64 + func NewGauge64(name string) *Gauge64 + func (g *Gauge64) Add(val int) + func (g *Gauge64) AddUint64(val uint64) + func (g *Gauge64) Dec() + func (g *Gauge64) DecUint64(val uint64) + func (g *Gauge64) Inc() + func (g *Gauge64) Peek() uint64 + func (g *Gauge64) ReportGraphite(prefix, buf []byte, now time.Time) []byte + func (g *Gauge64) Set(val int) + func (g *Gauge64) SetUint64(val uint64) + type Graphite struct + type GraphiteMetric interface + ReportGraphite func(prefix []byte, buf []byte, now time.Time) []byte + type Kafka map[int32]*KafkaPartition + func NewKafka(prefix string, partitions []int32) Kafka + type KafkaPartition struct + Lag Gauge64 + LogSize Gauge64 + Offset Gauge64 + func NewKafkaPartition(prefix string) *KafkaPartition + type LatencyHistogram12h32 struct + func NewLatencyHistogram12h32(name string) *LatencyHistogram12h32 + func (l *LatencyHistogram12h32) ReportGraphite(prefix, buf []byte, now time.Time) []byte + func (l *LatencyHistogram12h32) Value(t time.Duration) + type LatencyHistogram15s32 struct + func NewLatencyHistogram15s32(name string) *LatencyHistogram15s32 + func (l *LatencyHistogram15s32) ReportGraphite(prefix, buf []byte, now time.Time) []byte + func (l *LatencyHistogram15s32) Value(t time.Duration) + type MemoryReporter struct + func NewMemoryReporter() *MemoryReporter + func (m *MemoryReporter) ReportGraphite(prefix, buf []byte, now time.Time) []byte + type Meter32 struct + func NewMeter32(name string, approx bool) *Meter32 + func (m *Meter32) ReportGraphite(prefix, buf []byte, now time.Time) []byte + func (m *Meter32) Value(val int) + func (m *Meter32) ValueUint32(val uint32) + func (m *Meter32) Values(val, num int) + func (m *Meter32) ValuesUint32(val, num uint32) + type ProcessReporter struct + func NewProcessReporter() (*ProcessReporter, error) + func (m *ProcessReporter) ReportGraphite(prefix, buf []byte, now time.Time) []byte + type Range32 struct + func NewRange32(name string) *Range32 + func (r *Range32) ReportGraphite(prefix, buf []byte, now time.Time) []byte + func (r *Range32) Value(val int) + func (r *Range32) ValueUint32(val uint32) + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Clear() + type TimeDiffReporter32 struct + func NewTimeDiffReporter32(name string, target uint32) *TimeDiffReporter32 + func (g *TimeDiffReporter32) ReportGraphite(prefix, buf []byte, now time.Time) []byte + func (g *TimeDiffReporter32) Set(target uint32)