remote

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWriteClient

func NewWriteClient(conf *ClientConfig) (remote.WriteClient, error)

Types

type ClientConfig

type ClientConfig = remote.ClientConfig

type Write

type Write struct {

	// BatchSize is the amount of samples that are aggregated into a single
	// remote write request
	BatchSize int
	// BatchMaxDelay is the maximum delay acceptable for a batch to wait to
	// reach the BatchSize
	BatchMaxDelay time.Duration
	// contains filtered or unexported fields
}

func NewWrite

func NewWrite(opts ...WriteOpts) *Write

func (*Write) Run

func (w *Write) Run(ctx context.Context, sampleCh chan pulsar.ReceivedSample, client remote.WriteClient) error

type WriteOpts

type WriteOpts func(o *Write)

func WithLogger

func WithLogger(l log.Logger) WriteOpts

func WithMetrics

func WithMetrics(m *metrics.Metrics) WriteOpts

Jump to

Keyboard shortcuts

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