Documentation ¶
Index ¶
- Constants
- func NewIngesterServiceHandler(svc IngesterServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func RegisterIngesterServiceHandler(mux *mux.Router, svc IngesterServiceHandler, opts ...connect.HandlerOption)
- type IngesterServiceClient
- type IngesterServiceHandler
- type UnimplementedIngesterServiceHandler
- func (UnimplementedIngesterServiceHandler) BlockMetadata(context.Context, *connect.Request[v1.BlockMetadataRequest]) (*connect.Response[v1.BlockMetadataResponse], error)
- func (UnimplementedIngesterServiceHandler) Flush(context.Context, *connect.Request[v1.FlushRequest]) (*connect.Response[v1.FlushResponse], error)
- func (UnimplementedIngesterServiceHandler) GetBlockStats(context.Context, *connect.Request[v1.GetBlockStatsRequest]) (*connect.Response[v1.GetBlockStatsResponse], error)
- func (UnimplementedIngesterServiceHandler) GetProfileStats(context.Context, *connect.Request[v12.GetProfileStatsRequest]) (*connect.Response[v12.GetProfileStatsResponse], error)
- func (UnimplementedIngesterServiceHandler) LabelNames(context.Context, *connect.Request[v12.LabelNamesRequest]) (*connect.Response[v12.LabelNamesResponse], error)
- func (UnimplementedIngesterServiceHandler) LabelValues(context.Context, *connect.Request[v12.LabelValuesRequest]) (*connect.Response[v12.LabelValuesResponse], error)
- func (UnimplementedIngesterServiceHandler) MergeProfilesLabels(context.Context, ...) error
- func (UnimplementedIngesterServiceHandler) MergeProfilesPprof(context.Context, ...) error
- func (UnimplementedIngesterServiceHandler) MergeProfilesStacktraces(context.Context, ...) error
- func (UnimplementedIngesterServiceHandler) MergeSpanProfile(context.Context, ...) error
- func (UnimplementedIngesterServiceHandler) ProfileTypes(context.Context, *connect.Request[v1.ProfileTypesRequest]) (*connect.Response[v1.ProfileTypesResponse], error)
- func (UnimplementedIngesterServiceHandler) Push(context.Context, *connect.Request[v11.PushRequest]) (*connect.Response[v11.PushResponse], error)
- func (UnimplementedIngesterServiceHandler) Series(context.Context, *connect.Request[v1.SeriesRequest]) (*connect.Response[v1.SeriesResponse], error)
Constants ¶
const ( // IngesterServicePushProcedure is the fully-qualified name of the IngesterService's Push RPC. IngesterServicePushProcedure = "/ingester.v1.IngesterService/Push" // IngesterServiceLabelValuesProcedure is the fully-qualified name of the IngesterService's // LabelValues RPC. IngesterServiceLabelValuesProcedure = "/ingester.v1.IngesterService/LabelValues" // IngesterServiceLabelNamesProcedure is the fully-qualified name of the IngesterService's // LabelNames RPC. IngesterServiceLabelNamesProcedure = "/ingester.v1.IngesterService/LabelNames" // IngesterServiceProfileTypesProcedure is the fully-qualified name of the IngesterService's // ProfileTypes RPC. IngesterServiceProfileTypesProcedure = "/ingester.v1.IngesterService/ProfileTypes" // IngesterServiceSeriesProcedure is the fully-qualified name of the IngesterService's Series RPC. IngesterServiceSeriesProcedure = "/ingester.v1.IngesterService/Series" // IngesterServiceFlushProcedure is the fully-qualified name of the IngesterService's Flush RPC. IngesterServiceFlushProcedure = "/ingester.v1.IngesterService/Flush" // IngesterServiceMergeProfilesStacktracesProcedure is the fully-qualified name of the // IngesterService's MergeProfilesStacktraces RPC. IngesterServiceMergeProfilesStacktracesProcedure = "/ingester.v1.IngesterService/MergeProfilesStacktraces" // IngesterServiceMergeProfilesLabelsProcedure is the fully-qualified name of the IngesterService's // MergeProfilesLabels RPC. IngesterServiceMergeProfilesLabelsProcedure = "/ingester.v1.IngesterService/MergeProfilesLabels" // IngesterServiceMergeProfilesPprofProcedure is the fully-qualified name of the IngesterService's // MergeProfilesPprof RPC. IngesterServiceMergeProfilesPprofProcedure = "/ingester.v1.IngesterService/MergeProfilesPprof" // IngesterServiceMergeSpanProfileProcedure is the fully-qualified name of the IngesterService's // MergeSpanProfile RPC. IngesterServiceMergeSpanProfileProcedure = "/ingester.v1.IngesterService/MergeSpanProfile" // IngesterServiceBlockMetadataProcedure is the fully-qualified name of the IngesterService's // BlockMetadata RPC. IngesterServiceBlockMetadataProcedure = "/ingester.v1.IngesterService/BlockMetadata" // IngesterServiceGetProfileStatsProcedure is the fully-qualified name of the IngesterService's // GetProfileStats RPC. IngesterServiceGetProfileStatsProcedure = "/ingester.v1.IngesterService/GetProfileStats" // IngesterServiceGetBlockStatsProcedure is the fully-qualified name of the IngesterService's // GetBlockStats RPC. IngesterServiceGetBlockStatsProcedure = "/ingester.v1.IngesterService/GetBlockStats" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// IngesterServiceName is the fully-qualified name of the IngesterService service.
IngesterServiceName = "ingester.v1.IngesterService"
)
Variables ¶
This section is empty.
Functions ¶
func NewIngesterServiceHandler ¶
func NewIngesterServiceHandler(svc IngesterServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewIngesterServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func RegisterIngesterServiceHandler ¶
func RegisterIngesterServiceHandler(mux *mux.Router, svc IngesterServiceHandler, opts ...connect.HandlerOption)
RegisterIngesterServiceHandler register an HTTP handler to a mux.Router from the service implementation.
Types ¶
type IngesterServiceClient ¶
type IngesterServiceClient interface { Push(context.Context, *connect.Request[v11.PushRequest]) (*connect.Response[v11.PushResponse], error) LabelValues(context.Context, *connect.Request[v12.LabelValuesRequest]) (*connect.Response[v12.LabelValuesResponse], error) LabelNames(context.Context, *connect.Request[v12.LabelNamesRequest]) (*connect.Response[v12.LabelNamesResponse], error) // Deprecated: ProfileType call is deprecated in the store components // TODO: Remove this call in release v1.4 ProfileTypes(context.Context, *connect.Request[v1.ProfileTypesRequest]) (*connect.Response[v1.ProfileTypesResponse], error) Series(context.Context, *connect.Request[v1.SeriesRequest]) (*connect.Response[v1.SeriesResponse], error) Flush(context.Context, *connect.Request[v1.FlushRequest]) (*connect.Response[v1.FlushResponse], error) MergeProfilesStacktraces(context.Context) *connect.BidiStreamForClient[v1.MergeProfilesStacktracesRequest, v1.MergeProfilesStacktracesResponse] MergeProfilesLabels(context.Context) *connect.BidiStreamForClient[v1.MergeProfilesLabelsRequest, v1.MergeProfilesLabelsResponse] MergeProfilesPprof(context.Context) *connect.BidiStreamForClient[v1.MergeProfilesPprofRequest, v1.MergeProfilesPprofResponse] MergeSpanProfile(context.Context) *connect.BidiStreamForClient[v1.MergeSpanProfileRequest, v1.MergeSpanProfileResponse] BlockMetadata(context.Context, *connect.Request[v1.BlockMetadataRequest]) (*connect.Response[v1.BlockMetadataResponse], error) // GetProfileStats returns profile stats for the current tenant. GetProfileStats(context.Context, *connect.Request[v12.GetProfileStatsRequest]) (*connect.Response[v12.GetProfileStatsResponse], error) GetBlockStats(context.Context, *connect.Request[v1.GetBlockStatsRequest]) (*connect.Response[v1.GetBlockStatsResponse], error) }
IngesterServiceClient is a client for the ingester.v1.IngesterService service.
func NewIngesterServiceClient ¶
func NewIngesterServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) IngesterServiceClient
NewIngesterServiceClient constructs a client for the ingester.v1.IngesterService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type IngesterServiceHandler ¶
type IngesterServiceHandler interface { Push(context.Context, *connect.Request[v11.PushRequest]) (*connect.Response[v11.PushResponse], error) LabelValues(context.Context, *connect.Request[v12.LabelValuesRequest]) (*connect.Response[v12.LabelValuesResponse], error) LabelNames(context.Context, *connect.Request[v12.LabelNamesRequest]) (*connect.Response[v12.LabelNamesResponse], error) // Deprecated: ProfileType call is deprecated in the store components // TODO: Remove this call in release v1.4 ProfileTypes(context.Context, *connect.Request[v1.ProfileTypesRequest]) (*connect.Response[v1.ProfileTypesResponse], error) Series(context.Context, *connect.Request[v1.SeriesRequest]) (*connect.Response[v1.SeriesResponse], error) Flush(context.Context, *connect.Request[v1.FlushRequest]) (*connect.Response[v1.FlushResponse], error) MergeProfilesStacktraces(context.Context, *connect.BidiStream[v1.MergeProfilesStacktracesRequest, v1.MergeProfilesStacktracesResponse]) error MergeProfilesLabels(context.Context, *connect.BidiStream[v1.MergeProfilesLabelsRequest, v1.MergeProfilesLabelsResponse]) error MergeProfilesPprof(context.Context, *connect.BidiStream[v1.MergeProfilesPprofRequest, v1.MergeProfilesPprofResponse]) error MergeSpanProfile(context.Context, *connect.BidiStream[v1.MergeSpanProfileRequest, v1.MergeSpanProfileResponse]) error BlockMetadata(context.Context, *connect.Request[v1.BlockMetadataRequest]) (*connect.Response[v1.BlockMetadataResponse], error) // GetProfileStats returns profile stats for the current tenant. GetProfileStats(context.Context, *connect.Request[v12.GetProfileStatsRequest]) (*connect.Response[v12.GetProfileStatsResponse], error) GetBlockStats(context.Context, *connect.Request[v1.GetBlockStatsRequest]) (*connect.Response[v1.GetBlockStatsResponse], error) }
IngesterServiceHandler is an implementation of the ingester.v1.IngesterService service.
type UnimplementedIngesterServiceHandler ¶
type UnimplementedIngesterServiceHandler struct{}
UnimplementedIngesterServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedIngesterServiceHandler) BlockMetadata ¶ added in v0.3.0
func (UnimplementedIngesterServiceHandler) BlockMetadata(context.Context, *connect.Request[v1.BlockMetadataRequest]) (*connect.Response[v1.BlockMetadataResponse], error)
func (UnimplementedIngesterServiceHandler) Flush ¶
func (UnimplementedIngesterServiceHandler) Flush(context.Context, *connect.Request[v1.FlushRequest]) (*connect.Response[v1.FlushResponse], error)
func (UnimplementedIngesterServiceHandler) GetBlockStats ¶ added in v1.0.0
func (UnimplementedIngesterServiceHandler) GetBlockStats(context.Context, *connect.Request[v1.GetBlockStatsRequest]) (*connect.Response[v1.GetBlockStatsResponse], error)
func (UnimplementedIngesterServiceHandler) GetProfileStats ¶ added in v1.0.0
func (UnimplementedIngesterServiceHandler) GetProfileStats(context.Context, *connect.Request[v12.GetProfileStatsRequest]) (*connect.Response[v12.GetProfileStatsResponse], error)
func (UnimplementedIngesterServiceHandler) LabelNames ¶
func (UnimplementedIngesterServiceHandler) LabelNames(context.Context, *connect.Request[v12.LabelNamesRequest]) (*connect.Response[v12.LabelNamesResponse], error)
func (UnimplementedIngesterServiceHandler) LabelValues ¶
func (UnimplementedIngesterServiceHandler) LabelValues(context.Context, *connect.Request[v12.LabelValuesRequest]) (*connect.Response[v12.LabelValuesResponse], error)
func (UnimplementedIngesterServiceHandler) MergeProfilesLabels ¶
func (UnimplementedIngesterServiceHandler) MergeProfilesLabels(context.Context, *connect.BidiStream[v1.MergeProfilesLabelsRequest, v1.MergeProfilesLabelsResponse]) error
func (UnimplementedIngesterServiceHandler) MergeProfilesPprof ¶
func (UnimplementedIngesterServiceHandler) MergeProfilesPprof(context.Context, *connect.BidiStream[v1.MergeProfilesPprofRequest, v1.MergeProfilesPprofResponse]) error
func (UnimplementedIngesterServiceHandler) MergeProfilesStacktraces ¶
func (UnimplementedIngesterServiceHandler) MergeProfilesStacktraces(context.Context, *connect.BidiStream[v1.MergeProfilesStacktracesRequest, v1.MergeProfilesStacktracesResponse]) error
func (UnimplementedIngesterServiceHandler) MergeSpanProfile ¶ added in v0.2.1
func (UnimplementedIngesterServiceHandler) MergeSpanProfile(context.Context, *connect.BidiStream[v1.MergeSpanProfileRequest, v1.MergeSpanProfileResponse]) error
func (UnimplementedIngesterServiceHandler) ProfileTypes ¶
func (UnimplementedIngesterServiceHandler) ProfileTypes(context.Context, *connect.Request[v1.ProfileTypesRequest]) (*connect.Response[v1.ProfileTypesResponse], error)
func (UnimplementedIngesterServiceHandler) Push ¶
func (UnimplementedIngesterServiceHandler) Push(context.Context, *connect.Request[v11.PushRequest]) (*connect.Response[v11.PushResponse], error)
func (UnimplementedIngesterServiceHandler) Series ¶
func (UnimplementedIngesterServiceHandler) Series(context.Context, *connect.Request[v1.SeriesRequest]) (*connect.Response[v1.SeriesResponse], error)