Documentation ¶
Overview ¶
Package fsd is a client library for accessing StatsD daemon. You can specify custom StatsD port via statsd flag
Index ¶
- func Count(name string, value float64)
- func CountL(name string, value float64, rate float64)
- func Gauge(name string, value float64)
- func Histogram(name string, value float64)
- func HistogramL(name string, value float64, rate float64)
- func InitWithDynamicConfig(client *etcd.Client, hostname string)
- func InitWithPrefixAndDynamicConfig(metricPrefix string, client *etcd.Client, hostname string)
- func InitWithPrefixAndStaticConfig(metricPrefix, addr string)
- func InitWithStaticConfig(addr string)
- func Set(name string, value float64)
- func Time(name string, lambda func())
- func TimeL(name string, rate float64, lambda func())
- func TimeSince(name string, start time.Time)
- func TimeSinceL(name string, start time.Time, rate float64)
- func Timer(name string, duration time.Duration)
- func TimerL(name string, duration time.Duration, rate float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HistogramL ¶
func InitWithDynamicConfig ¶
func InitWithPrefixAndStaticConfig ¶
func InitWithPrefixAndStaticConfig(metricPrefix, addr string)
func InitWithStaticConfig ¶
func InitWithStaticConfig(addr string)
func TimeSinceL ¶
TimeSince records a rated and named timer with the duration since start
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.