Documentation ¶
Index ¶
- type DirectoryMonitor
- func (monitor *DirectoryMonitor) Gather(_ telegraf.Accumulator) error
- func (monitor *DirectoryMonitor) Init() error
- func (monitor *DirectoryMonitor) Monitor()
- func (*DirectoryMonitor) SampleConfig() string
- func (monitor *DirectoryMonitor) SetParserFunc(fn parsers.ParserFunc)
- func (monitor *DirectoryMonitor) Start(acc telegraf.Accumulator) error
- func (monitor *DirectoryMonitor) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectoryMonitor ¶
type DirectoryMonitor struct { Directory string `toml:"directory"` FinishedDirectory string `toml:"finished_directory"` ErrorDirectory string `toml:"error_directory"` FileTag string `toml:"file_tag"` FilesToMonitor []string `toml:"files_to_monitor"` FilesToIgnore []string `toml:"files_to_ignore"` MaxBufferedMetrics int `toml:"max_buffered_metrics"` DirectoryDurationThreshold config.Duration `toml:"directory_duration_threshold"` Log telegraf.Logger `toml:"-"` FileQueueSize int `toml:"file_queue_size"` ParseMethod string `toml:"parse_method"` // contains filtered or unexported fields }
func (*DirectoryMonitor) Gather ¶
func (monitor *DirectoryMonitor) Gather(_ telegraf.Accumulator) error
func (*DirectoryMonitor) Init ¶
func (monitor *DirectoryMonitor) Init() error
func (*DirectoryMonitor) Monitor ¶
func (monitor *DirectoryMonitor) Monitor()
func (*DirectoryMonitor) SampleConfig ¶
func (*DirectoryMonitor) SampleConfig() string
func (*DirectoryMonitor) SetParserFunc ¶
func (monitor *DirectoryMonitor) SetParserFunc(fn parsers.ParserFunc)
func (*DirectoryMonitor) Start ¶
func (monitor *DirectoryMonitor) Start(acc telegraf.Accumulator) error
func (*DirectoryMonitor) Stop ¶
func (monitor *DirectoryMonitor) Stop()
Click to show internal directories.
Click to hide internal directories.