querier

package
v1.3.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: AGPL-3.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockStartKey = "blockStart"
	BlockEndKey   = "blockEnd"
	QueryModeKey  = "mode"

	QueryModeIngesters = "ingesters"
	QueryModeBlocks    = "blocks"
	QueryModeAll       = "all"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TraceLookupQueryTimeout time.Duration        `yaml:"query_timeout"`
	SearchQueryTimeout      time.Duration        `yaml:"search_query_timeout"`
	SearchExternalEndpoints []string             `yaml:"search_external_endpoints"`
	ExtraQueryDelay         time.Duration        `yaml:"extra_query_delay,omitempty"`
	MaxConcurrentQueries    int                  `yaml:"max_concurrent_queries"`
	Worker                  cortex_worker.Config `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(handler 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) SearchBlock added in v1.3.0

SearchBlock searches the specified subset of the block for the passed tags.

func (*Querier) SearchHandler added in v1.2.0

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

func (*Querier) SearchRecent added in v1.3.0

func (q *Querier) SearchRecent(ctx context.Context, req *tempopb.SearchRequest) (*tempopb.SearchResponse, error)

func (*Querier) SearchTagValues added in v1.2.0

func (*Querier) SearchTagValuesHandler added in v1.2.0

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

func (*Querier) SearchTags added in v1.2.0

func (*Querier) SearchTagsHandler added in v1.2.0

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

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