querier

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TraceIDVar        = "traceID"
	BlockStartKey     = "blockStart"
	BlockEndKey       = "blockEnd"
	QueryIngestersKey = "queryIngesters"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	QueryTimeout         time.Duration                `yaml:"query_timeout"`
	ExtraQueryDelay      time.Duration                `yaml:"extra_query_delay,omitempty"`
	MaxConcurrentQueries int                          `yaml:"max_concurrent_queries"`
	Worker               cortex_frontend.WorkerConfig `yaml:"frontend_worker"`
}

Config for a querier.

func (*Config) RegisterFlagsAndApplyDefaults

func (cfg *Config) RegisterFlagsAndApplyDefaults(prefix string, f *flag.FlagSet)

RegisterFlagsAndApplyDefaults register flags.

type Querier

type Querier struct {
	services.Service
	// contains filtered or unexported fields
}

Querier handlers queries.

func New

func New(cfg Config, clientCfg ingester_client.Config, ring ring.ReadRing, store storage.Store, limits *overrides.Overrides) (*Querier, error)

New makes a new Querier.

func (*Querier) CreateAndRegisterWorker added in v0.5.0

func (q *Querier) CreateAndRegisterWorker(tracesHandler http.Handler) error

func (*Querier) FindTraceByID

FindTraceByID implements tempopb.Querier.

func (*Querier) RegisterSubservices added in v0.5.0

func (q *Querier) RegisterSubservices(s ...services.Service) error

func (*Querier) TraceByIDHandler

func (q *Querier) TraceByIDHandler(w http.ResponseWriter, r *http.Request)

TraceByIDHandler is a http.HandlerFunc to retrieve traces

Jump to

Keyboard shortcuts

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