statsd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2016 License: MIT Imports: 3 Imported by: 0

README

Statsd client

The statsd client is a wrapper around the statsd client.

It takes an AppStat and goes through the stats to put them in statsd.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*sd.Client
}

Client is an extension on the statsd client which implements a Collect method which is compatible with the collector.

func New

func New(opts ...sd.Option) (*Client, error)

New creates a new statsd compatible client for the stats collector.

func (*Client) Collect

func (s *Client) Collect(stats stats.AppStat)

Collect will take an AppStat and put the data into statsd metrics. All the metrics will be prefixed with `appstat`.

Jump to

Keyboard shortcuts

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