querier

package
v3.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2025 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled     bool                  `yaml:"enabled" doc:"description=Enable the dataobj querier."`
	From        storageconfig.DayTime `` /* 158-byte string literal not displayed */
	ShardFactor int                   `yaml:"shard_factor" doc:"description=The number of shards to use for the dataobj querier."`
}

func (*Config) PeriodConfig

func (c *Config) PeriodConfig() config.PeriodConfig

func (*Config) RegisterFlags

func (c *Config) RegisterFlags(f *flag.FlagSet)

func (*Config) Validate

func (c *Config) Validate() error

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store implements querier.Store for querying data objects.

func NewStore

func NewStore(bucket objstore.Bucket, logger log.Logger, metastore metastore.Metastore) *Store

NewStore creates a new Store.

func (*Store) GetShards

GetShards implements querier.Store

func (*Store) LabelNamesForMetricName

func (s *Store) LabelNamesForMetricName(ctx context.Context, _ string, from, through model.Time, _ string, matchers ...*labels.Matcher) ([]string, error)

LabelNamesForMetricName implements querier.Store

func (*Store) LabelValuesForMetricName

func (s *Store) LabelValuesForMetricName(ctx context.Context, _ string, from, through model.Time, _ string, labelName string, matchers ...*labels.Matcher) ([]string, error)

LabelValuesForMetricName implements querier.Store

func (*Store) SelectLogs

func (s *Store) SelectLogs(ctx context.Context, req logql.SelectLogParams) (iter.EntryIterator, error)

SelectLogs implements querier.Store

func (*Store) SelectSamples

func (s *Store) SelectSamples(ctx context.Context, req logql.SelectSampleParams) (iter.SampleIterator, error)

SelectSamples implements querier.Store

func (*Store) SelectSeries

func (s *Store) SelectSeries(ctx context.Context, req logql.SelectLogParams) ([]logproto.SeriesIdentifier, error)

SelectSeries implements querier.Store

func (*Store) Stats

func (s *Store) Stats(_ context.Context, _ string, _ model.Time, _ model.Time, _ ...*labels.Matcher) (*stats.Stats, error)

Stats implements querier.Store

func (*Store) String

func (s *Store) String() string

func (*Store) Volume

func (s *Store) Volume(_ context.Context, _ string, _ model.Time, _ model.Time, _ int32, _ []string, _ string, _ ...*labels.Matcher) (*logproto.VolumeResponse, error)

Volume implements querier.Store

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL