zmq4
Consumes messages from a ZeroMQ socket.
This component links to the ZeroMQ C library (libzmq), so only cgo builds of Redpanda Connect include it. The standard release binaries, rpk connect, and the Docker images don’t include it.
To get a build that includes this component, either download the redpanda-connect-cgo_<version>_linux_amd64.tar.gz archive from the Redpanda Connect releases, or build from source with cgo enabled and the x_benthos_extra build tag:
# Install the libzmq headers first, for example on Debian or Ubuntu
sudo apt-get install libzmq3-dev
CGO_ENABLED=1 go build -tags x_benthos_extra,timetzdata ./cmd/redpanda-connect
Both builds link libzmq dynamically, so the machine that runs Redpanda Connect also needs the ZeroMQ shared library installed.
-
Common
-
Advanced
input:
label: ""
zmq4:
urls: [] # No default (required)
bind: false
socket_type: "" # No default (required)
sub_filters: []
input:
label: ""
zmq4:
urls: [] # No default (required)
bind: false
socket_type: "" # No default (required)
sub_filters: []
high_water_mark: 0
poll_timeout: 5s
|
This component is available only in builds of Redpanda Connect that enable cgo. The standard release binaries, the Docker images, and the standard
The cgo archive and the source build both need the ZeroMQ library ( |
Fields
bind
Whether to bind to the URLs and wait for peers to connect, instead of connecting to them.
Type: bool
Default: false
sub_filters[]
The topics that the socket subscribes to when socket_type is SUB. ZeroMQ delivers a message only when its first frame begins with one of these prefixes, so specifying a single sub_filter of '' subscribes to everything. At least one filter is required with a SUB socket.
Type: array<string>
Default: []