Skip to content

zmq4n

Consumes messages from a ZeroMQ socket.

# Common config fields, showing default values
input:
label: ""
zmq4n:
urls: [] # No default (required)
bind: false
socket_type: "" # No default (required)
sub_filters: []

This is a native Go implementation of ZeroMQ using the go-zeromq/zmq4 library. ZMTP protocol is not supported. There are a specific instructions for C builds containing the original zmq4 component.

Fields

urls

A list of URLs to connect to. If an item of the list contains commas it will be expanded into multiple URLs.

Type: array

# Examples
urls:
- tcp://localhost:5555

bind

Whether to bind to the specified URLs (otherwise they are connected to).

Type: bool

Default: false

socket_type

The socket type to connect as.

Type: string

Options: PULL , SUB .

sub_filters

A list of subscription topic filters to use when consuming from a SUB socket. Specifying a single sub_filter of '' will subscribe to everything.

Type: array

Default: []

high_water_mark

The message high water mark to use. (experimental i go-zeromq)

Type: int

Default: 0

poll_timeout

The poll timeout to use.

Type: string

Default: "5s"