nozzle

package
v1.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricService added in v1.7.0

type MetricService struct {
	metricspb.MetricsServiceServer
	// contains filtered or unexported fields
}

func NewMetricService added in v1.7.0

func NewMetricService(client *ingressclient.IngressClient, opts ...MetricServiceOptions) *MetricService

func (*MetricService) AllowListedMetric added in v1.7.0

func (s *MetricService) AllowListedMetric(tags map[string]string) bool

func (*MetricService) Export added in v1.7.0

Export processes received metric data.

func (*MetricService) StartListening added in v1.7.0

func (s *MetricService) StartListening()

func (*MetricService) Stop added in v1.7.0

func (s *MetricService) Stop()

type MetricServiceOptions added in v1.7.0

type MetricServiceOptions func(*MetricService)

func WithMetricFiltering added in v1.7.0

func WithMetricFiltering(allowListTags []string, filterToAppMetrics bool) MetricServiceOptions

func WithMetricOtelDebugRegistrar added in v1.7.0

func WithMetricOtelDebugRegistrar(m metrics.Registrar) MetricServiceOptions

func WithMetricOtelLogger added in v1.7.0

func WithMetricOtelLogger(l *logger.Logger) MetricServiceOptions

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, filterMetrics bool, allowListTags []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 OtelServer added in v1.7.0

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

func NewOtelServer added in v1.7.0

func NewOtelServer(
	log *logger.Logger,
	ms *MetricService,
	ts *TraceService,
) *OtelServer

func (*OtelServer) Close added in v1.7.0

func (s *OtelServer) Close() error

func (*OtelServer) Start added in v1.7.0

func (s *OtelServer) Start(addr string, otelTlsConfig *tls.Config)

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.

type TraceService added in v1.7.0

type TraceService struct {
	tracepb.TraceServiceServer
	// contains filtered or unexported fields
}

func NewTraceService added in v1.7.0

func NewTraceService(client *ingressclient.IngressClient, nodeIndex int, opts ...TraceServiceOptions) *TraceService

func (*TraceService) Export added in v1.7.0

Function called with registry of TraceServiceServer

func (*TraceService) StartListening added in v1.7.0

func (s *TraceService) StartListening()

func (*TraceService) Stop added in v1.7.0

func (s *TraceService) Stop()

type TraceServiceOptions added in v1.7.0

type TraceServiceOptions func(*TraceService)

func WithOtelTimerRollup added in v1.7.0

func WithOtelTimerRollup(interval time.Duration, totalRollupTags, durationRollupTags []string) TraceServiceOptions

func WithOtelTimerRollupBufferSize added in v1.7.0

func WithOtelTimerRollupBufferSize(size uint) TraceServiceOptions

func WithTraceFiltering added in v1.7.0

func WithTraceFiltering(allowListTags []string, filterToAppMetrics bool) TraceServiceOptions

func WithTraceOtelDebugRegistrar added in v1.7.0

func WithTraceOtelDebugRegistrar(m metrics.Registrar) TraceServiceOptions

func WithTraceOtelLogger added in v1.7.0

func WithTraceOtelLogger(l *logger.Logger) TraceServiceOptions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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