Documentation
¶
Index ¶
- Constants
- Variables
- func BinaryFieldFromRecord(ar arrow.Record, name string) (*array.Binary, error)
- func BooleanFieldFromRecord(ar arrow.Record, name string) (*array.Boolean, error)
- func MatcherToBooleanExpression(matcher *labels.Matcher) (logicalplan.Expr, error)
- func MatchersToBooleanExpressions(matchers []*labels.Matcher) ([]logicalplan.Expr, error)
- func NormalizedProfileToParquetBuffer(w io.Writer, schema *dynparquet.Schema, ls labels.Labels, ...) error
- func QueryToFilterExprs(query string) (profile.Meta, []logicalplan.Expr, error)
- func SampleToParquetRow(schema *dynparquet.Schema, row parquet.Row, ...) parquet.Row
- func Schema() (*dynparquet.Schema, error)
- type ArrowToProfileConverter
- type Engine
- type ErrMissingColumn
- type Ingester
- type Normalizer
- func (n *Normalizer) NormalizeFunctions(ctx context.Context, functions []*pprofpb.Function, stringTable []string) ([]*pb.Function, error)
- func (n *Normalizer) NormalizeLocations(ctx context.Context, locations []*pprofpb.Location, ...) ([]*pb.Location, error)
- func (n *Normalizer) NormalizeMappings(ctx context.Context, mappings []*pprofpb.Mapping, stringTable []string) ([]mappingNormalizationInfo, error)
- func (n *Normalizer) NormalizePprof(ctx context.Context, name string, takenLabelNames map[string]struct{}, ...) ([]*profile.NormalizedProfile, error)
- func (n *Normalizer) NormalizeStacktraces(ctx context.Context, samples []*pprofpb.Sample, locations []*pb.Location) ([]*pb.Stacktrace, error)
- type Querier
- func (q *Querier) Labels(ctx context.Context, match []string, start, end time.Time) ([]string, error)
- func (q *Querier) ProfileTypes(ctx context.Context) ([]*pb.ProfileType, error)
- func (q *Querier) QueryMerge(ctx context.Context, query string, start, end time.Time) (*profile.Profile, error)
- func (q *Querier) QueryRange(ctx context.Context, query string, startTime, endTime time.Time, limit uint32) ([]*pb.MetricsSeries, error)
- func (q *Querier) QuerySingle(ctx context.Context, query string, time time.Time) (*profile.Profile, error)
- func (q *Querier) Values(ctx context.Context, labelName string, match []string, start, end time.Time) ([]string, error)
- type Table
Constants ¶
View Source
const ( SchemaName = "parca" // The columns are sorted by their name in the schema too. ColumnDuration = "duration" ColumnLabels = "labels" ColumnName = "name" ColumnPeriod = "period" ColumnPeriodType = "period_type" ColumnPeriodUnit = "period_unit" ColumnPprofLabels = "pprof_labels" ColumnPprofNumLabels = "pprof_num_labels" ColumnSampleType = "sample_type" ColumnSampleUnit = "sample_unit" ColumnStacktrace = "stacktrace" ColumnTimestamp = "timestamp" ColumnValue = "value" )
View Source
const (
UnsymolizableLocationAddress = 0x0
)
Variables ¶
View Source
var ( ErrTimestampColumnNotFound = errors.New("timestamp column not found") ErrValueColumnNotFound = errors.New("value column not found") )
View Source
var ErrMissingNameLabel = errors.New("missing __name__ label")
Functions ¶
func BinaryFieldFromRecord ¶ added in v0.13.0
func BooleanFieldFromRecord ¶ added in v0.13.0
func MatcherToBooleanExpression ¶ added in v0.13.0
func MatcherToBooleanExpression(matcher *labels.Matcher) (logicalplan.Expr, error)
func MatchersToBooleanExpressions ¶ added in v0.13.0
func MatchersToBooleanExpressions(matchers []*labels.Matcher) ([]logicalplan.Expr, error)
func NormalizedProfileToParquetBuffer ¶ added in v0.12.0
func NormalizedProfileToParquetBuffer(w io.Writer, schema *dynparquet.Schema, ls labels.Labels, p *profile.NormalizedProfile) error
NormalizedProfileToParquetBuffer converts a normalized profile to a Parquet buffer. The passed labels must be sorted.
func QueryToFilterExprs ¶ added in v0.13.0
func SampleToParquetRow ¶ added in v0.12.0
func SampleToParquetRow( schema *dynparquet.Schema, row parquet.Row, profileLabelNames, profileNumLabelNames []string, ls labels.Labels, meta profile.Meta, s *profile.NormalizedSample, ) parquet.Row
SampleToParquetRow converts a sample to a Parquet row. The passed labels must be sorted.
func Schema ¶
func Schema() (*dynparquet.Schema, error)
Types ¶
type ArrowToProfileConverter ¶ added in v0.13.0
type ArrowToProfileConverter struct {
// contains filtered or unexported fields
}
func NewArrowToProfileConverter ¶ added in v0.13.0
func NewArrowToProfileConverter( tracer trace.Tracer, m pb.MetastoreServiceClient, ) *ArrowToProfileConverter
func (*ArrowToProfileConverter) SymbolizeNormalizedProfile ¶ added in v0.13.0
func (c *ArrowToProfileConverter) SymbolizeNormalizedProfile(ctx context.Context, p *profile.NormalizedProfile) (*profile.Profile, error)
type ErrMissingColumn ¶ added in v0.12.0
func (ErrMissingColumn) Error ¶ added in v0.12.0
func (e ErrMissingColumn) Error() string
type Ingester ¶ added in v0.12.0
type Ingester struct {
// contains filtered or unexported fields
}
func NewIngester ¶ added in v0.12.0
func NewIngester( logger log.Logger, normalizer *Normalizer, table Table, schema *dynparquet.Schema, bufferPool *sync.Pool, ) *Ingester
func (Ingester) IngestProfile ¶ added in v0.12.0
type Normalizer ¶ added in v0.12.0
type Normalizer struct {
// contains filtered or unexported fields
}
func NewNormalizer ¶ added in v0.12.0
func NewNormalizer(metastore pb.MetastoreServiceClient) *Normalizer
func (*Normalizer) NormalizeFunctions ¶ added in v0.12.0
func (*Normalizer) NormalizeLocations ¶ added in v0.12.0
func (*Normalizer) NormalizeMappings ¶ added in v0.12.0
func (*Normalizer) NormalizePprof ¶ added in v0.12.0
func (*Normalizer) NormalizeStacktraces ¶ added in v0.12.0
func (n *Normalizer) NormalizeStacktraces(ctx context.Context, samples []*pprofpb.Sample, locations []*pb.Location) ([]*pb.Stacktrace, error)
type Querier ¶ added in v0.13.0
type Querier struct {
// contains filtered or unexported fields
}
func NewQuerier ¶ added in v0.13.0
func NewQuerier( tracer trace.Tracer, engine Engine, tableName string, metastore metastorepb.MetastoreServiceClient, ) *Querier
func (*Querier) ProfileTypes ¶ added in v0.13.0
func (*Querier) QueryMerge ¶ added in v0.13.0
func (*Querier) QueryRange ¶ added in v0.13.0
func (*Querier) QuerySingle ¶ added in v0.13.0
Click to show internal directories.
Click to hide internal directories.