Documentation
¶
Index ¶
- Variables
- type Config
- type File
- func (f *File) Close() error
- func (f *File) Init(ctx context.Context, cfg map[string]interface{}, opts ...outputs.Option) error
- func (f *File) Metrics() []prometheus.Collector
- func (f *File) SetEventProcessors(ps map[string]map[string]interface{}, log *log.Logger)
- func (f *File) SetLogger(logger *log.Logger)
- func (f *File) String() string
- func (f *File) Write(ctx context.Context, rsp proto.Message, meta outputs.Meta)
Constants ¶
This section is empty.
Variables ¶
View Source
var NumberOfReceivedMsgs = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "number_of_received_messages_total", Help: "Number of messages received by file output", }, []string{"file_name"})
View Source
var NumberOfWrittenBytes = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "number_of_written_bytes_total", Help: "Number of bytes written to file", }, []string{"file_name"})
View Source
var NumberOfWrittenMsgs = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "number_of_written_messages_total", Help: "Number of messages written to file", }, []string{"file_name"})
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { FileName string `mapstructure:"filename,omitempty"` FileType string `mapstructure:"file-type,omitempty"` Format string `mapstructure:"format,omitempty"` Multiline bool `mapstructure:"multiline,omitempty"` Indent string `mapstructure:"indent,omitempty"` Separator string `mapstructure:"separator,omitempty"` EventProcessors []string `mapstructure:"event-processors,omitempty"` ConcurrencyLimit int `mapstructure:"concurrency-limit,omitempty"` }
Config //
Click to show internal directories.
Click to hide internal directories.