2015-10-28 00:59:05 +08:00
|
|
|
# NSQ Output Plugin
|
|
|
|
|
|
2022-04-21 23:45:47 +08:00
|
|
|
This plugin writes to a specified NSQD instance, usually local to the
|
|
|
|
|
producer. It requires a `server` name and a `topic` name.
|
2022-04-08 05:55:03 +08:00
|
|
|
|
2022-10-27 03:58:36 +08:00
|
|
|
## Global configuration options <!-- @/docs/includes/plugin_config.md -->
|
|
|
|
|
|
|
|
|
|
In addition to the plugin-specific configuration settings, plugins support
|
|
|
|
|
additional global and plugin configuration settings. These settings are used to
|
|
|
|
|
modify metrics, tags, and field or create aliases and configure ordering, etc.
|
|
|
|
|
See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
|
|
|
|
|
|
|
|
|
|
[CONFIGURATION.md]: ../../../docs/CONFIGURATION.md
|
|
|
|
|
|
2022-04-08 05:55:03 +08:00
|
|
|
## Configuration
|
|
|
|
|
|
2022-05-25 22:48:59 +08:00
|
|
|
```toml @sample.conf
|
2022-04-08 05:55:03 +08:00
|
|
|
# Send telegraf measurements to NSQD
|
|
|
|
|
[[outputs.nsq]]
|
|
|
|
|
## Location of nsqd instance listening on TCP
|
|
|
|
|
server = "localhost:4150"
|
|
|
|
|
## NSQ topic for producer messages
|
|
|
|
|
topic = "telegraf"
|
|
|
|
|
|
|
|
|
|
## Data format to output.
|
|
|
|
|
## 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_OUTPUT.md
|
|
|
|
|
data_format = "influx"
|
|
|
|
|
```
|