charm-rabbitmq-server/actions.yaml
Drew Freiberger 6672c48136 Added list-unconsumed-queues action
Add status inquiry list-unconsumed-queues action to allow operators to
determine which queues are not being consumed in each RMQ vhost. Useful for
troubleshooting message queue volume alerts.

Closes-Bug: 1767437
Change-Id: Icdd0b8c4db607701bc5e33d86e263b6a5f1bb7f5
2019-02-27 09:36:13 +01:00

38 lines
1.3 KiB
YAML

pause:
description: Pause the rabbitmq unit.
resume:
descrpition: Resume the rabbitmq unit.
cluster-status:
description: Show the current cluster status.
check-queues:
description: |
Show current queues, optionally only show queues with more than N messages
or queues from specified vhost.
params:
queue-depth:
type: integer
default: -1
description: |
Only show queues with >= this many messages. -1 shows all. Note that
if the result exceeds command line length (1/4 ulimit -s) on the target
system this will fail (For ex; -1 in an openstack env)
See lp:1437366, lp:1274460
vhost:
type: string
default: "/"
description: Show queues from the specified vhost. Eg; "openstack".
complete-cluster-series-upgrade:
description: |
Perform final operations post series upgrade. Inform all nodes in the
cluster the upgrade is complete cluster wide.
This action should be performed on the current leader. Note the leader may
have changed during the series upgrade process.
list-unconsumed-queues:
description: |-
list queues which currently have zero consumers, results are like:
unconsumed-queue-count: "2"
unconsumed-queues:
$vhost:
"0": queue_name1 - 0
"1": $queue_name - $num_messages