Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Downsampler ¶
type Downsampler struct {
// contains filtered or unexported fields
}
func NewDownsampler ¶
func (*Downsampler) Start ¶
func (d *Downsampler) Start()
func (*Downsampler) Stop ¶
func (d *Downsampler) Stop()
type IndexDB ¶
type IndexDB interface {
// Query returns the ids of the series that match the given expression.
Query(expr model.LabelExpr) (ids []int, err error)
// Make gets the id of the series identified by the given fully-qualified
// metric. If the series does not exist, it is created and a new id is
// returned.
Make(metric model.Metric) (id int, err error)
// Lookup
Lookup(id int) (metric model.Metric, err error)
LookupMetric(metric model.Metric) (id int, err error)
LabelValues(name string) (values []string, err error)
// Close the database. No further operations must be attempted.
Close() error
}
IndexDB is used to map a time-series name to an integer and vice-versa. It can also return a list of ids that match a given label expression.
type LatestDB ¶
type LatestDB interface {
Put(seriesID int, metric model.Metric, timestamp uint64, value float64) error
Get(seriesID int) (metric model.Metric, timestamp uint64, value float64, err error)
Iterate(cb LatestDBProcessorFunc) error
Close() error
}
LatestDB stores the latest value for a metric (identified by an integer). The timestamp for the value is also stored, to support staleness feature.
type LatestDBProcessorFunc ¶
type Storer ¶
type Storer struct {
// contains filtered or unexported fields
}
func (*Storer) Downsample ¶
Click to show internal directories.
Click to hide internal directories.