Documentation ¶
Index ¶
- func Create(server *veneur.Server, name string, logger *logrus.Entry, config veneur.Config, ...) (sinks.MetricSink, error)
- func MigrateConfig(config *veneur.Config)
- func ParseConfig(name string, config interface{}) (veneur.MetricSinkConfig, error)
- type File
- type FileSystem
- type LocalFileSink
- type LocalFileSinkConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create( server *veneur.Server, name string, logger *logrus.Entry, config veneur.Config, sinkConfig veneur.MetricSinkConfig, ) (sinks.MetricSink, error)
Create creates a new local file sink for metrics. This function should match the signature of a value in veneur.MetricSinkTypes, and is intended to be passed into veneur.NewFromConfig to be called based on the provided configuration.
func MigrateConfig ¶
func MigrateConfig(config *veneur.Config)
TODO(arnavdugar): Remove this once the old configuration format has been removed.
func ParseConfig ¶
ParseConfig decodes the map config for an local file sink into a LocalFileSinkConfig struct.
Types ¶
type FileSystem ¶
type LocalFileSink ¶
type LocalFileSink struct { Delimiter rune FilePath string FileSystem FileSystem Logger *logrus.Entry // contains filtered or unexported fields }
LocalFileSink is the LocalFile plugin that we'll use in Veneur
func NewLocalFileSink ¶
func NewLocalFileSink( config LocalFileSinkConfig, filesystem FileSystem, hostname string, logger *logrus.Entry, name string, ) *LocalFileSink
func (*LocalFileSink) Flush ¶
func (sink *LocalFileSink) Flush( ctx context.Context, metrics []samplers.InterMetric, ) error
Flush the metrics from the LocalFilePlugin
func (*LocalFileSink) FlushOtherSamples ¶
func (sink *LocalFileSink) FlushOtherSamples( ctx context.Context, samples []ssf.SSFSample, )
func (*LocalFileSink) Name ¶
func (sink *LocalFileSink) Name() string
Name is the name of the LocalFilePlugin, i.e., "localfile"
type LocalFileSinkConfig ¶
Click to show internal directories.
Click to hide internal directories.