Documentation ¶
Index ¶
- type Client
- type MetricScopes
- type ScopedClient
- func (s *ScopedClient) Count(name string, value int64, tags []string, rate float64) error
- func (s *ScopedClient) Gauge(name string, value float64, tags []string, rate float64) error
- func (s *ScopedClient) Histogram(name string, value float64, tags []string, rate float64) error
- func (s *ScopedClient) Incr(name string, tags []string, rate float64) error
- func (s *ScopedClient) TimeInMilliseconds(name string, value float64, tags []string, rate float64) error
- func (s *ScopedClient) Timing(name string, value time.Duration, tags []string, rate float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Gauge(name string, value float64, tags []string, rate float64) error Count(name string, value int64, tags []string, rate float64) error Incr(name string, tags []string, rate float64) error Histogram(name string, value float64, tags []string, rate float64) error TimeInMilliseconds(name string, value float64, tags []string, rate float64) error Timing(name string, value time.Duration, tags []string, rate float64) error }
StatsdClient represents the statsd client functions that veneur's SSF sinks call (so as not to write-amplify by reporting its own metrics).
type MetricScopes ¶
type MetricScopes struct { Gauge ssf.SSFSample_Scope Count ssf.SSFSample_Scope Histogram ssf.SSFSample_Scope }
MetricScopes holds the scopes that are configured for each metric type.
type ScopedClient ¶
type ScopedClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(inner *statsd.Client, addTags []string, scopes MetricScopes) *ScopedClient
func (*ScopedClient) Incr ¶
func (s *ScopedClient) Incr(name string, tags []string, rate float64) error
func (*ScopedClient) TimeInMilliseconds ¶
Click to show internal directories.
Click to hide internal directories.