This was migrated to https://github.com/rabbitmq/rabbitmq-server
This repository has been moved to the main unified RabbitMQ "monorepo", including all open issues. You can find the source under /deps/rabbitmq_shovel_management. All issues have been transferred.
Adds information on shovel status to the management plugin. Build it like any other plugin.
If you have a heterogenous cluster (where the nodes have different plugins installed), this should be installed on the same nodes as the management plugin.
This plugin ships with RabbitMQ. Like all plugins, it must be enabled before it can be used:
rabbitmq-plugins enable rabbitmq_shovel_management
When the plugin is enabled, there will be a Shovel management link under the Admin tab.
The HTTP API adds endpoints for listing, creating, and deleting shovels.
Lists all shovels, optionally filtering by Virtual Host.
Example
curl -u guest:guest -v http://localhost:15672/api/shovels/%2fCreates a shovel, passing in the configuration as JSON in the request body.
Example
Create a file called shovel.json similar to the following, replacing the parameter values as desired:
{
"component": "shovel",
"name": "my-shovel",
"value": {
"ack-mode": "on-publish",
"add-forward-headers": false,
"delete-after": "never",
"dest-exchange": null,
"dest-queue": "dest",
"dest-uri": "amqp://",
"prefetch-count": 250,
"reconnect-delay": 30,
"src-queue": "source",
"src-uri": "amqp://"
},
"vhost": "/"
}Once created, post the file to the HTTP API:
curl -u guest:guest -v -X PUT -H 'Content-Type: application/json' -d @./shovel.json \
http://localhost:15672/api/parameters/shovel/%2F/my-shovelNote Either dest_queue OR dest_exchange can be specified in the value stanza of the JSON, but not both.
Shows the configurtion parameters for a shovel.
Example
curl -u guest:guest -v http://localhost:15672/api/parameters/shovel/%2F/my-shovelDeletes a shovel.
Example
curl -u guest:guest -v -X DELETE http://localhost:15672/api/parameters/shovel/%2F/my-shovelReleased under the same license as RabbitMQ.
2007-2018 (c) 2007-2020 VMware, Inc. or its affiliates.