rabbitmq-streams — RabbitMQ stream management tools
rabbitmq-streams | [-q] [-s] [-l] [-n node] [-t timeout] command [command_options] |
rabbitmq-streams is a command line tool that provides commands used to manage streams, for example, add or delete stream replicas. See the RabbitMQ streams overview.
Displays general help and commands supported by rabbitmq-streams.
Adds a stream replica on the given node.
Example:
Removes a stream replica on the given node.
Example:
Displays the status of a stream.
Example:
Set the retention policy of a stream.
Example:
Returns stream protocol connection statistics.
The connectioninfoitem parameter is used to indicate which connection information items to include in the results. The column order in the results will match the order of the parameters. connectioninfoitem can take any value from the list that follows:
If no connectioninfoitem are specified then only conn_name is displayed.
For example, this command displays the connection name and user for each connection:
Returns consumers attached to a stream.
The consumerinfoitem parameter is used to indicate which consumer information items to include in the results. The column order in the results will match the order of the parameters. consumerinfoitem can take any value from the list that follows:
If no consumerinfoitem are specified then connection_pid, subscription_id, stream, messages_consumed, offset, offset_lag, credits, active, activity_status, and properties are displayed.
For example, this command displays the connection PID, subscription ID and stream for each consumer:
Returns registered publishers.
The publisherinfoitem parameter is used to indicate which publisher information items to include in the results. The column order in the results will match the order of the parameters. publisherinfoitem can take any value from the list that follows:
If no publisherinfoitem are specified then connection_pid, publisher_id, stream, reference, messages_published, messages_confirmed, and messages_errored are displayed.
For example, this command displays the connection PID, publisher ID and stream for each producer:
Create a super stream.
Delete a super stream.
Lists groups of stream single active consumers for a vhost.
The groupinfoitem parameter is used to indicate which group information items to include in the results. The column order in the results will match the order of the parameters. groupinfoitem can take any value from the list that follows:
If no groupinfoitem are specified then stream, reference, partition_index, and consumers are displayed.
For example, this command displays the stream, reference, and number of consumers for each group:
Lists consumers of a stream consumer group in a vhost.
The consumerinfoitem parameter is used to indicate which consumer information items to include in the results. The column order in the results will match the order of the parameters. consumerinfoitem can take any value from the list that follows:
If no consumerinfoitem are specified then subscription_id, connection_name, and state are displayed.
For example, this command displays the connection name and state for each consumer attached to the stream-1 stream and belonging to the stream-1 group:
rabbitmqctl(8), rabbitmq-diagnostics(8), rabbitmq-server(8), rabbitmq-queues(8), rabbitmq-upgrade(8), rabbitmq-service(8), rabbitmq-env.conf(5), rabbitmq-echopid(8)
The RabbitMQ Team <info@rabbitmq.com>
If you have questions about the contents of this guide or any other topic related to RabbitMQ, don't hesitate to ask them on the RabbitMQ mailing list.
If you'd like to contribute an improvement to the site, its source is available on GitHub. Simply fork the repository and submit a pull request. Thank you!