telegraf/plugins/inputs/nsq_consumer
Trevor Pounds ee056278f5 Enable gofmt code simplification (#4887) 2018-10-19 13:32:54 -07:00
..
README.md Add support for NSQLookupd to nsq_consumer (#3215) 2017-09-25 16:33:05 -07:00
nsq_consumer.go Add support for NSQLookupd to nsq_consumer (#3215) 2017-09-25 16:33:05 -07:00
nsq_consumer_test.go Enable gofmt code simplification (#4887) 2018-10-19 13:32:54 -07:00

README.md

NSQ Consumer Input Plugin

The NSQ consumer plugin polls a specified NSQD topic and adds messages to InfluxDB. This plugin allows a message to be in any of the supported data_format types.

Configuration

# Read metrics from NSQD topic(s)
[[inputs.nsq_consumer]]
  ## Server option still works but is deprecated, we just prepend it to the nsqd array.
  # server = "localhost:4150"
  ## An array representing the NSQD TCP HTTP Endpoints
  nsqd = ["localhost:4150"]
  ## An array representing the NSQLookupd HTTP Endpoints
  nsqlookupd = ["localhost:4161"]
  topic = "telegraf"
  channel = "consumer"
  max_in_flight = 100

  ## Data format to consume.
  ## Each data format has its own unique set of configuration options, read
  ## more about them here:
  ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  data_format = "influx"

Testing

The nsq_consumer_test mocks out the interaction with NSQD. It requires no outside dependencies.