Documentation ¶
Index ¶
- func Query[Req, Resp any](ctx context.Context, router *Router, req *connect.Request[Req], ...) (*connect.Response[Resp], error)
- type Config
- type Overrides
- type Router
- func (r *Router) AnalyzeQuery(ctx context.Context, req *connect.Request[querierv1.AnalyzeQueryRequest]) (*connect.Response[querierv1.AnalyzeQueryResponse], error)
- func (r *Router) Diff(ctx context.Context, c *connect.Request[querierv1.DiffRequest]) (*connect.Response[querierv1.DiffResponse], error)
- func (r *Router) GetProfileStats(ctx context.Context, c *connect.Request[typesv1.GetProfileStatsRequest]) (*connect.Response[typesv1.GetProfileStatsResponse], error)
- func (r *Router) LabelNames(ctx context.Context, c *connect.Request[typesv1.LabelNamesRequest]) (*connect.Response[typesv1.LabelNamesResponse], error)
- func (r *Router) LabelValues(ctx context.Context, c *connect.Request[typesv1.LabelValuesRequest]) (*connect.Response[typesv1.LabelValuesResponse], error)
- func (r *Router) ProfileTypes(ctx context.Context, c *connect.Request[querierv1.ProfileTypesRequest]) (*connect.Response[querierv1.ProfileTypesResponse], error)
- func (r *Router) SelectMergeProfile(ctx context.Context, c *connect.Request[querierv1.SelectMergeProfileRequest]) (*connect.Response[profilev1.Profile], error)
- func (r *Router) SelectMergeSpanProfile(ctx context.Context, ...) (*connect.Response[querierv1.SelectMergeSpanProfileResponse], error)
- func (r *Router) SelectMergeStacktraces(ctx context.Context, ...) (*connect.Response[querierv1.SelectMergeStacktracesResponse], error)
- func (r *Router) SelectSeries(ctx context.Context, c *connect.Request[querierv1.SelectSeriesRequest]) (*connect.Response[querierv1.SelectSeriesResponse], error)
- func (r *Router) Series(ctx context.Context, c *connect.Request[querierv1.SeriesRequest]) (*connect.Response[querierv1.SeriesResponse], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { EnableQueryBackend bool `yaml:"enable_query_backend" json:"enable_query_backend" doc:"hidden"` EnableQueryBackendFrom time.Time `yaml:"enable_query_backend_from" json:"enable_query_backend_from" doc:"hidden"` }
func (*Config) RegisterFlags ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router is a proxy that routes queries to the querier frontend or the backend querier service directly, bypassing the scheduler and querier services.
func NewRouter ¶
func NewRouter( logger log.Logger, overrides Overrides, frontend querierv1connect.QuerierServiceClient, backend querierv1connect.QuerierServiceClient, ) *Router
func (*Router) AnalyzeQuery ¶
func (*Router) GetProfileStats ¶
func (*Router) LabelNames ¶
func (*Router) LabelValues ¶
func (*Router) ProfileTypes ¶
func (*Router) SelectMergeProfile ¶
func (*Router) SelectMergeSpanProfile ¶
func (*Router) SelectMergeStacktraces ¶
func (*Router) SelectSeries ¶
Click to show internal directories.
Click to hide internal directories.