rabbitmq-server/deps/rabbitmq_shovel_management/README.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

97 lines
2.4 KiB
Markdown
Raw Permalink Normal View History

2016-07-10 05:31:09 +08:00
# RabbitMQ Shovel Management Plugin
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.
## Installing
URL Cleanup This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener). # HTTP URLs that Could Not Be Fixed These URLs were unable to be fixed. Please review them to see if they can be manually resolved. * http://blog.listincomprehension.com/search/label/procket (200) with 1 occurrences could not be migrated: ([https](https://blog.listincomprehension.com/search/label/procket) result ClosedChannelException). * http://dozzie.jarowit.net/trac/wiki/TOML (200) with 1 occurrences could not be migrated: ([https](https://dozzie.jarowit.net/trac/wiki/TOML) result SSLHandshakeException). * http://dozzie.jarowit.net/trac/wiki/subproc (200) with 1 occurrences could not be migrated: ([https](https://dozzie.jarowit.net/trac/wiki/subproc) result SSLHandshakeException). * http://e2project.org (200) with 1 occurrences could not be migrated: ([https](https://e2project.org) result AnnotatedConnectException). * http://nitrogenproject.com/ (200) with 2 occurrences could not be migrated: ([https](https://nitrogenproject.com/) result ConnectTimeoutException). * http://proper.softlab.ntua.gr (200) with 1 occurrences could not be migrated: ([https](https://proper.softlab.ntua.gr) result SSLHandshakeException). * http://yaws.hyber.org (200) with 1 occurrences could not be migrated: ([https](https://yaws.hyber.org) result AnnotatedConnectException). * http://choven.ca (503) with 1 occurrences could not be migrated: ([https](https://choven.ca) result ConnectTimeoutException). # Fixed URLs ## Fixed But Review Recommended These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended. * http://fixprotocol.org/ (301) with 1 occurrences migrated to: https://fixtrading.org ([https](https://fixprotocol.org/) result SSLHandshakeException). * http://erldb.org (UnknownHostException) with 1 occurrences migrated to: https://erldb.org ([https](https://erldb.org) result UnknownHostException). ## Fixed Success These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended. * http://cloudi.org/ with 27 occurrences migrated to: https://cloudi.org/ ([https](https://cloudi.org/) result 200). * http://erlware.org/ with 1 occurrences migrated to: https://erlware.org/ ([https](https://erlware.org/) result 200). * http://inaka.github.io/cowboy-trails/ with 1 occurrences migrated to: https://inaka.github.io/cowboy-trails/ ([https](https://inaka.github.io/cowboy-trails/) result 200). * http://ninenines.eu with 6 occurrences migrated to: https://ninenines.eu ([https](https://ninenines.eu) result 200). * http://www.actordb.com/ with 2 occurrences migrated to: https://www.actordb.com/ ([https](https://www.actordb.com/) result 200). * http://www.cs.kent.ac.uk/projects/wrangler/Home.html with 1 occurrences migrated to: https://www.cs.kent.ac.uk/projects/wrangler/Home.html ([https](https://www.cs.kent.ac.uk/projects/wrangler/Home.html) result 200). * http://www.rabbitmq.com/plugins.html with 1 occurrences migrated to: https://www.rabbitmq.com/plugins.html ([https](https://www.rabbitmq.com/plugins.html) result 200). * http://www.rebar3.org with 1 occurrences migrated to: https://www.rebar3.org ([https](https://www.rebar3.org) result 200). * http://contributor-covenant.org with 1 occurrences migrated to: https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301). * http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to: https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301). * http://inaka.github.com/apns4erl with 1 occurrences migrated to: https://inaka.github.com/apns4erl ([https](https://inaka.github.com/apns4erl) result 301). * http://inaka.github.com/edis/ with 1 occurrences migrated to: https://inaka.github.com/edis/ ([https](https://inaka.github.com/edis/) result 301). * http://lasp-lang.org/ with 1 occurrences migrated to: https://lasp-lang.org/ ([https](https://lasp-lang.org/) result 301). * http://saleyn.github.com/erlexec with 1 occurrences migrated to: https://saleyn.github.com/erlexec ([https](https://saleyn.github.com/erlexec) result 301). * http://www.mozilla.org/MPL/ with 2 occurrences migrated to: https://www.mozilla.org/MPL/ ([https](https://www.mozilla.org/MPL/) result 301). * http://zhongwencool.github.io/observer_cli with 1 occurrences migrated to: https://zhongwencool.github.io/observer_cli ([https](https://zhongwencool.github.io/observer_cli) result 301). # Ignored These URLs were intentionally ignored. * http://localhost:15672/api/parameters/shovel/%2F/my-shovel with 3 occurrences * http://localhost:15672/api/shovels/%2f with 1 occurrences
2019-03-20 16:23:30 +08:00
This plugin ships with RabbitMQ. Like all [plugins](https://www.rabbitmq.com/plugins.html), it must be enabled
2018-12-04 04:51:53 +08:00
before it can be used:
2016-07-10 05:31:09 +08:00
```
2018-12-04 04:51:53 +08:00
rabbitmq-plugins enable rabbitmq_shovel_management
2016-07-10 05:31:09 +08:00
```
## Usage
2018-12-04 04:51:53 +08:00
When the plugin is enabled, there will be a Shovel management
2016-07-10 05:31:09 +08:00
link under the Admin tab.
### HTTP API
2016-07-10 05:31:09 +08:00
The HTTP API adds endpoints for listing, creating, and deleting shovels.
2016-07-10 05:31:09 +08:00
2018-12-04 04:51:53 +08:00
#### `GET /api/shovels[/{vhost}]`
Lists all shovels, optionally filtering by Virtual Host.
**Example**
```bash
curl -u guest:guest -v http://localhost:15672/api/shovels/%2f
```
2018-12-04 04:51:53 +08:00
#### `PUT /api/parameters/shovel/{vhost}/{name}`
Creates 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:
```json
{
"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:
```bash
2018-11-01 02:41:40 +08:00
curl -u guest:guest -v -X PUT -H 'Content-Type: application/json' -d @./shovel.json \
http://localhost:15672/api/parameters/shovel/%2F/my-shovel
```
2018-12-04 04:51:53 +08:00
*Note* Either `dest_queue` OR `dest_exchange` can be specified in the `value` stanza of the JSON, but not both.
2018-12-04 04:51:53 +08:00
#### `GET /api/parameters/shovel/{vhost}/{name}`
Shows the configurtion parameters for a shovel.
**Example**
```bash
curl -u guest:guest -v http://localhost:15672/api/parameters/shovel/%2F/my-shovel
```
2018-12-04 04:51:53 +08:00
#### `DELETE /api/parameters/shovel/{vhost}/{name}`
Deletes a shovel.
**Example**
```bash
curl -u guest:guest -v -X DELETE http://localhost:15672/api/parameters/shovel/%2F/my-shovel
```
2016-07-10 05:31:09 +08:00
## License and Copyright
Released under [the same license as RabbitMQ](https://www.rabbitmq.com/mpl.html).
2007-2018 (c) 2007-2024 Broadcom. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved.