stomp

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 11 Imported by: 0

README

STOMP Producer Output Plugin

This plugin writes to a Active MQ Broker for STOMP http://stomp.github.io.

It also support Amazon MQ https://aws.amazon.com/amazon-mq/

Configuration

# Configuration for active mq with stomp protocol to send metrics to
[[outputs.stomp]]
  host = "localhost:61613"

  ## Queue name for producer messages
  queueName = "telegraf"

  ## Username and password if required by the Active MQ server.
  # username = ""
  # password = ""

  ## Optional TLS Config
  # tls_ca = "/etc/telegraf/ca.pem"
  # tls_cert = "/etc/telegraf/cert.pem"
  # tls_key = "/etc/telegraf/key.pem"

  ## Data format to output.
  data_format = "json"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type STOMP

type STOMP struct {
	Host      string          `toml:"host"`
	Username  string          `toml:"username"`
	Password  string          `toml:"password"`
	QueueName string          `toml:"queueName"`
	Log       telegraf.Logger `toml:"-"`

	HeartBeatSend config.Duration `toml:"heartbeat_timeout_send"`
	HeartBeatRec  config.Duration `toml:"heartbeat_timeout_receive"`

	commontls.ClientConfig
	// contains filtered or unexported fields
}

func (*STOMP) Close

func (q *STOMP) Close() error

func (*STOMP) Connect

func (q *STOMP) Connect() error

func (*STOMP) SampleConfig

func (q *STOMP) SampleConfig() string

func (*STOMP) SetSerializer

func (q *STOMP) SetSerializer(serializer serializers.Serializer)

func (*STOMP) Write

func (q *STOMP) Write(metrics []telegraf.Metric) error

Jump to

Keyboard shortcuts

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