flusher

package
v1.1.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 10 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 {
	WALDir            string        `yaml:"wal_dir"`
	ConcurrentFlushes int           `yaml:"concurrent_flushes"`
	FlushOpTimeout    time.Duration `yaml:"flush_op_timeout"`
}

Config for an Ingester.

func (*Config) RegisterFlags

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

RegisterFlags adds the flags required to config this to the given FlagSet

type Flusher

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

Flusher is designed to be used as a job to flush the chunks from the WAL on disk.

func New

func New(
	cfg Config,
	ingesterConfig ingester.Config,
	clientConfig client.Config,
	chunkStore ingester.ChunkStore,
	registerer prometheus.Registerer,
) (*Flusher, error)

New constructs a new Flusher and flushes the data from the WAL. The returned Flusher has no other operations.

Jump to

Keyboard shortcuts

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