prof

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QuerierService_ProfileTypes_FullMethodName           = "/querier.v1.QuerierService/ProfileTypes"
	QuerierService_LabelValues_FullMethodName            = "/querier.v1.QuerierService/LabelValues"
	QuerierService_LabelNames_FullMethodName             = "/querier.v1.QuerierService/LabelNames"
	QuerierService_Series_FullMethodName                 = "/querier.v1.QuerierService/Series"
	QuerierService_SelectMergeStacktraces_FullMethodName = "/querier.v1.QuerierService/SelectMergeStacktraces"
	QuerierService_SelectMergeSpanProfile_FullMethodName = "/querier.v1.QuerierService/SelectMergeSpanProfile"
	QuerierService_SelectMergeProfile_FullMethodName     = "/querier.v1.QuerierService/SelectMergeProfile"
	QuerierService_SelectSeries_FullMethodName           = "/querier.v1.QuerierService/SelectSeries"
	QuerierService_Diff_FullMethodName                   = "/querier.v1.QuerierService/Diff"
	QuerierService_GetProfileStats_FullMethodName        = "/querier.v1.QuerierService/GetProfileStats"
	QuerierService_AnalyzeQuery_FullMethodName           = "/querier.v1.QuerierService/AnalyzeQuery"
)
View Source
const (
	SettingsService_Get_FullMethodName = "/settings.v1.SettingsService/Get"
	SettingsService_Set_FullMethodName = "/settings.v1.SettingsService/Set"
)

Variables

View Source
var (
	ProfileFormat_name = map[int32]string{
		0: "PROFILE_FORMAT_UNSPECIFIED",
		1: "PROFILE_FORMAT_FLAMEGRAPH",
		2: "PROFILE_FORMAT_TREE",
	}
	ProfileFormat_value = map[string]int32{
		"PROFILE_FORMAT_UNSPECIFIED": 0,
		"PROFILE_FORMAT_FLAMEGRAPH":  1,
		"PROFILE_FORMAT_TREE":        2,
	}
)

Enum value maps for ProfileFormat.

View Source
var File_profile_proto protoreflect.FileDescriptor
View Source
var File_querier_proto protoreflect.FileDescriptor
View Source
var File_settings_proto protoreflect.FileDescriptor
View Source
var QuerierService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "querier.v1.QuerierService",
	HandlerType: (*QuerierServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ProfileTypes",
			Handler:    _QuerierService_ProfileTypes_Handler,
		},
		{
			MethodName: "LabelValues",
			Handler:    _QuerierService_LabelValues_Handler,
		},
		{
			MethodName: "LabelNames",
			Handler:    _QuerierService_LabelNames_Handler,
		},
		{
			MethodName: "Series",
			Handler:    _QuerierService_Series_Handler,
		},
		{
			MethodName: "SelectMergeStacktraces",
			Handler:    _QuerierService_SelectMergeStacktraces_Handler,
		},
		{
			MethodName: "SelectMergeSpanProfile",
			Handler:    _QuerierService_SelectMergeSpanProfile_Handler,
		},
		{
			MethodName: "SelectMergeProfile",
			Handler:    _QuerierService_SelectMergeProfile_Handler,
		},
		{
			MethodName: "SelectSeries",
			Handler:    _QuerierService_SelectSeries_Handler,
		},
		{
			MethodName: "Diff",
			Handler:    _QuerierService_Diff_Handler,
		},
		{
			MethodName: "GetProfileStats",
			Handler:    _QuerierService_GetProfileStats_Handler,
		},
		{
			MethodName: "AnalyzeQuery",
			Handler:    _QuerierService_AnalyzeQuery_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "querier.proto",
}

QuerierService_ServiceDesc is the grpc.ServiceDesc for QuerierService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var SettingsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "settings.v1.SettingsService",
	HandlerType: (*SettingsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _SettingsService_Get_Handler,
		},
		{
			MethodName: "Set",
			Handler:    _SettingsService_Set_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "settings.proto",
}

SettingsService_ServiceDesc is the grpc.ServiceDesc for SettingsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func PlanAnalyzeQuery

func PlanAnalyzeQuery(ctx context.Context, script *prof_parser.Script,
	from time.Time, to time.Time, db *model.DataDatabasesMap) (sql.ISelect, error)

func PlanLabelNames

func PlanLabelNames(ctx context.Context, scripts []*prof_parser.Script, from time.Time, to time.Time,
	db *model.DataDatabasesMap) (sql.ISelect, error)

func PlanLabelValues

func PlanLabelValues(ctx context.Context, scripts []*prof_parser.Script, labelName string, from time.Time, to time.Time,
	db *model.DataDatabasesMap) (sql.ISelect, error)

func PlanMergeProfiles

func PlanMergeProfiles(ctx context.Context, script *prof_parser.Script, typeId *shared2.TypeId,
	from time.Time, to time.Time, db *model.DataDatabasesMap) (sql.ISelect, error)

func PlanMergeTraces

func PlanMergeTraces(ctx context.Context, script *prof_parser.Script, typeId *shared2.TypeId,
	from time.Time, to time.Time, db *model.DataDatabasesMap) (sql.ISelect, error)

func PlanSelectSeries

func PlanSelectSeries(ctx context.Context, script *prof_parser.Script, tId *shared2.TypeId, groupBy []string,
	agg v1.TimeSeriesAggregationType, step int64, from time.Time, to time.Time,
	db *model.DataDatabasesMap) (sql.ISelect, error)

func PlanSeries

func PlanSeries(ctx context.Context, scripts []*prof_parser.Script,
	labelNames []string, from time.Time, to time.Time, db *model.DataDatabasesMap) (sql.ISelect, error)

func RegisterQuerierServiceServer

func RegisterQuerierServiceServer(s grpc.ServiceRegistrar, srv QuerierServiceServer)

func RegisterSettingsServiceServer

func RegisterSettingsServiceServer(s grpc.ServiceRegistrar, srv SettingsServiceServer)

Types

type AnalyzeQueryRequest

type AnalyzeQueryRequest struct {
	Start int64  `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"`
	End   int64  `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"`
	Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*AnalyzeQueryRequest) Descriptor deprecated

func (*AnalyzeQueryRequest) Descriptor() ([]byte, []int)

Deprecated: Use AnalyzeQueryRequest.ProtoReflect.Descriptor instead.

func (*AnalyzeQueryRequest) GetEnd

func (x *AnalyzeQueryRequest) GetEnd() int64

func (*AnalyzeQueryRequest) GetQuery

func (x *AnalyzeQueryRequest) GetQuery() string

func (*AnalyzeQueryRequest) GetStart

func (x *AnalyzeQueryRequest) GetStart() int64

func (*AnalyzeQueryRequest) ProtoMessage

func (*AnalyzeQueryRequest) ProtoMessage()

func (*AnalyzeQueryRequest) ProtoReflect

func (x *AnalyzeQueryRequest) ProtoReflect() protoreflect.Message

func (*AnalyzeQueryRequest) Reset

func (x *AnalyzeQueryRequest) Reset()

func (*AnalyzeQueryRequest) String

func (x *AnalyzeQueryRequest) String() string

type AnalyzeQueryResponse

type AnalyzeQueryResponse struct {
	QueryScopes []*QueryScope `protobuf:"bytes,1,rep,name=query_scopes,json=queryScopes,proto3" json:"query_scopes,omitempty"` // detailed view of what the query will require
	QueryImpact *QueryImpact  `protobuf:"bytes,2,opt,name=query_impact,json=queryImpact,proto3" json:"query_impact,omitempty"` // summary of the query impact / performance
	// contains filtered or unexported fields
}

func (*AnalyzeQueryResponse) Descriptor deprecated

func (*AnalyzeQueryResponse) Descriptor() ([]byte, []int)

Deprecated: Use AnalyzeQueryResponse.ProtoReflect.Descriptor instead.

func (*AnalyzeQueryResponse) GetQueryImpact

func (x *AnalyzeQueryResponse) GetQueryImpact() *QueryImpact

func (*AnalyzeQueryResponse) GetQueryScopes

func (x *AnalyzeQueryResponse) GetQueryScopes() []*QueryScope

func (*AnalyzeQueryResponse) ProtoMessage

func (*AnalyzeQueryResponse) ProtoMessage()

func (*AnalyzeQueryResponse) ProtoReflect

func (x *AnalyzeQueryResponse) ProtoReflect() protoreflect.Message

func (*AnalyzeQueryResponse) Reset

func (x *AnalyzeQueryResponse) Reset()

func (*AnalyzeQueryResponse) String

func (x *AnalyzeQueryResponse) String() string

type DiffRequest

type DiffRequest struct {
	Left  *SelectMergeStacktracesRequest `protobuf:"bytes,1,opt,name=left,proto3" json:"left,omitempty"`
	Right *SelectMergeStacktracesRequest `protobuf:"bytes,2,opt,name=right,proto3" json:"right,omitempty"`
	// contains filtered or unexported fields
}

func (*DiffRequest) Descriptor deprecated

func (*DiffRequest) Descriptor() ([]byte, []int)

Deprecated: Use DiffRequest.ProtoReflect.Descriptor instead.

func (*DiffRequest) GetLeft

func (*DiffRequest) GetRight

func (*DiffRequest) ProtoMessage

func (*DiffRequest) ProtoMessage()

func (*DiffRequest) ProtoReflect

func (x *DiffRequest) ProtoReflect() protoreflect.Message

func (*DiffRequest) Reset

func (x *DiffRequest) Reset()

func (*DiffRequest) String

func (x *DiffRequest) String() string

type DiffResponse

type DiffResponse struct {
	Flamegraph *FlameGraphDiff `protobuf:"bytes,1,opt,name=flamegraph,proto3" json:"flamegraph,omitempty"`
	// contains filtered or unexported fields
}

func (*DiffResponse) Descriptor deprecated

func (*DiffResponse) Descriptor() ([]byte, []int)

Deprecated: Use DiffResponse.ProtoReflect.Descriptor instead.

func (*DiffResponse) GetFlamegraph

func (x *DiffResponse) GetFlamegraph() *FlameGraphDiff

func (*DiffResponse) ProtoMessage

func (*DiffResponse) ProtoMessage()

func (*DiffResponse) ProtoReflect

func (x *DiffResponse) ProtoReflect() protoreflect.Message

func (*DiffResponse) Reset

func (x *DiffResponse) Reset()

func (*DiffResponse) String

func (x *DiffResponse) String() string

type FlameGraph

type FlameGraph struct {
	Names   []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	Levels  []*Level `protobuf:"bytes,2,rep,name=levels,proto3" json:"levels,omitempty"`
	Total   int64    `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	MaxSelf int64    `protobuf:"varint,4,opt,name=max_self,json=maxSelf,proto3" json:"max_self,omitempty"`
	// contains filtered or unexported fields
}

func (*FlameGraph) Descriptor deprecated

func (*FlameGraph) Descriptor() ([]byte, []int)

Deprecated: Use FlameGraph.ProtoReflect.Descriptor instead.

func (*FlameGraph) GetLevels

func (x *FlameGraph) GetLevels() []*Level

func (*FlameGraph) GetMaxSelf

func (x *FlameGraph) GetMaxSelf() int64

func (*FlameGraph) GetNames

func (x *FlameGraph) GetNames() []string

func (*FlameGraph) GetTotal

func (x *FlameGraph) GetTotal() int64

func (*FlameGraph) ProtoMessage

func (*FlameGraph) ProtoMessage()

func (*FlameGraph) ProtoReflect

func (x *FlameGraph) ProtoReflect() protoreflect.Message

func (*FlameGraph) Reset

func (x *FlameGraph) Reset()

func (*FlameGraph) String

func (x *FlameGraph) String() string

type FlameGraphDiff

type FlameGraphDiff struct {
	Names      []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	Levels     []*Level `protobuf:"bytes,2,rep,name=levels,proto3" json:"levels,omitempty"`
	Total      int64    `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	MaxSelf    int64    `protobuf:"varint,4,opt,name=max_self,json=maxSelf,proto3" json:"max_self,omitempty"`
	LeftTicks  int64    `protobuf:"varint,5,opt,name=leftTicks,proto3" json:"leftTicks,omitempty"`
	RightTicks int64    `protobuf:"varint,6,opt,name=rightTicks,proto3" json:"rightTicks,omitempty"`
	// contains filtered or unexported fields
}

func (*FlameGraphDiff) Descriptor deprecated

func (*FlameGraphDiff) Descriptor() ([]byte, []int)

Deprecated: Use FlameGraphDiff.ProtoReflect.Descriptor instead.

func (*FlameGraphDiff) GetLeftTicks

func (x *FlameGraphDiff) GetLeftTicks() int64

func (*FlameGraphDiff) GetLevels

func (x *FlameGraphDiff) GetLevels() []*Level

func (*FlameGraphDiff) GetMaxSelf

func (x *FlameGraphDiff) GetMaxSelf() int64

func (*FlameGraphDiff) GetNames

func (x *FlameGraphDiff) GetNames() []string

func (*FlameGraphDiff) GetRightTicks

func (x *FlameGraphDiff) GetRightTicks() int64

func (*FlameGraphDiff) GetTotal

func (x *FlameGraphDiff) GetTotal() int64

func (*FlameGraphDiff) ProtoMessage

func (*FlameGraphDiff) ProtoMessage()

func (*FlameGraphDiff) ProtoReflect

func (x *FlameGraphDiff) ProtoReflect() protoreflect.Message

func (*FlameGraphDiff) Reset

func (x *FlameGraphDiff) Reset()

func (*FlameGraphDiff) String

func (x *FlameGraphDiff) String() string

type Function

type Function struct {

	// Unique nonzero id for the function.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name of the function, in human-readable form if available.
	Name int64 `protobuf:"varint,2,opt,name=name,proto3" json:"name,omitempty"` // Index into string table
	// Name of the function, as identified by the system.
	// For instance, it can be a C++ mangled name.
	SystemName int64 `protobuf:"varint,3,opt,name=system_name,json=systemName,proto3" json:"system_name,omitempty"` // Index into string table
	// Source file containing the function.
	Filename int64 `protobuf:"varint,4,opt,name=filename,proto3" json:"filename,omitempty"` // Index into string table
	// Line number in source file.
	StartLine int64 `protobuf:"varint,5,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"`
	// contains filtered or unexported fields
}

func (*Function) Descriptor deprecated

func (*Function) Descriptor() ([]byte, []int)

Deprecated: Use Function.ProtoReflect.Descriptor instead.

func (*Function) GetFilename

func (x *Function) GetFilename() int64

func (*Function) GetId

func (x *Function) GetId() uint64

func (*Function) GetName

func (x *Function) GetName() int64

func (*Function) GetStartLine

func (x *Function) GetStartLine() int64

func (*Function) GetSystemName

func (x *Function) GetSystemName() int64

func (*Function) ProtoMessage

func (*Function) ProtoMessage()

func (*Function) ProtoReflect

func (x *Function) ProtoReflect() protoreflect.Message

func (*Function) Reset

func (x *Function) Reset()

func (*Function) String

func (x *Function) String() string

type GetSettingsRequest

type GetSettingsRequest struct {
	// contains filtered or unexported fields
}

func (*GetSettingsRequest) Descriptor deprecated

