nsq

package
v1.40.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 5 Imported by: 203 modules, 188 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

NSQ Output Plugin

This plugin writes metrics to the given topic of a NSQ instance as a producer in one of the supported data formats.

⭐ Telegraf v0.2.1 🏷️ messaging 💻 all

Global configuration options

Plugins support additional global and plugin configuration settings for tasks such as modifying metrics, tags, and fields, creating aliases, and configuring plugin ordering. See CONFIGURATION.md for more details.

Configuration

# 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"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NSQ

type NSQ struct {
	Server string
	Topic  string
	Log    telegraf.Logger `toml:"-"`
	// contains filtered or unexported fields
}

func (*NSQ) Close

func (n *NSQ) Close() error

func (*NSQ) Connect

func (n *NSQ) Connect() error

func (*NSQ) SampleConfig

func (*NSQ) SampleConfig() string

func (*NSQ) SetSerializer added in v1.14.0

func (n *NSQ) SetSerializer(serializer telegraf.Serializer)

func (*NSQ) Write

func (n *NSQ) Write(metrics []telegraf.Metric) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL