Documentation ¶
Index ¶
- Constants
- type Config
- type Querier
- func (q *Querier) CreateAndRegisterWorker(handler http.Handler) error
- func (q *Querier) FindSnapshotByID(ctx context.Context, req *deeppb.SnapshotByIDRequest, timeStart int64, ...) (*deeppb.SnapshotByIDResponse, error)
- func (q *Querier) RegisterSubservices(s ...services.Service) error
- func (q *Querier) SearchBlock(ctx context.Context, req *deeppb.SearchBlockRequest) (*deeppb.SearchResponse, error)
- func (q *Querier) SearchHandler(w http.ResponseWriter, r *http.Request)
- func (q *Querier) SearchRecent(ctx context.Context, req *deeppb.SearchRequest) (*deeppb.SearchResponse, error)
- func (q *Querier) SearchTagValues(ctx context.Context, req *deeppb.SearchTagValuesRequest) (*deeppb.SearchTagValuesResponse, error)
- func (q *Querier) SearchTagValuesHandler(w http.ResponseWriter, r *http.Request)
- func (q *Querier) SearchTagValuesV2(ctx context.Context, req *deeppb.SearchTagValuesRequest) (*deeppb.SearchTagValuesV2Response, error)
- func (q *Querier) SearchTagValuesV2Handler(w http.ResponseWriter, r *http.Request)
- func (q *Querier) SearchTags(ctx context.Context, req *deeppb.SearchTagsRequest) (*deeppb.SearchTagsResponse, error)
- func (q *Querier) SearchTagsHandler(w http.ResponseWriter, r *http.Request)
- func (q *Querier) SnapshotByIdHandler(w http.ResponseWriter, r *http.Request)
- type SearchConfig
- type SnapshotByIDConfig
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 { Search SearchConfig `yaml:"search"` SnapshotByIDConfig SnapshotByIDConfig `yaml:"snapshot_by_id"` ExtraQueryDelay time.Duration `yaml:"extra_query_delay,omitempty"` MaxConcurrentQueries int `yaml:"max_concurrent_queries"` Worker worker.Config `yaml:"frontend_worker"` QueryRelevantIngesters bool `yaml:"query_relevant_ingesters"` }
Config for a querier.
type Querier ¶
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 ¶
func (*Querier) FindSnapshotByID ¶
func (q *Querier) FindSnapshotByID(ctx context.Context, req *deeppb.SnapshotByIDRequest, timeStart int64, timeEnd int64) (*deeppb.SnapshotByIDResponse, error)
func (*Querier) RegisterSubservices ¶
func (*Querier) SearchBlock ¶
func (q *Querier) SearchBlock(ctx context.Context, req *deeppb.SearchBlockRequest) (*deeppb.SearchResponse, error)
SearchBlock searches the specified subset of the block for the passed tags.
func (*Querier) SearchHandler ¶
func (q *Querier) SearchHandler(w http.ResponseWriter, r *http.Request)
func (*Querier) SearchRecent ¶
func (q *Querier) SearchRecent(ctx context.Context, req *deeppb.SearchRequest) (*deeppb.SearchResponse, error)
func (*Querier) SearchTagValues ¶
func (q *Querier) SearchTagValues(ctx context.Context, req *deeppb.SearchTagValuesRequest) (*deeppb.SearchTagValuesResponse, error)
func (*Querier) SearchTagValuesHandler ¶
func (q *Querier) SearchTagValuesHandler(w http.ResponseWriter, r *http.Request)
func (*Querier) SearchTagValuesV2 ¶
func (q *Querier) SearchTagValuesV2(ctx context.Context, req *deeppb.SearchTagValuesRequest) (*deeppb.SearchTagValuesV2Response, error)
func (*Querier) SearchTagValuesV2Handler ¶
func (q *Querier) SearchTagValuesV2Handler(w http.ResponseWriter, r *http.Request)
func (*Querier) SearchTags ¶
func (q *Querier) SearchTags(ctx context.Context, req *deeppb.SearchTagsRequest) (*deeppb.SearchTagsResponse, error)
func (*Querier) SearchTagsHandler ¶
func (q *Querier) SearchTagsHandler(w http.ResponseWriter, r *http.Request)
func (*Querier) SnapshotByIdHandler ¶
func (q *Querier) SnapshotByIdHandler(w http.ResponseWriter, r *http.Request)
type SearchConfig ¶
type SnapshotByIDConfig ¶
Click to show internal directories.
Click to hide internal directories.