fsd

package module
v0.0.0-...-3885cc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2015 License: Apache-2.0 Imports: 8 Imported by: 1

README

fsd

Func based statsd client for golang, which returns more or less directly via using a buffered channel and reconnection establishment in case of failure of udp sending

Documentation

Overview

Package fsd is a client library for accessing StatsD daemon. You can specify custom StatsD port via statsd flag

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(name string, value float64)

Increment the page.views counter. page.views:1|c

func CountL

func CountL(name string, value float64, rate float64)

func Gauge

func Gauge(name string, value float64)

Record the fuel tank is half-empty fuel.level:0.5|g

func Histogram

func Histogram(name string, value float64)

func HistogramL

func HistogramL(name string, value float64, rate float64)

func InitWithDynamicConfig

func InitWithDynamicConfig(client *etcd.Client, hostname string)

func InitWithPrefixAndDynamicConfig

func InitWithPrefixAndDynamicConfig(metricPrefix string, client *etcd.Client, hostname string)

func InitWithPrefixAndStaticConfig

func InitWithPrefixAndStaticConfig(metricPrefix, addr string)

func InitWithStaticConfig

func InitWithStaticConfig(addr string)

func Set

func Set(name string, value float64)

Track a unique visitor id to the site. users.uniques:1234|s

func Time

func Time(name string, lambda func())

func TimeL

func TimeL(name string, rate float64, lambda func())

func TimeSince

func TimeSince(name string, start time.Time)

TimeSince records a named timer with the duration since start

func TimeSinceL

func TimeSinceL(name string, start time.Time, rate float64)

TimeSince records a rated and named timer with the duration since start

func Timer

func Timer(name string, duration time.Duration)

A request latency request.latency:320|ms Or a payload of a image image.size:2.3|ms

func TimerL

func TimerL(name string, duration time.Duration, rate float64)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL