Documentation

Overview

    Package statsd provides the statsd-like functionality.

    Index

    Constants

    This section is empty.

    Variables

    View Source
    var (
    	Prefix string = "stats"
    )

    Functions

    This section is empty.

    Types

    type Stat

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

    func ParseStatsdPacket

    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

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

      Source Files