tgres: github.com/tgres/tgres/statsd Index | Files

package statsd

import "github.com/tgres/tgres/statsd"

Package statsd provides the statsd-like functionality.

Index

Package Files

statsd.go

Variables

var (
    Prefix string = "stats"
)

type Stat Uses

type Stat struct {
    Name   string
    Value  float64
    Metric string
    Sample float64
    Delta  bool
}

func ParseStatsdPacket Uses

func ParseStatsdPacket(packet string) (*Stat, error)

ParseStatsdPacket parses a statsd packet e.g: gorets:1|c|@0.1. See https://github.com/etsy/statsd/blob/master/docs/metric_types.md There is no need to support multi-metric packets here, since it uses newline as separator, the text handler in daemon/services.go would take care of it.

func (*Stat) AggregatorCmd Uses

func (st *Stat) AggregatorCmd() *aggregator.Command

Package statsd imports 5 packages (graph) and is imported by 4 packages. Updated 2017-01-10. Refresh now. Tools for package owners.