ingester

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: AGPL-3.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func (*Config) RegisterFlags

func (cfg *Config) RegisterFlags(f *flag.FlagSet)

RegisterFlags registers the flags.

func (*Config) Validate

func (cfg *Config) Validate() error

type Ingester

type Ingester struct {
	services.Service
	// contains filtered or unexported fields
}

func New

func New(phlarectx context.Context, cfg Config, dbConfig phlaredb.Config, storageBucket phlareobj.Bucket, limits Limits, queryStoreAfter time.Duration) (*Ingester, error)

func (*Ingester) BlockMetadata added in v1.2.0

BlockMetadata returns the metadata of the instance's blocks

func (*Ingester) CheckReady

func (i *Ingester) CheckReady(ctx context.Context) error

CheckReady is used to indicate to k8s when the ingesters are ready for the addition removal of another ingester. Returns 204 when the ingester is ready, 500 otherwise.

func (*Ingester) GetOrCreateInstance

func (i *Ingester) GetOrCreateInstance(tenantID string) (*instance, error)

func (*Ingester) LabelNames

LabelNames returns the possible label names.

func (*Ingester) LabelValues

LabelValues returns the possible label values for a given label name.

func (*Ingester) MergeSpanProfile added in v1.2.0

func (*Ingester) ProfileTypes

ProfileTypes returns the possible profile types.

func (*Ingester) Series

Series returns labels series for the given set of matchers.

func (*Ingester) TransferOut

func (i *Ingester) TransferOut(ctx context.Context) error

type Limiter

type Limiter interface {
	// AllowProfile returns an error if the profile is not allowed to be ingested.
	// The error is a validation error and can be out of order or max series limit reached.
	AllowProfile(fp model.Fingerprint, lbs phlaremodel.Labels, tsNano int64) error
	Stop()
}

func NewLimiter

func NewLimiter(tenantID string, limits Limits, ring RingCount, replicationFactor int) Limiter

type Limits

type Limits interface {
	MaxLocalSeriesPerTenant(tenantID string) int
	MaxGlobalSeriesPerTenant(tenantID string) int
	IngestionTenantShardSize(tenantID string) int
}

type RingCount

type RingCount interface {
	HealthyInstancesCount() int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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