Skip to main content

AMQP (RabbitMQ)

The AMQP trigger publishes structured container update events to AMQP 0-9-1 message brokers (such as RabbitMQ or Apache Qpid), allowing decoupled message processing in event-driven systems.


⚙️ Configuration Variables

WUD_TRIGGER_AMQP_{trigger_name}_URL
Requiredurl

AMQP broker connection string

Allowed values:Valid amqp:// or amqps:// connection URL (e.g. amqp://user:password@localhost:5672/vhost)
WUD_TRIGGER_AMQP_{trigger_name}_DISABLETITLE
Optionalbooleandefault: false

Whether to omit the notification title in payload

WUD_TRIGGER_AMQP_{trigger_name}_EXCHANGE
Optionalstring

Exchange name to publish messages to (leave empty for the default direct exchange)

WUD_TRIGGER_AMQP_{trigger_name}_EXCHANGETYPE
Optionalenumdefault: topic

Exchange type if declaring a named exchange

Allowed values:`direct`, `topic`, `fanout`, `headers`
WUD_TRIGGER_AMQP_{trigger_name}_PERSISTENT
Optionalbooleandefault: true

Whether messages are published with delivery mode 2 (persistent disk storage)

WUD_TRIGGER_AMQP_{trigger_name}_ROUTINGKEY
Optionalstringdefault: wud-container

AMQP routing key (or target queue name if using the default exchange)

info

This trigger also supports all common trigger configuration options (such as thresholds, scheduling, and batching).


🚀 Examples

Publishing to RabbitMQ Exchange

services:
whatsupdocker:
image: getwud/wud
environment:
- WUD_TRIGGER_AMQP_RABBIT_URL=amqp://guest:guest@rabbitmq:5672
- WUD_TRIGGER_AMQP_RABBIT_EXCHANGE=docker.events
- WUD_TRIGGER_AMQP_RABBIT_ROUTINGKEY=container.update