tgres: Index | Files

package statsd

import ""

Package statsd provides the statsd-like functionality.


Package Files



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 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.