Merge "Add Rabbitmqctl report output to openstack collect plugin"

This commit is contained in:
Zuul 2022-06-21 18:32:54 +00:00 committed by Gerrit Code Review
commit 0584e3d7b0

View File

@ -117,6 +117,13 @@ function rabbitmq_usage_stats {
printf "%6d %8d %9d %11d %8d %8d %9d %10d\n" $num_queues $num_bindings $num_exchanges $num_connections $num_channels $messages $consumers $memory >> ${LOGFILE} 2>>${COLLECT_ERROR_LOG}
}
function rabbitmqctl_report {
# RabbitMQ Report
MQ_REPORT="rabbitmqctl report"
delimiter ${LOGFILE} "${MQ_REPORT}"
${MQ_REPORT} 2>/dev/null >> ${LOGFILE}
}
###############################################################################
# Only Controller
###############################################################################
@ -130,6 +137,9 @@ if [ "$nodetype" = "controller" ] ; then
# host rabbitmq usage
rabbitmq_usage_stats
# produce full report
rabbitmqctl_report
# Check for openstack label on this node
if ! is_openstack_node; then
exit 0