diff --git a/deps/rabbitmq_management/priv/www/js/global.js b/deps/rabbitmq_management/priv/www/js/global.js index a35821ebd71f..0e3f59025d55 100644 --- a/deps/rabbitmq_management/priv/www/js/global.js +++ b/deps/rabbitmq_management/priv/www/js/global.js @@ -96,6 +96,7 @@ var ALL_COLUMNS = ['mode', 'Mode', true], ['state', 'State', true]], 'Details': [['msgs-unconfirmed', 'Unconfirmed', true], + ['consumer-count', 'Consumer count', false], ['prefetch', 'Prefetch', true], ['msgs-unacked', 'Unacked', true]], 'Transactions': [['msgs-uncommitted', 'Msgs uncommitted', false], diff --git a/deps/rabbitmq_management/priv/www/js/tmpl/channels-list.ejs b/deps/rabbitmq_management/priv/www/js/tmpl/channels-list.ejs index ef6c543bbaf3..09a34354357a 100644 --- a/deps/rabbitmq_management/priv/www/js/tmpl/channels-list.ejs +++ b/deps/rabbitmq_management/priv/www/js/tmpl/channels-list.ejs @@ -35,6 +35,9 @@ <% if (show_column('channels', 'msgs-unconfirmed')) { %> <%= fmt_sort('Unconfirmed', 'messages_unconfirmed') %> <% } %> +<% if (show_column('channels', 'consumer-count')) { %> + <%= fmt_sort('Consumer count', 'consumer_count') %> +<% } %> <% if (show_column('channels', 'prefetch')) { %> Prefetch <% } %> @@ -85,6 +88,9 @@ <% if (show_column('channels', 'msgs-unconfirmed')) { %> Unconfirmed <% } %> +<% if (show_column('channels', 'consumer-count')) { %> + Consumer count +<% } %> <% if (show_column('channels', 'prefetch')) { %> Prefetch <% } %> @@ -152,6 +158,9 @@ <% if (show_column('channels', 'msgs-unconfirmed')) { %> <%= channel.messages_unconfirmed %> <% } %> +<% if (show_column('channels', 'consumer-count')) { %> + <%= channel.consumer_count %> +<% } %> <% if (show_column('channels', 'prefetch')) { %> <% if (channel.prefetch_count != 0) { %>