Skip to main content

zmq4

Writes messages to a ZeroMQ socket.

# Common config fields, showing default values
output:
label: ""
zmq4:
urls: [] # No default (required)
bind: true
socket_type: "" # No default (required)

By default Bento does not build with components that require linking to external libraries. If you wish to build Bento locally with this component then set the build tag x_bento_extra:

# With go
go install -tags "x_bento_extra" github.com/warpstreamlabs/bento/cmd/bento@latest

# Using make
make TAGS=x_bento_extra

There is a specific docker tag postfix -cgo for C builds containing this 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:5556

bind

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

Type: bool
Default: true

socket_type

The socket type to connect as.

Type: string
Options: PUSH, PUB.

high_water_mark

The message high water mark to use.

Type: int
Default: 0

poll_timeout

The poll timeout to use.

Type: string
Default: "5s"