Documentation ¶
Index ¶
- Constants
- type StatsClient
- func (c *StatsClient) Close() error
- func (c *StatsClient) Count(name string, value int64, rate float64)
- func (c *StatsClient) CountWithCustomTags(name string, value int64, rate float64, t []string)
- func (c *StatsClient) Gauge(name string, value float64, rate float64)
- func (c *StatsClient) Histogram(name string, value float64, rate float64)
- func (c *StatsClient) Set(name string, value string, rate float64)
- func (c *StatsClient) SetLogger(logger io.Writer)
- func (c *StatsClient) Tags() []string
- func (c *StatsClient) Timing(name string, value time.Duration, rate float64)
- func (c *StatsClient) WithTags(tags ...string) pilosa.StatsClient
Constants ¶
View Source
const ( // Prefix is appended to each metric event name Prefix = "pilosa." // BufferLen Stats lient buffer size. BufferLen = 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatsClient ¶
type StatsClient struct {
// contains filtered or unexported fields
}
StatsClient represents a StatsD implementation of pilosa.StatsClient.
func NewStatsClient ¶
func NewStatsClient(host string) (*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, rate float64)
Count tracks the number of times something occurs per second.
func (*StatsClient) CountWithCustomTags ¶
func (c *StatsClient) CountWithCustomTags(name string, value int64, rate float64, t []string)
CountWithCustomTags tracks the number of times something occurs per second with custom tags.
func (*StatsClient) Gauge ¶
func (c *StatsClient) Gauge(name string, value float64, rate float64)
Gauge sets the value of a metric.
func (*StatsClient) Histogram ¶
func (c *StatsClient) Histogram(name string, value float64, rate float64)
Histogram tracks statistical distribution of a metric.
func (*StatsClient) Set ¶
func (c *StatsClient) Set(name string, value string, rate float64)
Set tracks number of unique elements.
func (*StatsClient) SetLogger ¶
func (c *StatsClient) SetLogger(logger io.Writer)
SetLogger has no logger
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, rate float64)
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.