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) SetSink(newSink metrics.MetricSink)
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 is a temporary sink that caches metrics until a real sink is set in SetSink. it implements the metrics.MetricSink interface
func (*Sink) AddSampleWithLabels ¶
AddSampleWithLabels sends metrics to the real sink otherwise caches them
func (*Sink) IncrCounter ¶
IncrCounter defaults to IncrCounterWithLabels
func (*Sink) IncrCounterWithLabels ¶
IncrCounterWithLabels sends metrics to the real sink otherwise caches them
func (*Sink) SetGaugeWithLabels ¶
SetGaugeWithLabels sends metrics to the real sink otherwise caches them
Click to show internal directories.
Click to hide internal directories.