nozzle

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BATCH_FLUSH_INTERVAL = 500 * time.Millisecond
	BATCH_CHANNEL_SIZE   = 512
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Nozzle

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

Nozzle reads envelopes and writes points to metric-store.

func NewNozzle

func NewNozzle(c StreamConnector, ingressAddr string, tlsConfig *tls.Config, shardId string, nodeIndex int, enableEnvelopeSelector bool, envelopSelectorTags []string, opts ...Option) *Nozzle

func (*Nozzle) Start

func (n *Nozzle) Start()

Start() starts reading envelopes from the logs provider and writes them to metric-store.

type Option added in v1.4.3

type Option func(*Nozzle)

func WithNozzleDebugRegistrar

func WithNozzleDebugRegistrar(m metrics.Registrar) Option

func WithNozzleLogger

func WithNozzleLogger(l *logger.Logger) Option

WithNozzleLogger returns a Option that configures a nozzle's logger. It defaults to silent logging.

func WithNozzleTimerRollup

func WithNozzleTimerRollup(interval time.Duration, totalRollupTags, durationRollupTags []string) Option

func WithNozzleTimerRollupBufferSize

func WithNozzleTimerRollupBufferSize(size uint) Option

type StreamConnector

type StreamConnector interface {
	// Stream creates a EnvelopeStream for the given request.
	Stream(ctx context.Context, req *loggregator_v2.EgressBatchRequest) loggregator.EnvelopeStream
}

StreamConnector reads envelopes from the the logs provider.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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