Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Framer ¶
type Framer struct {
// contains filtered or unexported fields
}
func NewFramer ¶
func NewFramer(sampler Sampler, labelTracker LabelTracker) *Framer
type LabelTracker ¶
type LabelTracker interface { Add(labels map[string]string) AddFields(fields []*data.Field) GetNames() []string }
func NewLabelTracker ¶
func NewLabelTracker() LabelTracker
type NoOpSampler ¶
type NoOpSampler struct {
// contains filtered or unexported fields
}
func (*NoOpSampler) Add ¶
func (e *NoOpSampler) Add(ex models.Exemplar)
func (*NoOpSampler) Reset ¶
func (e *NoOpSampler) Reset()
func (*NoOpSampler) Sample ¶
func (e *NoOpSampler) Sample() []models.Exemplar
func (*NoOpSampler) SetStep ¶
func (e *NoOpSampler) SetStep(time.Duration)
type Sampler ¶
type Sampler interface { Add(models.Exemplar) SetStep(time.Duration) Sample() []models.Exemplar Reset() }
func NewNoOpSampler ¶
func NewNoOpSampler() Sampler
func NewStandardDeviationSampler ¶
func NewStandardDeviationSampler() Sampler
type StandardDeviationSampler ¶
type StandardDeviationSampler struct {
// contains filtered or unexported fields
}
func (*StandardDeviationSampler) Add ¶
func (e *StandardDeviationSampler) Add(ex models.Exemplar)
func (*StandardDeviationSampler) Reset ¶
func (e *StandardDeviationSampler) Reset()
func (*StandardDeviationSampler) Sample ¶
func (e *StandardDeviationSampler) Sample() []models.Exemplar
func (*StandardDeviationSampler) SetStep ¶
func (e *StandardDeviationSampler) SetStep(step time.Duration)
Click to show internal directories.
Click to hide internal directories.