tracepoint

package
v0.0.0-...-22113b6 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0 Imports: 28 Imported by: 0

README

Tracepoint

This module is responsible for handling requests for tracepoint data. This module works in a similar way to the querier, we create a worker to poll the fontend services for requests and then work each request here then return the response.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrReadOnly = errors.New("tracepoint is shutting down")

ErrReadOnly is returned when we are shutting down

Functions

This section is empty.

Types

type Config

type Config struct {
	LifecyclerConfig ring.LifecyclerConfig `yaml:"lifecycler,omitempty"`

	MaxBlockDuration     time.Duration `yaml:"max_block_duration"`
	MaxBlockBytes        uint64        `yaml:"max_block_bytes"`
	CompleteBlockTimeout time.Duration `yaml:"complete_block_timeout"`
	OverrideRingKey      string        `yaml:"override_ring_key"`

	Client client.Config `yaml:"client"`

	API api.Config `yaml:"api"`
}

Config for an ingester.

func (*Config) RegisterFlagsAndApplyDefaults

func (cfg *Config) RegisterFlagsAndApplyDefaults(prefix string, f *flag.FlagSet)

RegisterFlagsAndApplyDefaults registers the flags.

type TPService

type TPService struct {
	services.Service
	deeppb.UnimplementedTracepointConfigServiceServer
	// contains filtered or unexported fields
}

func New

func New(cfg Config, store storage.Store, logger gkLog.Logger, reg prometheus.Registerer) (*TPService, error)

New will create a new TPService that handles reading and writing tracepoint changes to disk

func (*TPService) CreateTracepoint

func (*TPService) DeleteTracepoint

func (*TPService) ExecuteDeepQl

func (ts *TPService) ExecuteDeepQl(ctx context.Context, req *deeppb.DeepQlRequest) (*deeppb.DeepQlResponse, error)

func (*TPService) Flush

func (ts *TPService) Flush()

func (*TPService) LoadTracepoints

func (*TPService) TransferOut

func (ts *TPService) TransferOut(context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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