Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NSQConsumer ¶
type NSQConsumer struct { Server string `toml:"server"` Nsqd []string `toml:"nsqd"` Nsqlookupd []string `toml:"nsqlookupd"` Topic string `toml:"topic"` Channel string `toml:"channel"` MaxInFlight int `toml:"max_in_flight"` MaxUndeliveredMessages int `toml:"max_undelivered_messages"` Log telegraf.Logger // contains filtered or unexported fields }
NSQConsumer represents the configuration of the plugin
func (*NSQConsumer) Description ¶
func (n *NSQConsumer) Description() string
Description prints description string
func (*NSQConsumer) Gather ¶
func (n *NSQConsumer) Gather(_ telegraf.Accumulator) error
Gather is a noop
func (*NSQConsumer) SampleConfig ¶
func (n *NSQConsumer) SampleConfig() string
SampleConfig returns config values for generating a sample configuration file
func (*NSQConsumer) SetParser ¶
func (n *NSQConsumer) SetParser(parser parsers.Parser)
SetParser takes the data_format from the config and finds the right parser for that format
func (*NSQConsumer) Start ¶
func (n *NSQConsumer) Start(ac telegraf.Accumulator) error
Start pulls data from nsq
Click to show internal directories.
Click to hide internal directories.