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) SetLogger(logger *log.Logger)
- func (f *File) String() string
- func (f *File) Write(_ 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"`
}
Config //
Click to show internal directories.
Click to hide internal directories.