Documentation ¶
Index ¶
- Constants
- type StatsClient
- func (c *StatsClient) Close() error
- func (c *StatsClient) Count(name string, value int64)
- func (c *StatsClient) Gauge(name string, value float64)
- func (c *StatsClient) Histogram(name string, value float64)
- func (c *StatsClient) Set(name string, value string)
- func (c *StatsClient) Tags() []string
- func (c *StatsClient) Timing(name string, value time.Duration)
- func (c *StatsClient) WithTags(tags ...string) pilosa.StatsClient
Constants ¶
View Source
const ( // Rate represents a metric rate of 1/sec. Rate = 1 // Client buffer size. BufferLen = 256 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatsClient ¶
StatsClient represents a DataDog implementation of pilosa.StatsClient.
func NewStatsClient ¶
func NewStatsClient() (*StatsClient, error)
NewStatsClient returns a new instance of StatsClient.
func (*StatsClient) Close ¶
func (c *StatsClient) Close() error
Close closes the connection to the agent.
func (*StatsClient) Count ¶
func (c *StatsClient) Count(name string, value int64)
Count tracks the number of times something occurs per second.
func (*StatsClient) Gauge ¶
func (c *StatsClient) Gauge(name string, value float64)
Gauge sets the value of a metric.
func (*StatsClient) Histogram ¶
func (c *StatsClient) Histogram(name string, value float64)
Histogram tracks statistical distribution of a metric.
func (*StatsClient) Set ¶
func (c *StatsClient) Set(name string, value string)
Set tracks number of unique elements.
func (*StatsClient) Tags ¶
func (c *StatsClient) Tags() []string
Tags returns a sorted list of tags on the client.
func (*StatsClient) Timing ¶
func (c *StatsClient) Timing(name string, value time.Duration)
Timing tracks timing information for a metric.
func (*StatsClient) WithTags ¶
func (c *StatsClient) WithTags(tags ...string) pilosa.StatsClient
WithTags returns a new client with additional tags appended.
Click to show internal directories.
Click to hide internal directories.