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"`
}
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.
Click to show internal directories.
Click to hide internal directories.