storage

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: AGPL-3.0 Imports: 20 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 {
	// Path to store the WAL. Each tenant will be stored in its own subdirectory.
	Path string `yaml:"path"`

	Wal agentOptions `yaml:"wal"`

	// How long to wait when flushing sample on shutdown
	RemoteWriteFlushDeadline time.Duration `yaml:"remote_write_flush_deadline"`

	// Prometheus remote write config
	// https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write
	RemoteWrite []prometheus_config.RemoteWriteConfig `yaml:"remote_write,omitempty"`
}

func (*Config) RegisterFlagsAndApplyDefaults

func (cfg *Config) RegisterFlagsAndApplyDefaults(prefix string, f *flag.FlagSet)

type Storage

type Storage interface {
	storage.Appendable

	// Close closes the storage and all its underlying resources.
	Close() error
}

func New

func New(cfg *Config, tenant string, reg prometheus.Registerer, logger log.Logger) (Storage, error)

New creates a metrics WAL that remote writes its data.

Jump to

Keyboard shortcuts

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