Documentation ¶
Index ¶
- type DirectoryMonitor
- func (monitor *DirectoryMonitor) Description() string
- func (monitor *DirectoryMonitor) Gather(acc telegraf.Accumulator) error
- func (monitor *DirectoryMonitor) Init() error
- func (monitor *DirectoryMonitor) Monitor(acc telegraf.Accumulator)
- func (monitor *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"` 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"` // contains filtered or unexported fields }
func (*DirectoryMonitor) Description ¶
func (monitor *DirectoryMonitor) Description() string
func (*DirectoryMonitor) Gather ¶
func (monitor *DirectoryMonitor) Gather(acc telegraf.Accumulator) error
func (*DirectoryMonitor) Init ¶
func (monitor *DirectoryMonitor) Init() error
func (*DirectoryMonitor) Monitor ¶
func (monitor *DirectoryMonitor) Monitor(acc telegraf.Accumulator)
func (*DirectoryMonitor) SampleConfig ¶
func (monitor *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.