Documentation ¶
Index ¶
- type Sink
- func (s *Sink) AddSample(key []string, val float32)
- func (s *Sink) AddSampleWithLabels(key []string, val float32, labels []metrics.Label)
- func (s *Sink) EmitKey(key []string, val float32)
- func (s *Sink) IncrCounter(key []string, val float32)
- func (s *Sink) IncrCounterWithLabels(key []string, val float32, labels []metrics.Label)
- func (s *Sink) SetGauge(key []string, val float32)
- func (s *Sink) SetGaugeWithLabels(key []string, val float32, labels []metrics.Label)
- func (s *Sink) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
Sink provides a MetricSink that can be used with a statsite or statsd metrics server. It uses only UDP packets, while StatsiteSink uses TCP.
func (*Sink) AddSampleWithLabels ¶
AddSampleWithLabels adds a sample metrics with labels
func (*Sink) IncrCounter ¶
IncrCounter increases the value of a counter by a given value
func (*Sink) IncrCounterWithLabels ¶
IncrCounterWithLabels increases the value of a counter by a given value with labels
func (*Sink) SetGaugeWithLabels ¶
SetGaugeWithLabels sets a value on a gauge with labels
Click to show internal directories.
Click to hide internal directories.