Documentation
¶
Index ¶
- func OpenTsStore(storagePath string) (*tsdb.Store, error)
- type InfluxAdapter
- func (t *InfluxAdapter) AllMeasurementNames() []string
- func (t *InfluxAdapter) AllTagKeys() []string
- func (t *InfluxAdapter) AllTagValues(tagKey string) []string
- func (t *InfluxAdapter) Close()
- func (t *InfluxAdapter) Delete(shardId uint64)
- func (t *InfluxAdapter) DeleteOlderThan(cutoff int64) (numDeleted uint64, err error)
- func (t *InfluxAdapter) DeleteOldest() error
- func (t *InfluxAdapter) GetPoints(measurementName string, start, end int64, matchers []*labels.Matcher) (*transform.SeriesSetBuilder, error)
- func (t *InfluxAdapter) ShardIDs() []uint64
- func (t *InfluxAdapter) WritePoints(points []*rpc.Point) error
- type InfluxStore
- type Metrics
- type MetricsInitializer
- type Store
- func (store *Store) Close()
- func (store *Store) DeleteOlderThan(cutoff time.Time)
- func (store *Store) DeleteOldest()
- func (store *Store) Get(params *storage.SelectParams, labelMatchers ...*labels.Matcher) (storage.SeriesSet, error)
- func (store *Store) LabelValues(req *rpc.PromQL_LabelValuesQueryRequest) (*rpc.PromQL_LabelValuesQueryResult, error)
- func (store *Store) Labels() (*rpc.PromQL_LabelsQueryResult, error)
- func (store *Store) Put(points []*rpc.Point)
- type WithStoreOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InfluxAdapter ¶
func NewInfluxAdapter ¶
func NewInfluxAdapter(influx InfluxStore, m MetricsInitializer) *InfluxAdapter
func (*InfluxAdapter) AllMeasurementNames ¶
func (t *InfluxAdapter) AllMeasurementNames() []string
func (*InfluxAdapter) AllTagKeys ¶
func (t *InfluxAdapter) AllTagKeys() []string
func (*InfluxAdapter) AllTagValues ¶
func (t *InfluxAdapter) AllTagValues(tagKey string) []string
func (*InfluxAdapter) Close ¶
func (t *InfluxAdapter) Close()
func (*InfluxAdapter) Delete ¶
func (t *InfluxAdapter) Delete(shardId uint64)
func (*InfluxAdapter) DeleteOlderThan ¶
func (t *InfluxAdapter) DeleteOlderThan(cutoff int64) (numDeleted uint64, err error)
func (*InfluxAdapter) DeleteOldest ¶
func (t *InfluxAdapter) DeleteOldest() error
func (*InfluxAdapter) GetPoints ¶
func (t *InfluxAdapter) GetPoints(measurementName string, start, end int64, matchers []*labels.Matcher) (*transform.SeriesSetBuilder, error)
func (*InfluxAdapter) ShardIDs ¶
func (t *InfluxAdapter) ShardIDs() []uint64
func (*InfluxAdapter) WritePoints ¶
func (t *InfluxAdapter) WritePoints(points []*rpc.Point) error
type InfluxStore ¶
type InfluxStore interface {
ShardIDs() []uint64
WriteToShard(shardId uint64, points []models.Point) error
CreateShard(database string, retentionPolicy string, shardId uint64, enabled bool) error
ShardGroup(shardIds []uint64) tsdb.ShardGroup
DeleteShard(shardId uint64) error
TagKeys(auth query.Authorizer, shardIDs []uint64, cond influxql.Expr) ([]tsdb.TagKeys, error)
TagValues(auth query.Authorizer, shardIDs []uint64, cond influxql.Expr) ([]tsdb.TagValues, error)
Close() error
}
type MetricsInitializer ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewStore ¶
func NewStore(influxStore InfluxStore, m MetricsInitializer, opts ...WithStoreOption) *Store
func (*Store) DeleteOlderThan ¶
func (*Store) DeleteOldest ¶
func (store *Store) DeleteOldest()
func (*Store) LabelValues ¶
func (store *Store) LabelValues(req *rpc.PromQL_LabelValuesQueryRequest) (*rpc.PromQL_LabelValuesQueryResult, error)
type WithStoreOption ¶
type WithStoreOption func(*Store)
func WithLabelTruncationLength ¶
func WithLabelTruncationLength(length uint) WithStoreOption
Click to show internal directories.
Click to hide internal directories.