func (*GetSettingsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSettingsRequest.ProtoReflect.Descriptor instead.

func (*GetSettingsRequest) ProtoMessage

func (*GetSettingsRequest) ProtoMessage()

func (*GetSettingsRequest) ProtoReflect

func (x *GetSettingsRequest) ProtoReflect() protoreflect.Message

func (*GetSettingsRequest) Reset

func (x *GetSettingsRequest) Reset()

func (*GetSettingsRequest) String

func (x *GetSettingsRequest) String() string

type GetSettingsResponse

type GetSettingsResponse struct {
	Settings []*Setting `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSettingsResponse) Descriptor deprecated

func (*GetSettingsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetSettingsResponse.ProtoReflect.Descriptor instead.

func (*GetSettingsResponse) GetSettings

func (x *GetSettingsResponse) GetSettings() []*Setting

func (*GetSettingsResponse) ProtoMessage

func (*GetSettingsResponse) ProtoMessage()

func (*GetSettingsResponse) ProtoReflect

func (x *GetSettingsResponse) ProtoReflect() protoreflect.Message

func (*GetSettingsResponse) Reset

func (x *GetSettingsResponse) Reset()

func (*GetSettingsResponse) String

func (x *GetSettingsResponse) String() string

type Label

type Label struct {

	// Index into string table. An annotation for a sample (e.g.
	// "allocation_size") with an associated value.
	// Keys with "pprof::" prefix are reserved for internal use by pprof.
	Key int64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"`
	// At most one of the following must be present
	Str int64 `protobuf:"varint,2,opt,name=str,proto3" json:"str,omitempty"` // Index into string table
	Num int64 `protobuf:"varint,3,opt,name=num,proto3" json:"num,omitempty"`
	// Should only be present when num is present.
	// Specifies the units of num.
	// Use arbitrary string (for example, "requests") as a custom count unit.
	// If no unit is specified, consumer may apply heuristic to deduce the unit.
	// Consumers may also  interpret units like "bytes" and "kilobytes" as memory
	// units and units like "seconds" and "nanoseconds" as time units,
	// and apply appropriate unit conversions to these.
	NumUnit int64 `protobuf:"varint,4,opt,name=num_unit,json=numUnit,proto3" json:"num_unit,omitempty"` // Index into string table
	// contains filtered or unexported fields
}

func (*Label) Descriptor deprecated

func (*Label) Descriptor() ([]byte, []int)

Deprecated: Use Label.ProtoReflect.Descriptor instead.

func (*Label) GetKey

func (x *Label) GetKey() int64

func (*Label) GetNum

func (x *Label) GetNum() int64

func (*Label) GetNumUnit

func (x *Label) GetNumUnit() int64

func (*Label) GetStr

func (x *Label) GetStr() int64

func (*Label) ProtoMessage

func (*Label) ProtoMessage()

func (*Label) ProtoReflect

func (x *Label) ProtoReflect() protoreflect.Message

func (*Label) Reset

func (x *Label) Reset()

func (*Label) String

func (x *Label) String() string

type Level

type Level struct {
	Values []int64 `protobuf:"varint,1,rep,packed,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Level) Descriptor deprecated

func (*Level) Descriptor() ([]byte, []int)

Deprecated: Use Level.ProtoReflect.Descriptor instead.

func (*Level) GetValues

func (x *Level) GetValues() []int64

func (*Level) ProtoMessage

func (*Level) ProtoMessage()

func (*Level) ProtoReflect

func (x *Level) ProtoReflect() protoreflect.Message

func (*Level) Reset

func (x *Level) Reset()

func (*Level) String

func (x *Level) String() string

type Line

type Line struct {

	// The id of the corresponding profile.Function for this line.
	FunctionId uint64 `protobuf:"varint,1,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"`
	// Line number in source code.
	Line int64 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
	// Column number in source code.
	Column int64 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
	// contains filtered or unexported fields
}

func (*Line) Descriptor deprecated

func (*Line) Descriptor() ([]byte, []int)

Deprecated: Use Line.ProtoReflect.Descriptor instead.

func (*Line) GetColumn

func (x *Line) GetColumn() int64

func (*Line) GetFunctionId

func (x *Line) GetFunctionId() uint64

func (*Line) GetLine

func (x *Line) GetLine() int64

func (*Line) ProtoMessage

func (*Line) ProtoMessage()

func (*Line) ProtoReflect

func (x *Line) ProtoReflect() protoreflect.Message

func (*Line) Reset

func (x *Line) Reset()

func (*Line) String

func (x *Line) String() string

type Location

type Location struct {

	// Unique nonzero id for the location.  A profile could use
	// instruction addresses or any integer sequence as ids.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The id of the corresponding profile.Mapping for this location.
	// It can be unset if the mapping is unknown or not applicable for
	// this profile type.
	MappingId uint64 `protobuf:"varint,2,opt,name=mapping_id,json=mappingId,proto3" json:"mapping_id,omitempty"`
	// The instruction address for this location, if available.  It
	// should be within [Mapping.memory_start...Mapping.memory_limit]
	// for the corresponding mapping. A non-leaf address may be in the
	// middle of a call instruction. It is up to display tools to find
	// the beginning of the instruction if necessary.
	Address uint64 `protobuf:"varint,3,opt,name=address,proto3" json:"address,omitempty"`
	// Multiple line indicates this location has inlined functions,
	// where the last entry represents the caller into which the
	// preceding entries were inlined.
	//
	// E.g., if memcpy() is inlined into printf:
	//
	//	line[0].function_name == "memcpy"
	//	line[1].function_name == "printf"
	Line []*Line `protobuf:"bytes,4,rep,name=line,proto3" json:"line,omitempty"`
	// Provides an indication that multiple symbols map to this location's
	// address, for example due to identical code folding by the linker. In that
	// case the line information above represents one of the multiple
	// symbols. This field must be recomputed when the symbolization state of the
	// profile changes.
	IsFolded bool `protobuf:"varint,5,opt,name=is_folded,json=isFolded,proto3" json:"is_folded,omitempty"`
	// contains filtered or unexported fields
}

Describes function and line table debug information.

func (*Location) Descriptor deprecated

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetAddress

func (x *Location) GetAddress() uint64

func (*Location) GetId

func (x *Location) GetId() uint64

func (*Location) GetIsFolded

func (x *Location) GetIsFolded() bool

func (*Location) GetLine

func (x *Location) GetLine() []*Line

func (*Location) GetMappingId

func (x *Location) GetMappingId() uint64

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

type Mapping

type Mapping struct {

	// Unique nonzero id for the mapping.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Address at which the binary (or DLL) is loaded into memory.
	MemoryStart uint64 `protobuf:"varint,2,opt,name=memory_start,json=memoryStart,proto3" json:"memory_start,omitempty"`
	// The limit of the address range occupied by this mapping.
	MemoryLimit uint64 `protobuf:"varint,3,opt,name=memory_limit,json=memoryLimit,proto3" json:"memory_limit,omitempty"`
	// Offset in the binary that corresponds to the first mapped address.
	FileOffset uint64 `protobuf:"varint,4,opt,name=file_offset,json=fileOffset,proto3" json:"file_offset,omitempty"`
	// The object this entry is loaded from.  This can be a filename on
	// disk for the main binary and shared libraries, or virtual
	// abstractions like "[vdso]".
	Filename int64 `protobuf:"varint,5,opt,name=filename,proto3" json:"filename,omitempty"` // Index into string table
	// A string that uniquely identifies a particular program version
	// with high probability. E.g., for binaries generated by GNU tools,
	// it could be the contents of the .note.gnu.build-id field.
	BuildId int64 `protobuf:"varint,6,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"` // Index into string table
	// The following fields indicate the resolution of symbolic info.
	HasFunctions    bool `protobuf:"varint,7,opt,name=has_functions,json=hasFunctions,proto3" json:"has_functions,omitempty"`
	HasFilenames    bool `protobuf:"varint,8,opt,name=has_filenames,json=hasFilenames,proto3" json:"has_filenames,omitempty"`
	HasLineNumbers  bool `protobuf:"varint,9,opt,name=has_line_numbers,json=hasLineNumbers,proto3" json:"has_line_numbers,omitempty"`
	HasInlineFrames bool `protobuf:"varint,10,opt,name=has_inline_frames,json=hasInlineFrames,proto3" json:"has_inline_frames,omitempty"`
	// contains filtered or unexported fields
}

func (*Mapping) Descriptor deprecated

func (*Mapping) Descriptor() ([]byte, []int)

Deprecated: Use Mapping.ProtoReflect.Descriptor instead.

func (*Mapping) GetBuildId

func (x *Mapping) GetBuildId() int64

func (*Mapping) GetFileOffset

func (x *Mapping) GetFileOffset() uint64

func (*Mapping) GetFilename

func (x *Mapping) GetFilename() int64

func (*Mapping) GetHasFilenames

func (x *Mapping) GetHasFilenames() bool

func (*Mapping) GetHasFunctions

func (x *Mapping) GetHasFunctions() bool

func (*Mapping) GetHasInlineFrames

func (x *Mapping) GetHasInlineFrames() bool

func (*Mapping) GetHasLineNumbers

func (x *Mapping) GetHasLineNumbers() bool

func (*Mapping) GetId

func (x *Mapping) GetId() uint64

func (*Mapping) GetMemoryLimit

func (x *Mapping) GetMemoryLimit() uint64

func (*Mapping) GetMemoryStart

func (x *Mapping) GetMemoryStart() uint64

func (*Mapping) ProtoMessage

func (*Mapping) ProtoMessage()

func (*Mapping) ProtoReflect

func (x *Mapping) ProtoReflect() protoreflect.Message

func (*Mapping) Reset

func (x *Mapping) Reset()

func (*Mapping) String

func (x *Mapping) String() string

type Profile

type Profile struct {

	// A description of the samples associated with each Sample.value.
	// For a cpu profile this might be:
	//
	//	[["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
	//
	// For a heap profile, this might be:
	//
	//	[["allocations","count"], ["space","bytes"]],
	//
	// If one of the values represents the number of events represented
	// by the sample, by convention it should be at index 0 and use
	// sample_type.unit == "count".
	SampleType []*ValueType `protobuf:"bytes,1,rep,name=sample_type,json=sampleType,proto3" json:"sample_type,omitempty"`
	// The set of samples recorded in this profile.
	Sample []*Sample `protobuf:"bytes,2,rep,name=sample,proto3" json:"sample,omitempty"`
	// Mapping from address ranges to the image/binary/library mapped
	// into that address range.  mapping[0] will be the main binary.
	Mapping []*Mapping `protobuf:"bytes,3,rep,name=mapping,proto3" json:"mapping,omitempty"`
	// Locations referenced by samples.
	Location []*Location `protobuf:"bytes,4,rep,name=location,proto3" json:"location,omitempty"`
	// Functions referenced by locations.
	Function []*Function `protobuf:"bytes,5,rep,name=function,proto3" json:"function,omitempty"`
	// A common table for strings referenced by various messages.
	// string_table[0] must always be "".
	StringTable []string `protobuf:"bytes,6,rep,name=string_table,json=stringTable,proto3" json:"string_table,omitempty"`
	// frames with Function.function_name fully matching the following
	// regexp will be dropped from the samples, along with their successors.
	DropFrames int64 `protobuf:"varint,7,opt,name=drop_frames,json=dropFrames,proto3" json:"drop_frames,omitempty"` // Index into string table.
	// frames with Function.function_name fully matching the following
	// regexp will be kept, even if it matches drop_frames.
	KeepFrames int64 `protobuf:"varint,8,opt,name=keep_frames,json=keepFrames,proto3" json:"keep_frames,omitempty"` // Index into string table.
	// Time of collection (UTC) represented as nanoseconds past the epoch.
	TimeNanos int64 `protobuf:"varint,9,opt,name=time_nanos,json=timeNanos,proto3" json:"time_nanos,omitempty"`
	// Duration of the profile, if a duration makes sense.
	DurationNanos int64 `protobuf:"varint,10,opt,name=duration_nanos,json=durationNanos,proto3" json:"duration_nanos,omitempty"`
	// The kind of events between sampled occurrences.
	// e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
	PeriodType *ValueType `protobuf:"bytes,11,opt,name=period_type,json=periodType,proto3" json:"period_type,omitempty"`
	// The number of events between sampled occurrences.
	Period int64 `protobuf:"varint,12,opt,name=period,proto3" json:"period,omitempty"`
	// Free-form text associated with the profile. The text is displayed as is
	// to the user by the tools that read profiles (e.g. by pprof). This field
	// should not be used to store any machine-readable information, it is only
	// for human-friendly content. The profile must stay functional if this field
	// is cleaned.
	Comment []int64 `protobuf:"varint,13,rep,packed,name=comment,proto3" json:"comment,omitempty"` // Indices into string table.
	// Index into the string table of the type of the preferred sample
	// value. If unset, clients should default to the last sample value.
	DefaultSampleType int64 `protobuf:"varint,14,opt,name=default_sample_type,json=defaultSampleType,proto3" json:"default_sample_type,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) Descriptor deprecated

func (*Profile) Descriptor() ([]byte, []int)

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetComment

func (x *Profile) GetComment() []int64

func (*Profile) GetDefaultSampleType

func (x *Profile) GetDefaultSampleType() int64

func (*Profile) GetDropFrames

func (x *Profile) GetDropFrames() int64

func (*Profile) GetDurationNanos

func (x *Profile) GetDurationNanos() int64

func (*Profile) GetFunction

func (x *Profile) GetFunction() []*Function

func (*Profile) GetKeepFrames

func (x *Profile) GetKeepFrames() int64

func (*Profile) GetLocation

func (x *Profile) GetLocation() []*Location

func (*Profile) GetMapping

func (x *Profile) GetMapping() []*Mapping

func (*Profile) GetPeriod

func (x *Profile) GetPeriod() int64

func (*Profile) GetPeriodType

func (x *Profile) GetPeriodType() *ValueType

func (*Profile) GetSample

func (x *Profile) GetSample() []*Sample

func (*Profile) GetSampleType

func (x *Profile) GetSampleType() []*ValueType

func (*Profile) GetStringTable

func (x *Profile) GetStringTable() []string

func (*Profile) GetTimeNanos

func (x *Profile) GetTimeNanos() int64

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

func (x *Profile) ProtoReflect() protoreflect.Message

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

type ProfileFormat

type ProfileFormat int32
const (
	ProfileFormat_PROFILE_FORMAT_UNSPECIFIED ProfileFormat = 0
	ProfileFormat_PROFILE_FORMAT_FLAMEGRAPH  ProfileFormat = 1
	ProfileFormat_PROFILE_FORMAT_TREE        ProfileFormat = 2
)

func (ProfileFormat) Descriptor

func (ProfileFormat) Enum

func (x ProfileFormat) Enum() *ProfileFormat

func (ProfileFormat) EnumDescriptor deprecated

func (ProfileFormat) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProfileFormat.Descriptor instead.

func (ProfileFormat) Number

func (ProfileFormat) String

func (x ProfileFormat) String() string

func (ProfileFormat) Type

type ProfileTypesRequest

type ProfileTypesRequest struct {

	// Milliseconds since epoch. If missing or zero, only the ingesters will be
	// queried.
	Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	// Milliseconds since epoch. If missing or zero, only the ingesters will be
	// queried.
	End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfileTypesRequest) Descriptor deprecated

func (*ProfileTypesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ProfileTypesRequest.ProtoReflect.Descriptor instead.

func (*ProfileTypesRequest) GetEnd

func (x *ProfileTypesRequest) GetEnd() int64

func (*ProfileTypesRequest) GetStart

func (x *ProfileTypesRequest) GetStart() int64

func (*ProfileTypesRequest) ProtoMessage

func (*ProfileTypesRequest) ProtoMessage()

func (*ProfileTypesRequest) ProtoReflect

func (x *ProfileTypesRequest) ProtoReflect() protoreflect.Message

func (*ProfileTypesRequest) Reset

func (x *ProfileTypesRequest) Reset()

func (*ProfileTypesRequest) String

func (x *ProfileTypesRequest) String() string

type ProfileTypesResponse

type ProfileTypesResponse struct {
	ProfileTypes []*v1.ProfileType `protobuf:"bytes,1,rep,name=profile_types,json=profileTypes,proto3" json:"profile_types,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfileTypesResponse) Descriptor deprecated

func (*ProfileTypesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ProfileTypesResponse.ProtoReflect.Descriptor instead.

func (*ProfileTypesResponse) GetProfileTypes

func (x *ProfileTypesResponse) GetProfileTypes() []*v1.ProfileType

func (*ProfileTypesResponse) ProtoMessage

func (*ProfileTypesResponse) ProtoMessage()

func (*ProfileTypesResponse) ProtoReflect

func (x *ProfileTypesResponse) ProtoReflect() protoreflect.Message

func (*ProfileTypesResponse) Reset

func (x *ProfileTypesResponse) Reset()

func (*ProfileTypesResponse) String

func (x *ProfileTypesResponse) String() string

type QuerierServiceClient

type QuerierServiceClient interface {
	// ProfileType returns a list of the existing profile types.
	ProfileTypes(ctx context.Context, in *ProfileTypesRequest, opts ...grpc.CallOption) (*ProfileTypesResponse, error)
	// LabelValues returns the existing label values for the provided label names.
	LabelValues(ctx context.Context, in *v1.LabelValuesRequest, opts ...grpc.CallOption) (*v1.LabelValuesResponse, error)
	// LabelNames returns a list of the existing label names.
	LabelNames(ctx context.Context, in *v1.LabelNamesRequest, opts ...grpc.CallOption) (*v1.LabelNamesResponse, error)
	// Series returns profiles series matching the request. A series is a unique label set.
	Series(ctx context.Context, in *SeriesRequest, opts ...grpc.CallOption) (*SeriesResponse, error)
	// SelectMergeStacktraces returns matching profiles aggregated in a flamegraph format. It will combine samples from within the same callstack, with each element being grouped by its function name.
	SelectMergeStacktraces(ctx context.Context, in *SelectMergeStacktracesRequest, opts ...grpc.CallOption) (*SelectMergeStacktracesResponse, error)
	// SelectMergeSpanProfile returns matching profiles aggregated in a flamegraph format. It will combine samples from within the same callstack, with each element being grouped by its function name.
	SelectMergeSpanProfile(ctx context.Context, in *SelectMergeSpanProfileRequest, opts ...grpc.CallOption) (*SelectMergeSpanProfileResponse, error)
	// SelectMergeProfile returns matching profiles aggregated in pprof format. It will contain all information stored (so including filenames and line number, if ingested).
	SelectMergeProfile(ctx context.Context, in *SelectMergeProfileRequest, opts ...grpc.CallOption) (*v11.Profile, error)
	// SelectSeries returns a time series for the total sum of the requested profiles.
	SelectSeries(ctx context.Context, in *SelectSeriesRequest, opts ...grpc.CallOption) (*SelectSeriesResponse, error)
	// Diff returns a diff of two profiles
	Diff(ctx context.Context, in *DiffRequest, opts ...grpc.CallOption) (*DiffResponse, error)
	// GetProfileStats returns profile stats for the current tenant.
	GetProfileStats(ctx context.Context, in *v1.GetProfileStatsRequest, opts ...grpc.CallOption) (*v1.GetProfileStatsResponse, error)
	AnalyzeQuery(ctx context.Context, in *AnalyzeQueryRequest, opts ...grpc.CallOption) (*AnalyzeQueryResponse, error)
}

QuerierServiceClient is the client API for QuerierService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type QuerierServiceServer

type QuerierServiceServer interface {
	// ProfileType returns a list of the existing profile types.
	ProfileTypes(context.Context, *ProfileTypesRequest) (*ProfileTypesResponse, error)
	// LabelValues returns the existing label values for the provided label names.
	LabelValues(context.Context, *v1.LabelValuesRequest) (*v1.LabelValuesResponse, error)
	// LabelNames returns a list of the existing label names.
	LabelNames(context.Context, *v1.LabelNamesRequest) (*v1.LabelNamesResponse, error)
	// Series returns profiles series matching the request. A series is a unique label set.
	Series(context.Context, *SeriesRequest) (*SeriesResponse, error)
	// SelectMergeStacktraces returns matching profiles aggregated in a flamegraph format. It will combine samples from within the same callstack, with each element being grouped by its function name.
	SelectMergeStacktraces(context.Context, *SelectMergeStacktracesRequest) (*SelectMergeStacktracesResponse, error)
	// SelectMergeSpanProfile returns matching profiles aggregated in a flamegraph format. It will combine samples from within the same callstack, with each element being grouped by its function name.
	SelectMergeSpanProfile(context.Context, *SelectMergeSpanProfileRequest) (*SelectMergeSpanProfileResponse, error)
	// SelectMergeProfile returns matching profiles aggregated in pprof format. It will contain all information stored (so including filenames and line number, if ingested).
	SelectMergeProfile(context.Context, *SelectMergeProfileRequest) (*v11.Profile, error)
	// SelectSeries returns a time series for the total sum of the requested profiles.
	SelectSeries(context.Context, *SelectSeriesRequest) (*SelectSeriesResponse, error)
	// Diff returns a diff of two profiles
	Diff(context.Context, *DiffRequest) (*DiffResponse, error)
	// GetProfileStats returns profile stats for the current tenant.
	GetProfileStats(context.Context, *v1.GetProfileStatsRequest) (*v1.GetProfileStatsResponse, error)
	AnalyzeQuery(context.Context, *AnalyzeQueryRequest) (*AnalyzeQueryResponse, error)
	// contains filtered or unexported methods
}

QuerierServiceServer is the server API for QuerierService service. All implementations must embed UnimplementedQuerierServiceServer for forward compatibility.

type QueryImpact

type QueryImpact struct {
	TotalBytesInTimeRange uint64 `` /* 131-byte string literal not displayed */
	TotalQueriedSeries    uint64 `protobuf:"varint,3,opt,name=total_queried_series,json=totalQueriedSeries,proto3" json:"total_queried_series,omitempty"`
	DeduplicationNeeded   bool   `protobuf:"varint,4,opt,name=deduplication_needed,json=deduplicationNeeded,proto3" json:"deduplication_needed,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryImpact) Descriptor deprecated

func (*QueryImpact) Descriptor() ([]byte, []int)

Deprecated: Use QueryImpact.ProtoReflect.Descriptor instead.

func (*QueryImpact) GetDeduplicationNeeded

func (x *QueryImpact) GetDeduplicationNeeded() bool

func (*QueryImpact) GetTotalBytesInTimeRange

func (x *QueryImpact) GetTotalBytesInTimeRange() uint64

func (*QueryImpact) GetTotalQueriedSeries

func (x *QueryImpact) GetTotalQueriedSeries() uint64

func (*QueryImpact) ProtoMessage

func (*QueryImpact) ProtoMessage()

func (*QueryImpact) ProtoReflect

func (x *QueryImpact) ProtoReflect() protoreflect.Message

func (*QueryImpact) Reset

func (x *QueryImpact) Reset()

func (*QueryImpact) String

func (x *QueryImpact) String() string

type QueryScope

type QueryScope struct {
	ComponentType  string `protobuf:"bytes,1,opt,name=component_type,json=componentType,proto3" json:"component_type,omitempty"`     // a descriptive high level name of the component processing one part of the query (e.g., "short term storage")
	ComponentCount uint64 `protobuf:"varint,2,opt,name=component_count,json=componentCount,proto3" json:"component_count,omitempty"` // how many components of this type will process the query (indicator of read-path replication)
	BlockCount     uint64 `protobuf:"varint,3,opt,name=block_count,json=blockCount,proto3" json:"block_count,omitempty"`
	SeriesCount    uint64 `protobuf:"varint,4,opt,name=series_count,json=seriesCount,proto3" json:"series_count,omitempty"`
	ProfileCount   uint64 `protobuf:"varint,5,opt,name=profile_count,json=profileCount,proto3" json:"profile_count,omitempty"`
	SampleCount    uint64 `protobuf:"varint,6,opt,name=sample_count,json=sampleCount,proto3" json:"sample_count,omitempty"`
	IndexBytes     uint64 `protobuf:"varint,7,opt,name=index_bytes,json=indexBytes,proto3" json:"index_bytes,omitempty"`
	ProfileBytes   uint64 `protobuf:"varint,8,opt,name=profile_bytes,json=profileBytes,proto3" json:"profile_bytes,omitempty"`
	SymbolBytes    uint64 `protobuf:"varint,9,opt,name=symbol_bytes,json=symbolBytes,proto3" json:"symbol_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryScope) Descriptor deprecated

func (*QueryScope) Descriptor() ([]byte, []int)

Deprecated: Use QueryScope.ProtoReflect.Descriptor instead.

func (*QueryScope) GetBlockCount

func (x *QueryScope) GetBlockCount() uint64

func (*QueryScope) GetComponentCount

func (x *QueryScope) GetComponentCount() uint64

func (*QueryScope) GetComponentType

func (x *QueryScope) GetComponentType() string

func (*QueryScope) GetIndexBytes

func (x *QueryScope) GetIndexBytes() uint64

func (*QueryScope) GetProfileBytes

func (x *QueryScope) GetProfileBytes() uint64

func (*QueryScope) GetProfileCount

func (x *QueryScope) GetProfileCount() uint64

func (*QueryScope) GetSampleCount

func (x *QueryScope) GetSampleCount() uint64

func (*QueryScope) GetSeriesCount

func (x *QueryScope) GetSeriesCount() uint64

func (*QueryScope) GetSymbolBytes

func (x *QueryScope) GetSymbolBytes() uint64

func (*QueryScope) ProtoMessage

func (*QueryScope) ProtoMessage()

func (*QueryScope) ProtoReflect

func (x *QueryScope) ProtoReflect() protoreflect.Message

func (*QueryScope) Reset

func (x *QueryScope) Reset()

func (*QueryScope) String

func (x *QueryScope) String() string

type Sample

type Sample struct {

	// The ids recorded here correspond to a Profile.location.id.
	// The leaf is at location_id[0].
	LocationId []uint64 `protobuf:"varint,1,rep,packed,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
	// The type and unit of each value is defined by the corresponding
	// entry in Profile.sample_type. All samples must have the same
	// number of values, the same as the length of Profile.sample_type.
	// When aggregating multiple samples into a single sample, the
	// result has a list of values that is the element-wise sum of the
	// lists of the originals.
	Value []int64 `protobuf:"varint,2,rep,packed,name=value,proto3" json:"value,omitempty"`
	// label includes additional context for this sample. It can include
	// things like a thread id, allocation size, etc.
	//
	// NOTE: While possible, having multiple values for the same label key is
	// strongly discouraged and should never be used. Most tools (e.g. pprof) do
	// not have good (or any) support for multi-value labels. And an even more
	// discouraged case is having a string label and a numeric label of the same
	// name on a sample.  Again, possible to express, but should not be used.
	Label []*Label `protobuf:"bytes,3,rep,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

Each Sample records values encountered in some program context. The program context is typically a stack trace, perhaps augmented with auxiliary information like the thread-id, some indicator of a higher level request being handled etc.

func (*Sample) Descriptor deprecated

func (*Sample) Descriptor() ([]byte, []int)

Deprecated: Use Sample.ProtoReflect.Descriptor instead.

func (*Sample) GetLabel

func (x *Sample) GetLabel() []*Label

func (*Sample) GetLocationId

func (x *Sample) GetLocationId() []uint64

func (*Sample) GetValue

func (x *Sample) GetValue() []int64

func (*Sample) ProtoMessage

func (*Sample) ProtoMessage()

func (*Sample) ProtoReflect

func (x *Sample) ProtoReflect() protoreflect.Message

func (*Sample) Reset

func (x *Sample) Reset()

func (*Sample) String

func (x *Sample) String() string

type SelectMergeProfileRequest

type SelectMergeProfileRequest struct {
	ProfileTypeID string `protobuf:"bytes,1,opt,name=profile_typeID,json=profileTypeID,proto3" json:"profile_typeID,omitempty"`
	LabelSelector string `protobuf:"bytes,2,opt,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty"`
	// Milliseconds since epoch.
	Start int64 `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
	// Milliseconds since epoch.
	End int64 `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"`
	// Limit the nodes returned to only show the node with the max_node's biggest total
	MaxNodes *int64 `protobuf:"varint,5,opt,name=max_nodes,json=maxNodes,proto3,oneof" json:"max_nodes,omitempty"`
	// Select stack traces that match the provided selector.
	StackTraceSelector *v1.StackTraceSelector `protobuf:"bytes,6,opt,name=stack_trace_selector,json=stackTraceSelector,proto3,oneof" json:"stack_trace_selector,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectMergeProfileRequest) Descriptor deprecated

func (*SelectMergeProfileRequest) Descriptor() ([]byte, []int)

Deprecated: Use SelectMergeProfileRequest.ProtoReflect.Descriptor instead.

func (*SelectMergeProfileRequest) GetEnd

func (x *SelectMergeProfileRequest) GetEnd() int64

func (*SelectMergeProfileRequest) GetLabelSelector

func (x *SelectMergeProfileRequest) GetLabelSelector() string

func (*SelectMergeProfileRequest) GetMaxNodes

func (x *SelectMergeProfileRequest) GetMaxNodes() int64

func (*SelectMergeProfileRequest) GetProfileTypeID

func (x *SelectMergeProfileRequest) GetProfileTypeID() string

func (*SelectMergeProfileRequest) GetStackTraceSelector

func (x *SelectMergeProfileRequest) GetStackTraceSelector() *v1.StackTraceSelector

func (*SelectMergeProfileRequest) GetStart

func (x *SelectMergeProfileRequest) GetStart() int64

func (*SelectMergeProfileRequest) ProtoMessage

func (*SelectMergeProfileRequest) ProtoMessage()

func (*SelectMergeProfileRequest) ProtoReflect

func (*SelectMergeProfileRequest) Reset

func (x *SelectMergeProfileRequest) Reset()

func (*SelectMergeProfileRequest) String

func (x *SelectMergeProfileRequest) String() string

type SelectMergeSpanProfileRequest

type SelectMergeSpanProfileRequest struct {
	ProfileTypeID string   `protobuf:"bytes,1,opt,name=profile_typeID,json=profileTypeID,proto3" json:"profile_typeID,omitempty"`
	LabelSelector string   `protobuf:"bytes,2,opt,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty"`
	SpanSelector  []string `protobuf:"bytes,3,rep,name=span_selector,json=spanSelector,proto3" json:"span_selector,omitempty"`
	// Milliseconds since epoch.
	Start int64 `protobuf:"varint,4,opt,name=start,proto3" json:"start,omitempty"`
	// Milliseconds since epoch.
	End int64 `protobuf:"varint,5,opt,name=end,proto3" json:"end,omitempty"`
	// Limit the nodes returned to only show the node with the max_node's biggest total
	MaxNodes *int64 `protobuf:"varint,6,opt,name=max_nodes,json=maxNodes,proto3,oneof" json:"max_nodes,omitempty"`
	// Profile format specifies the format of profile to be returned.
	// If not specified, the profile will be returned in flame graph format.
	Format ProfileFormat `protobuf:"varint,7,opt,name=format,proto3,enum=querier.v1.ProfileFormat" json:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectMergeSpanProfileRequest) Descriptor deprecated

func (*SelectMergeSpanProfileRequest) Descriptor() ([]byte, []int)

Deprecated: Use SelectMergeSpanProfileRequest.ProtoReflect.Descriptor instead.

func (*SelectMergeSpanProfileRequest) GetEnd

func (*SelectMergeSpanProfileRequest) GetFormat

func (*SelectMergeSpanProfileRequest) GetLabelSelector

func (x *SelectMergeSpanProfileRequest) GetLabelSelector() string

func (*SelectMergeSpanProfileRequest) GetMaxNodes

func (x *SelectMergeSpanProfileRequest) GetMaxNodes() int64

func (*SelectMergeSpanProfileRequest) GetProfileTypeID

func (x *SelectMergeSpanProfileRequest) GetProfileTypeID() string

func (*SelectMergeSpanProfileRequest) GetSpanSelector

func (x *SelectMergeSpanProfileRequest) GetSpanSelector() []string

func (*SelectMergeSpanProfileRequest) GetStart

func (x *SelectMergeSpanProfileRequest) GetStart() int64

func (*SelectMergeSpanProfileRequest) ProtoMessage

func (*SelectMergeSpanProfileRequest) ProtoMessage()

func (*SelectMergeSpanProfileRequest) ProtoReflect

func (*SelectMergeSpanProfileRequest) Reset

func (x *SelectMergeSpanProfileRequest) Reset()

func (*SelectMergeSpanProfileRequest) String

type SelectMergeSpanProfileResponse

type SelectMergeSpanProfileResponse struct {
	Flamegraph *FlameGraph `protobuf:"bytes,1,opt,name=flamegraph,proto3" json:"flamegraph,omitempty"`
	// Pyroscope tree bytes.
	Tree []byte `protobuf:"bytes,2,opt,name=tree,proto3" json:"tree,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectMergeSpanProfileResponse) Descriptor deprecated

func (*SelectMergeSpanProfileResponse) Descriptor() ([]byte, []int)

Deprecated: Use SelectMergeSpanProfileResponse.ProtoReflect.Descriptor instead.

func (*SelectMergeSpanProfileResponse) GetFlamegraph

func (x *SelectMergeSpanProfileResponse) GetFlamegraph() *FlameGraph

func (*SelectMergeSpanProfileResponse) GetTree

func (x *SelectMergeSpanProfileResponse) GetTree() []byte

func (*SelectMergeSpanProfileResponse) ProtoMessage

func (*SelectMergeSpanProfileResponse) ProtoMessage()

func (*SelectMergeSpanProfileResponse) ProtoReflect

func (*SelectMergeSpanProfileResponse) Reset

func (x *SelectMergeSpanProfileResponse) Reset()

func (*SelectMergeSpanProfileResponse) String

type SelectMergeStacktracesRequest

type SelectMergeStacktracesRequest struct {
	ProfileTypeID string `protobuf:"bytes,1,opt,name=profile_typeID,json=profileTypeID,proto3" json:"profile_typeID,omitempty"`
	LabelSelector string `protobuf:"bytes,2,opt,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty"`
	// Milliseconds since epoch.
	Start int64 `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
	// Milliseconds since epoch.
	End int64 `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"`
	// Limit the nodes returned to only show the node with the max_node's biggest total
	MaxNodes *int64 `protobuf:"varint,5,opt,name=max_nodes,json=maxNodes,proto3,oneof" json:"max_nodes,omitempty"`
	// Profile format specifies the format of profile to be returned.
	// If not specified, the profile will be returned in flame graph format.
	Format ProfileFormat `protobuf:"varint,6,opt,name=format,proto3,enum=querier.v1.ProfileFormat" json:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectMergeStacktracesRequest) Descriptor deprecated

func (*SelectMergeStacktracesRequest) Descriptor() ([]byte, []int)

Deprecated: Use SelectMergeStacktracesRequest.ProtoReflect.Descriptor instead.

func (*SelectMergeStacktracesRequest) GetEnd

func (*SelectMergeStacktracesRequest) GetFormat

func (*SelectMergeStacktracesRequest) GetLabelSelector

func (x *SelectMergeStacktracesRequest) GetLabelSelector() string

func (*SelectMergeStacktracesRequest) GetMaxNodes

func (x *SelectMergeStacktracesRequest) GetMaxNodes() int64

func (*SelectMergeStacktracesRequest) GetProfileTypeID

func (x *SelectMergeStacktracesRequest) GetProfileTypeID() string

func (*SelectMergeStacktracesRequest) GetStart

func (x *SelectMergeStacktracesRequest) GetStart() int64

func (*SelectMergeStacktracesRequest) ProtoMessage

func (*SelectMergeStacktracesRequest) ProtoMessage()

func (*SelectMergeStacktracesRequest) ProtoReflect

func (*SelectMergeStacktracesRequest) Reset

func (x *SelectMergeStacktracesRequest) Reset()

func (*SelectMergeStacktracesRequest) String

type SelectMergeStacktracesResponse

type SelectMergeStacktracesResponse struct {
	Flamegraph *FlameGraph `protobuf:"bytes,1,opt,name=flamegraph,proto3" json:"flamegraph,omitempty"`
	// Pyroscope tree bytes.
	Tree []byte `protobuf:"bytes,2,opt,name=tree,proto3" json:"tree,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectMergeStacktracesResponse) Descriptor deprecated

func (*SelectMergeStacktracesResponse) Descriptor() ([]byte, []int)

Deprecated: Use SelectMergeStacktracesResponse.ProtoReflect.Descriptor instead.

func (*SelectMergeStacktracesResponse) GetFlamegraph

func (x *SelectMergeStacktracesResponse) GetFlamegraph() *FlameGraph

func (*SelectMergeStacktracesResponse) GetTree

func (x *SelectMergeStacktracesResponse) GetTree() []byte

func (*SelectMergeStacktracesResponse) ProtoMessage

func (*SelectMergeStacktracesResponse) ProtoMessage()

func (*SelectMergeStacktracesResponse) ProtoReflect

func (*SelectMergeStacktracesResponse) Reset

func (x *SelectMergeStacktracesResponse) Reset()

func (*SelectMergeStacktracesResponse) String

type SelectSeriesRequest

type SelectSeriesRequest struct {
	ProfileTypeID string `protobuf:"bytes,1,opt,name=profile_typeID,json=profileTypeID,proto3" json:"profile_typeID,omitempty"`
	LabelSelector string `protobuf:"bytes,2,opt,name=label_selector,json=labelSelector,proto3" json:"label_selector,omitempty"`
	// Milliseconds since epoch.
	Start int64 `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
	// Milliseconds since epoch.
	End     int64    `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"`
	GroupBy []string `protobuf:"bytes,5,rep,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"`
	Step    float64  `protobuf:"fixed64,6,opt,name=step,proto3" json:"step,omitempty"`
	// Query resolution step width in seconds
	Aggregation *v1.TimeSeriesAggregationType `protobuf:"varint,7,opt,name=aggregation,proto3,enum=types.v1.TimeSeriesAggregationType,oneof" json:"aggregation,omitempty"`
	// Select stack traces that match the provided selector.
	StackTraceSelector *v1.StackTraceSelector `protobuf:"bytes,8,opt,name=stack_trace_selector,json=stackTraceSelector,proto3,oneof" json:"stack_trace_selector,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectSeriesRequest) Descriptor deprecated

func (*SelectSeriesRequest) Descriptor() ([]byte, []int)

Deprecated: Use SelectSeriesRequest.ProtoReflect.Descriptor instead.

func (*SelectSeriesRequest) GetAggregation

func (x *SelectSeriesRequest) GetAggregation() v1.TimeSeriesAggregationType

func (*SelectSeriesRequest) GetEnd

func (x *SelectSeriesRequest) GetEnd() int64

func (*SelectSeriesRequest) GetGroupBy

func (x *SelectSeriesRequest) GetGroupBy() []string

func (*SelectSeriesRequest) GetLabelSelector

func (x *SelectSeriesRequest) GetLabelSelector() string

func (*SelectSeriesRequest) GetProfileTypeID

func (x *SelectSeriesRequest) GetProfileTypeID() string

func (*SelectSeriesRequest) GetStackTraceSelector

func (x *SelectSeriesRequest) GetStackTraceSelector() *v1.StackTraceSelector

func (*SelectSeriesRequest) GetStart

func (x *SelectSeriesRequest) GetStart() int64

func (*SelectSeriesRequest) GetStep

func (x *SelectSeriesRequest) GetStep() float64

func (*SelectSeriesRequest) ProtoMessage

func (*SelectSeriesRequest) ProtoMessage()

func (*SelectSeriesRequest) ProtoReflect

func (x *SelectSeriesRequest) ProtoReflect() protoreflect.Message

func (*SelectSeriesRequest) Reset

func (x *SelectSeriesRequest) Reset()

func (*SelectSeriesRequest) String

func (x *SelectSeriesRequest) String() string

type SelectSeriesResponse

type SelectSeriesResponse struct {
	Series []*v1.Series `protobuf:"bytes,1,rep,name=series,proto3" json:"series,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectSeriesResponse) Descriptor deprecated

func (*SelectSeriesResponse) Descriptor() ([]byte, []int)

Deprecated: Use SelectSeriesResponse.ProtoReflect.Descriptor instead.

func (*SelectSeriesResponse) GetSeries

func (x *SelectSeriesResponse) GetSeries() []*v1.Series

func (*SelectSeriesResponse) ProtoMessage

func (*SelectSeriesResponse) ProtoMessage()

func (*SelectSeriesResponse) ProtoReflect

func (x *SelectSeriesResponse) ProtoReflect() protoreflect.Message

func (*SelectSeriesResponse) Reset

func (x *SelectSeriesResponse) Reset()

func (*SelectSeriesResponse) String

func (x *SelectSeriesResponse) String() string

type SeriesRequest

type SeriesRequest struct {
	Matchers   []string `protobuf:"bytes,1,rep,name=matchers,proto3" json:"matchers,omitempty"`
	LabelNames []string `protobuf:"bytes,2,rep,name=label_names,json=labelNames,proto3" json:"label_names,omitempty"`
	// Milliseconds since epoch. If missing or zero, only the ingesters will be
	// queried.
	Start int64 `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
	// Milliseconds since epoch. If missing or zero, only the ingesters will be
	// queried.
	End int64 `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*SeriesRequest) Descriptor deprecated

func (*SeriesRequest) Descriptor() ([]byte, []int)

Deprecated: Use SeriesRequest.ProtoReflect.Descriptor instead.

func (*SeriesRequest) GetEnd

func (x *SeriesRequest) GetEnd() int64

func (*SeriesRequest) GetLabelNames

func (x *SeriesRequest) GetLabelNames() []string

func (*SeriesRequest) GetMatchers

func (x *SeriesRequest) GetMatchers() []string

func (*SeriesRequest) GetStart

func (x *SeriesRequest) GetStart() int64

func (*SeriesRequest) ProtoMessage

func (*SeriesRequest) ProtoMessage()

func (*SeriesRequest) ProtoReflect

func (x *SeriesRequest) ProtoReflect() protoreflect.Message

func (*SeriesRequest) Reset

func (x *SeriesRequest) Reset()

func (*SeriesRequest) String

func (x *SeriesRequest) String() string

type SeriesResponse

type SeriesResponse struct {
	LabelsSet []*v1.Labels `protobuf:"bytes,2,rep,name=labels_set,json=labelsSet,proto3" json:"labels_set,omitempty"`
	// contains filtered or unexported fields
}

func (*SeriesResponse) Descriptor deprecated

func (*SeriesResponse) Descriptor() ([]byte, []int)

Deprecated: Use SeriesResponse.ProtoReflect.Descriptor instead.

func (*SeriesResponse) GetLabelsSet

func (x *SeriesResponse) GetLabelsSet() []*v1.Labels

func (*SeriesResponse) ProtoMessage

func (*SeriesResponse) ProtoMessage()

func (*SeriesResponse) ProtoReflect

func (x *SeriesResponse) ProtoReflect() protoreflect.Message

func (*SeriesResponse) Reset

func (x *SeriesResponse) Reset()

func (*SeriesResponse) String

func (x *SeriesResponse) String() string

type SetSettingsRequest

type SetSettingsRequest struct {
	Setting *Setting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSettingsRequest) Descriptor deprecated

func (*SetSettingsRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetSettingsRequest.ProtoReflect.Descriptor instead.

func (*SetSettingsRequest) GetSetting

func (x *SetSettingsRequest) GetSetting() *Setting

func (*SetSettingsRequest) ProtoMessage

func (*SetSettingsRequest) ProtoMessage()

func (*SetSettingsRequest) ProtoReflect

func (x *SetSettingsRequest) ProtoReflect() protoreflect.Message

func (*SetSettingsRequest) Reset

func (x *SetSettingsRequest) Reset()

func (*SetSettingsRequest) String

func (x *SetSettingsRequest) String() string

type SetSettingsResponse

type SetSettingsResponse struct {
	Setting *Setting `protobuf:"bytes,1,opt,name=setting,proto3" json:"setting,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSettingsResponse) Descriptor deprecated

func (*SetSettingsResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetSettingsResponse.ProtoReflect.Descriptor instead.

func (*SetSettingsResponse) GetSetting

func (x *SetSettingsResponse) GetSetting() *Setting

func (*SetSettingsResponse) ProtoMessage

func (*SetSettingsResponse) ProtoMessage()

func (*SetSettingsResponse) ProtoReflect

func (x *SetSettingsResponse) ProtoReflect() protoreflect.Message

func (*SetSettingsResponse) Reset

func (x *SetSettingsResponse) Reset()

func (*SetSettingsResponse) String

func (x *SetSettingsResponse) String() string

type Setting

type Setting struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value      string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	ModifiedAt int64  `protobuf:"varint,3,opt,name=modifiedAt,proto3" json:"modifiedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*Setting) Descriptor deprecated

func (*Setting) Descriptor() ([]byte, []int)

Deprecated: Use Setting.ProtoReflect.Descriptor instead.

func (*Setting) GetModifiedAt

func (x *Setting) GetModifiedAt() int64

func (*Setting) GetName

func (x *Setting) GetName() string

func (*Setting) GetValue

func (x *Setting) GetValue() string

func (*Setting) ProtoMessage

func (*Setting) ProtoMessage()

func (*Setting) ProtoReflect

func (x *Setting) ProtoReflect() protoreflect.Message

func (*Setting) Reset

func (x *Setting) Reset()

func (*Setting) String

func (x *Setting) String() string

type SettingsServiceClient

type SettingsServiceClient interface {
	Get(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error)
	Set(ctx context.Context, in *SetSettingsRequest, opts ...grpc.CallOption) (*SetSettingsResponse, error)
}

SettingsServiceClient is the client API for SettingsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type SettingsServiceServer

type SettingsServiceServer interface {
	Get(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error)
	Set(context.Context, *SetSettingsRequest) (*SetSettingsResponse, error)
	// contains filtered or unexported methods
}

SettingsServiceServer is the server API for SettingsService service. All implementations must embed UnimplementedSettingsServiceServer for forward compatibility.

type UnimplementedQuerierServiceServer

type UnimplementedQuerierServiceServer struct{}

UnimplementedQuerierServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedQuerierServiceServer) AnalyzeQuery

func (UnimplementedQuerierServiceServer) Diff

func (UnimplementedQuerierServiceServer) GetProfileStats

func (UnimplementedQuerierServiceServer) LabelNames

func (UnimplementedQuerierServiceServer) LabelValues

func (UnimplementedQuerierServiceServer) ProfileTypes

func (UnimplementedQuerierServiceServer) SelectMergeProfile

func (UnimplementedQuerierServiceServer) SelectSeries

func (UnimplementedQuerierServiceServer) Series

type UnimplementedSettingsServiceServer

type UnimplementedSettingsServiceServer struct{}

UnimplementedSettingsServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedSettingsServiceServer) Get

func (UnimplementedSettingsServiceServer) Set

type UnsafeQuerierServiceServer

type UnsafeQuerierServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeQuerierServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QuerierServiceServer will result in compilation errors.

type UnsafeSettingsServiceServer

type UnsafeSettingsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSettingsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SettingsServiceServer will result in compilation errors.

type ValueType

type ValueType struct {
	Type int64 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` // Index into string table.
	Unit int64 `protobuf:"varint,2,opt,name=unit,proto3" json:"unit,omitempty"` // Index into string table.
	// contains filtered or unexported fields
}

ValueType describes the semantics and measurement units of a value.

func (*ValueType) Descriptor deprecated

func (*ValueType) Descriptor() ([]byte, []int)

Deprecated: Use ValueType.ProtoReflect.Descriptor instead.

func (*ValueType) GetType

func (x *ValueType) GetType() int64

func (*ValueType) GetUnit

func (x *ValueType) GetUnit() int64

func (*ValueType) ProtoMessage

func (*ValueType) ProtoMessage()

func (*ValueType) ProtoReflect

func (x *ValueType) ProtoReflect() protoreflect.Message

func (*ValueType) Reset

func (x *ValueType) Reset()

func (*ValueType) String

func (x *ValueType) String() string

Directories

Path Synopsis
google
v1
types
v1

Jump to

Keyboard shortcuts

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